kernel_optimize_test/arch/arm/plat-samsung
Kukjin Kim cbd2780fce ARM: SAMSUNG: Fix on s5p_gpio_[get,set]_drvstr
This patch fixes bug on gpio drive strength helper function.

The offset should be like follwoing.
-       off = chip->chip.base - pin;
+       off = pin - chip->chip.base;

In the s5p_gpio_get_drvstr(),
the second line is unnecessary, because overwrite drvstr.
        drvstr = __raw_readl(reg);
-       drvstr = 0xffff & (0x3 << shift);

And need 2bit masking before return the drvstr value.
        drvstr = drvstr >> shift;
+       drvstr &= 0x3;

In the s5p_gpio_set_drvstr(), need relevant bit clear.
        tmp = __raw_readl(reg);
+       tmp &= ~(0x3 << shift);
        tmp |= drvstr << shift;

Reported-by: Jaecheol Lee <jc.lee@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
2010-09-14 17:59:31 +09:00
..
include/plat
adc.c
clock-clksrc.c
clock.c
dev-adc.c
dev-fb.c
dev-hsmmc1.c
dev-hsmmc2.c
dev-hsmmc3.c
dev-hsmmc.c
dev-hwmon.c
dev-i2c0.c
dev-i2c1.c
dev-i2c2.c
dev-ide.c
dev-keypad.c
dev-nand.c
dev-onenand.c
dev-rtc.c
dev-ts.c
dev-uart.c
dev-usb-hsotg.c
dev-usb.c
dev-wdt.c
dma.c
gpio-config.c ARM: SAMSUNG: Fix on s5p_gpio_[get,set]_drvstr 2010-09-14 17:59:31 +09:00
gpio.c
gpiolib.c
init.c
irq-uart.c
irq-vic-timer.c
Kconfig
Makefile
platformdata.c
pm-check.c
pm-gpio.c
pm.c
pwm-clock.c
pwm.c
s3c-pl330.c
time.c
wakeup-mask.c