diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2010-04-04 20:49:19 +0200 |
---|---|---|
committer | Lars-Peter Clausen <lars@metafoo.de> | 2010-05-17 20:59:36 +0200 |
commit | e46f39af3ced84382ec61fd0ca2d23d444331292 (patch) | |
tree | 3c24b1308f022847074994dd1490e1b031b88437 /arch | |
parent | 8d49d595540f8f06542d1343429f33994d02efd7 (diff) |
gta02: Configure pcf50633 gpios.
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-s3c2440/include/mach/gta02.h | 5 | ||||
-rw-r--r-- | arch/arm/mach-s3c2440/mach-gta02.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c2440/include/mach/gta02.h b/arch/arm/mach-s3c2440/include/mach/gta02.h index 24133824fdc..f11f794158c 100644 --- a/arch/arm/mach-s3c2440/include/mach/gta02.h +++ b/arch/arm/mach-s3c2440/include/mach/gta02.h @@ -80,6 +80,11 @@ #define GTA02_PCB_ID2_0 S3C2410_GPD(3) #define GTA02_PCB_ID2_1 S3C2410_GPD(4) +#define GTA02_GPIO_GLAMO_BASE S3C_GPIO_END +#define GTA02_GPIO_GLAMO(x) (GTA02_GPIO_GLAMO_BASE + (x)) +#define GTA02_GPIO_PCF_BASE (GTA02_GPIO_GLAMO_BASE + 32) +#define GTA02_GPIO_PCF(x) (GTA02_GPIO_PCF_BASE + (x)) + int gta02_get_pcb_revision(void); #endif /* _GTA02_H */ diff --git a/arch/arm/mach-s3c2440/mach-gta02.c b/arch/arm/mach-s3c2440/mach-gta02.c index 0e195f9a86f..4d6286ecf1b 100644 --- a/arch/arm/mach-s3c2440/mach-gta02.c +++ b/arch/arm/mach-s3c2440/mach-gta02.c @@ -278,6 +278,8 @@ struct pcf50633_platform_data gta02_pcf_pdata = { .charger_reference_current_ma = 1000, + .gpio_base = GTA02_GPIO_PCF_BASE, + .reg_init_data = { [PCF50633_REGULATOR_AUTO] = { .constraints = { |