blob: 4759f8cd5cbb94bf83fc35995b247fc28fd5b5fb [file] [log] [blame]
David Collinsfb88c432011-08-25 15:12:47 -07001/* Copyright (c) 2011, Code Aurora Forum. All rights reserved.
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12
13#ifndef __ARCH_ARM_MACH_MSM_BOARD_9615_H
14#define __ARCH_ARM_MACH_MSM_BOARD_9615_H
15
16#include <mach/irqs.h>
17#include <linux/mfd/pm8xxx/pm8018.h>
David Collins0f9942a2011-10-31 09:47:34 -070018#include <linux/regulator/gpio-regulator.h>
David Collinsfb88c432011-08-25 15:12:47 -070019
20/* Macros assume PMIC GPIOs and MPPs start at 1 */
21#define PM8018_GPIO_BASE NR_GPIO_IRQS
22#define PM8018_GPIO_PM_TO_SYS(pm_gpio) (pm_gpio - 1 + PM8018_GPIO_BASE)
23#define PM8018_MPP_BASE (PM8018_GPIO_BASE + PM8018_NR_GPIOS)
24#define PM8018_MPP_PM_TO_SYS(pm_gpio) (pm_gpio - 1 + PM8018_MPP_BASE)
25#define PM8018_IRQ_BASE (NR_MSM_IRQS + NR_GPIO_IRQS)
26#define PM8018_MPP_IRQ_BASE (PM8018_IRQ_BASE + NR_GPIO_IRQS)
27
David Collins8c695c52011-12-12 15:46:02 -080028extern struct pm8xxx_regulator_platform_data
David Collins00b31e62011-08-31 20:00:10 -070029 msm_pm8018_regulator_pdata[] __devinitdata;
30
31extern int msm_pm8018_regulator_pdata_len __devinitdata;
32
David Collinsbea297a2011-09-28 13:11:14 -070033extern struct rpm_regulator_platform_data
34msm_rpm_regulator_9615_pdata __devinitdata;
35
David Collins0f9942a2011-10-31 09:47:34 -070036#define GPIO_VREG_ID_EXT_2P95V 0
37
38extern struct gpio_regulator_platform_data msm_gpio_regulator_pdata[];
39
Rohit Vaswania6815892011-12-15 20:20:39 -080040int msm9615_init_gpiomux(void);
Rohit Vaswanie9a1ae32011-12-15 20:26:47 -080041void msm9615_init_mmc(void);
David Collinsfb88c432011-08-25 15:12:47 -070042#endif