From ab0a466054d12647d906cf3a9ac9cb19cbd7607b Mon Sep 17 00:00:00 2001 From: Holger Freyther Date: Wed, 19 Nov 2008 17:09:38 +0000 Subject: [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 --- arch/arm/mach-s3c2410/mach-gta01.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'arch/arm/mach-s3c2410/mach-gta01.c') 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 #include #include +#include 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; -- cgit v1.2.3