diff options
author | Holger Freyther <zecke@openmoko.org> | 2008-11-19 17:09:38 +0000 |
---|---|---|
committer | Andy Green <agreen@pads.home.warmcat.com> | 2008-11-19 17:09:38 +0000 |
commit | ab0a466054d12647d906cf3a9ac9cb19cbd7607b (patch) | |
tree | 28270cfdc9a73ac7c42ea52f6e15e352d9577933 /arch/arm/mach-s3c2410 | |
parent | 77739f17fbae2718f4de551969e5c3b47b041978 (diff) |
[neo] Every access to GPIO bank B has to go through the shadow code
- Any setting of any PIN on bank B will undo the LED setting.
Introduce neo1973_gpb_set_pin to set the PIN in a way not losing
the LED or any other shadowed setting.
- Update users of GPBXY for gta01 and gta02.
Signed-Off-By: Holger Freyther <zecke@openmoko.org>
Diffstat (limited to 'arch/arm/mach-s3c2410')
-rw-r--r-- | arch/arm/mach-s3c2410/mach-gta01.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/arm/mach-s3c2410/mach-gta01.c b/arch/arm/mach-s3c2410/mach-gta01.c index 8c1a4026660..a4384b694db 100644 --- a/arch/arm/mach-s3c2410/mach-gta01.c +++ b/arch/arm/mach-s3c2410/mach-gta01.c @@ -72,6 +72,7 @@ #include <asm/plat-s3c24xx/cpu.h> #include <asm/plat-s3c24xx/pm.h> #include <asm/plat-s3c24xx/udc.h> +#include <asm/plat-s3c24xx/neo1973.h> static struct map_desc gta01_iodesc[] __initdata = { { @@ -416,10 +417,10 @@ static void gta01_mmc_set_power(unsigned char power_mode, unsigned short vdd) case GTA01Bv4_SYSTEM_REV: switch (power_mode) { case MMC_POWER_OFF: - s3c2410_gpio_setpin(GTA01_GPIO_SDMMC_ON, 1); + neo1973_gpb_setpin(GTA01_GPIO_SDMMC_ON, 1); break; case MMC_POWER_ON: - s3c2410_gpio_setpin(GTA01_GPIO_SDMMC_ON, 0); + neo1973_gpb_setpin(GTA01_GPIO_SDMMC_ON, 0); break; } break; @@ -442,10 +443,10 @@ static void gta01_udc_command(enum s3c2410_udc_cmd_e cmd) switch (cmd) { case S3C2410_UDC_P_ENABLE: - s3c2410_gpio_setpin(GTA01_GPIO_USB_PULLUP, 1); + neo1973_gpb_setpin(GTA01_GPIO_USB_PULLUP, 1); break; case S3C2410_UDC_P_DISABLE: - s3c2410_gpio_setpin(GTA01_GPIO_USB_PULLUP, 0); + neo1973_gpb_setpin(GTA01_GPIO_USB_PULLUP, 0); break; default: break; |