diff options
author | Pavan Kunapuli <pkunapuli@nvidia.com> | 2012-11-09 14:30:59 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 12:41:27 -0700 |
commit | 9ecb3ad107bbb20ea9e66882d9cb3a3341654a77 (patch) | |
tree | 3ab4a954ce6f1859536bd335b86142fc419d2e86 /arch/arm/mach-tegra/board-roth.h | |
parent | 8ce7079ba4e3a066d307841696ab8a7fc5956120 (diff) |
Arm: Tegra: Roth: Support Roth platform
Adding initial support for Roth platform
based on dalmore platform.
Populate power tree based on board design for roth.
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Bug 1169149
Change-Id: I2e14b464cc199c59a246500388fb1480866e10a3
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/160908
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board-roth.h')
-rw-r--r-- | arch/arm/mach-tegra/board-roth.h | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-roth.h b/arch/arm/mach-tegra/board-roth.h index 77670b420e29..3b1306a3beba 100644 --- a/arch/arm/mach-tegra/board-roth.h +++ b/arch/arm/mach-tegra/board-roth.h @@ -20,6 +20,95 @@ #ifndef _MACH_TEGRA_BOARD_ROTH_H #define _MACH_TEGRA_BOARD_ROTH_H +#include <mach/gpio.h> +#include <mach/irqs.h> +#include <linux/mfd/max77663-core.h> +#include "gpio-names.h" + +/* External peripheral act as gpio */ +/* MAX77663 GPIO */ +#define MAX77663_GPIO_BASE TEGRA_NR_GPIOS +#define PALMAS_TEGRA_GPIO_BASE TEGRA_NR_GPIOS +#define MAX77663_GPIO_END (MAX77663_GPIO_BASE + MAX77663_GPIO_NR) + +/* Hall Effect Sensor GPIO */ +#define TEGRA_GPIO_HALL TEGRA_GPIO_PS0 + +/* Audio-related GPIOs */ +#define TEGRA_GPIO_CDC_IRQ TEGRA_GPIO_PW3 +#define TEGRA_GPIO_LDO1_EN TEGRA_GPIO_PV3 +#define TEGRA_GPIO_CODEC1_EN TEGRA_GPIO_PP3 +#define TEGRA_GPIO_CODEC2_EN TEGRA_GPIO_PP1 +#define TEGRA_GPIO_CODEC3_EN TEGRA_GPIO_PV0 + +#define TEGRA_GPIO_SPKR_EN -1 +#define TEGRA_GPIO_HP_DET TEGRA_GPIO_PR7 +#define TEGRA_GPIO_INT_MIC_EN TEGRA_GPIO_PK3 +#define TEGRA_GPIO_EXT_MIC_EN TEGRA_GPIO_PK4 + +#define TEGRA_GPIO_W_DISABLE TEGRA_GPIO_PDD7 +#define TEGRA_GPIO_MODEM_RSVD1 TEGRA_GPIO_PV0 +#define TEGRA_GPIO_MODEM_RSVD2 TEGRA_GPIO_PH7 + +/* External peripheral act as interrupt controller */ +/* MAX77663 IRQs */ +#define PALMAS_TEGRA_IRQ_BASE TEGRA_NR_IRQS +#define MAX77663_IRQ_BASE TEGRA_NR_IRQS +#define MAX77663_IRQ_END (MAX77663_IRQ_BASE + MAX77663_IRQ_NR) +#define MAX77663_IRQ_ACOK_RISING MAX77663_IRQ_ONOFF_ACOK_RISING + +/* I2C related GPIOs */ +#define TEGRA_GPIO_I2C1_SCL TEGRA_GPIO_PC4 +#define TEGRA_GPIO_I2C1_SDA TEGRA_GPIO_PC5 +#define TEGRA_GPIO_I2C2_SCL TEGRA_GPIO_PT5 +#define TEGRA_GPIO_I2C2_SDA TEGRA_GPIO_PT6 +#define TEGRA_GPIO_I2C3_SCL TEGRA_GPIO_PBB1 +#define TEGRA_GPIO_I2C3_SDA TEGRA_GPIO_PBB2 +#define TEGRA_GPIO_I2C4_SCL TEGRA_GPIO_PV4 +#define TEGRA_GPIO_I2C4_SDA TEGRA_GPIO_PV5 +#define TEGRA_GPIO_I2C5_SCL TEGRA_GPIO_PZ6 +#define TEGRA_GPIO_I2C5_SDA TEGRA_GPIO_PZ7 + +/* Camera related GPIOs */ +#define CAM_RSTN TEGRA_GPIO_PBB3 +#define CAM_FLASH_STROBE TEGRA_GPIO_PBB4 +#define CAM1_POWER_DWN_GPIO TEGRA_GPIO_PBB5 +#define CAM2_POWER_DWN_GPIO TEGRA_GPIO_PBB6 +#define CAM_AF_PWDN TEGRA_GPIO_PBB7 +#define CAM_GPIO1 TEGRA_GPIO_PCC1 +#define CAM_GPIO2 TEGRA_GPIO_PCC2 + +/* Touchscreen definitions */ +#define TOUCH_GPIO_IRQ_RAYDIUM_SPI TEGRA_GPIO_PK2 +#define TOUCH_GPIO_RST_RAYDIUM_SPI TEGRA_GPIO_PK4 + +/* Invensense MPU Definitions */ +#define MPU_GYRO_NAME "mpu9150" +#define MPU_GYRO_IRQ_GPIO TEGRA_GPIO_PR3 +#define MPU_GYRO_ADDR 0x69 +#define MPU_GYRO_BUS_NUM 0 +#define MPU_GYRO_ORIENTATION { -1, 0, 0, 0, -1, 0, 0, 0, 1 } +#define MPU_ACCEL_NAME "kxtf9" +#define MPU_ACCEL_IRQ_GPIO 0 /* DISABLE ACCELIRQ: TEGRA_GPIO_PJ2 */ +#define MPU_ACCEL_ADDR 0x0F +#define MPU_ACCEL_BUS_NUM 0 +#define MPU_ACCEL_ORIENTATION { 0, 1, 0, -1, 0, 0, 0, 0, 1 } +#define MPU_COMPASS_NAME "ak8975" +#define MPU_COMPASS_IRQ_GPIO 0 +#define MPU_COMPASS_ADDR 0x0D +#define MPU_COMPASS_BUS_NUM 0 +#define MPU_COMPASS_ORIENTATION { 0, 1, 0, -1, 0, 0, 0, 0, 1 } + + +int roth_regulator_init(void); +int roth_suspend_init(void); +int roth_sdhci_init(void); +int roth_pinmux_init(void); +int roth_sensors_init(void); +int roth_emc_init(void); +int roth_edp_init(void); int roth_panel_init(void); +int roth_kbc_init(void); +int roth_pmon_init(void); #endif |