From: Minkyu Kang Date: Wed, 23 Dec 2009 09:49:07 +0000 (+0900) Subject: s5pc110: gpio: add gpio command config X-Git-Tag: JA02_20100111~59 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba8a621c1ce6f52b604491351ec642ae777bb174;p=kernel%2Fu-boot.git s5pc110: gpio: add gpio command config Signed-off-by: Minkyu Kang --- diff --git a/cpu/arm_cortexa8/s5pc1xx/gpio.c b/cpu/arm_cortexa8/s5pc1xx/gpio.c index f25b5eb..5f1a586 100644 --- a/cpu/arm_cortexa8/s5pc1xx/gpio.c +++ b/cpu/arm_cortexa8/s5pc1xx/gpio.c @@ -140,6 +140,7 @@ void gpio_set_rate(struct s5pc1xx_gpio_bank *bank, int gpio, int mode) writel(value, &bank->drv); } +#ifdef CONFIG_CMD_GPIO static char *gpio_name[] = { "GPA0", "GPA1", "GPB", "GPC0", "GPC1", "GPD0", "GPD1", "GPE0", "GPE1", "GPF0", "GPF1", "GPF2", "GPF3", "GPG0", "GPG1", "GPG2", "GPG3", "GPI", @@ -250,3 +251,4 @@ U_BOOT_CMD( "show - show all banks\n" "gpio set bank num value - set gpio value\n" ); +#endif diff --git a/include/configs/s5pc1xx_universal.h b/include/configs/s5pc1xx_universal.h index 418f419..e9a9b37 100644 --- a/include/configs/s5pc1xx_universal.h +++ b/include/configs/s5pc1xx_universal.h @@ -118,6 +118,7 @@ #define CONFIG_CMD_I2C #define CONFIG_CMD_MMC #define CONFIG_CMD_SLEEP +#define CONFIG_CMD_GPIO #define CONFIG_SYS_64BIT_VSPRINTF 1