blob: 6aabdda34e6b81f3b86a31a1bc9148bbf31796cc [file] [log] [blame]
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -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_MSM8960_H
14#define __ARCH_ARM_MACH_MSM_BOARD_MSM8960_H
15
16#include <mach/irqs.h>
David Collins26f05562011-06-20 09:56:28 -070017#include <mach/rpm-regulator.h>
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070018#include <linux/mfd/pm8xxx/pm8921.h>
19
20/* Macros assume PMIC GPIOs and MPPs start at 1 */
21#define PM8921_GPIO_BASE NR_GPIO_IRQS
22#define PM8921_GPIO_PM_TO_SYS(pm_gpio) (pm_gpio - 1 + PM8921_GPIO_BASE)
23#define PM8921_MPP_BASE (PM8921_GPIO_BASE + PM8921_NR_GPIOS)
24#define PM8921_MPP_PM_TO_SYS(pm_gpio) (pm_gpio - 1 + PM8921_MPP_BASE)
25#define PM8921_IRQ_BASE (NR_MSM_IRQS + NR_GPIO_IRQS)
26#define PM8921_MPP_IRQ_BASE (PM8921_IRQ_BASE + NR_GPIO_IRQS)
27
28extern struct pm8921_regulator_platform_data
29 msm_pm8921_regulator_pdata[] __devinitdata;
30
31extern int msm_pm8921_regulator_pdata_len __devinitdata;
32
33#define GPIO_VREG_ID_EXT_5V 0
34#define GPIO_VREG_ID_EXT_L2 1
35
36extern struct gpio_regulator_platform_data
37 msm_gpio_regulator_pdata[] __devinitdata;
38
39extern struct regulator_init_data msm_saw_regulator_pdata_s5;
40extern struct regulator_init_data msm_saw_regulator_pdata_s6;
41
David Collins26f05562011-06-20 09:56:28 -070042extern struct rpm_regulator_platform_data msm_rpm_regulator_pdata __devinitdata;
43
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070044extern struct pm8921_bms_battery_data palladium_1500_data;
David Collins26f05562011-06-20 09:56:28 -070045
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070046#endif