| /* |
| * arch/arm/mach-tegra/board-dalmore.h |
| * |
| * Copyright (c) 2012, NVIDIA Corporation. |
| * |
| * This program is free software; you can redistribute it and/or modify |
| * it under the terms of the GNU General Public License version 2 as |
| * published by the Free Software Foundation. |
| * |
| * This program is distributed in the hope that it will be useful, but WITHOUT |
| * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
| * more details. |
| * |
| * You should have received a copy of the GNU General Public License along |
| * with this program; if not, write to the Free Software Foundation, Inc., |
| * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| */ |
| |
| #ifndef _MACH_TEGRA_BOARD_DALMORE_H |
| #define _MACH_TEGRA_BOARD_DALMORE_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 MAX77663_GPIO_END (MAX77663_GPIO_BASE + MAX77663_GPIO_NR) |
| |
| /* Audio-related GPIOs */ |
| #define TEGRA_GPIO_CDC_IRQ TEGRA_GPIO_PW3 |
| #define TEGRA_GPIO_SPKR_EN -1 |
| #define TEGRA_GPIO_HP_DET TEGRA_GPIO_PW2 |
| #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 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 |
| |
| int dalmore_regulator_init(void); |
| int dalmore_suspend_init(void); |
| int dalmore_sdhci_init(void); |
| int dalmore_pinmux_init(void); |
| int dalmore_sensors_init(void); |
| int dalmore_emc_init(void); |
| |
| #endif |