GPIO: Samsung: correct pin configuration for S5PC100/S5PC110/Exynos4
Subsystems (2)
PATCH 1/1 GPIO: Samsung: correct pin configuration for S5PC100/S5PC110/Exynos4
Commit 1b39d5f2cc introduced new common gpio driver for all Samsung GPIO SoCs. The new driver use wrong configuration setup for all gpio pins on S5PC100 and S5PV210 SoCs and external interrupt lines on Exynos4 SoCs. This patch fixes this issue.
--- drivers/gpio/gpio-samsung.c | 30 +++++++++++++++--------------- 1 files changed, 15 insertions(+), 15 deletions(-)
drivers/gpio/gpio-samsung.c +15 -15
@@ -1862,7 +1862,7 @@ static struct samsung_gpio_chip s5pc100_gpios_4bit[] = {* Followings are the gpio banks in S5PV210/S5PC110 * * The 'config' member when left to NULL, is initialized to the default -* structure samsung_gpio_cfgs[4] in the init function below. +* structure samsung_gpio_cfgs[3] in the init function below. * * The 'base' member is also initialized in the init function below. * Note: The initialization of 'base' member of samsung_gpio_chip structure
@@ -2083,7 +2083,7 @@ static struct samsung_gpio_chip s5pv210_gpios_4bit[] = {* Followings are the gpio banks in EXYNOS4210 * * The 'config' member when left to NULL, is initialized to the default -* structure samsung_gpio_cfgs[4] in the init function below. +* structure samsung_gpio_cfgs[3] in the init function below. * * The 'base' member is also initialized in the init function below. * Note: The initialization of 'base' member of samsung_gpio_chip structure
@@ -2249,49 +2249,49 @@ static struct samsung_gpio_chip exynos4_gpios_2[] = { .label = "GPL2", }, }, { - .config = &samsung_gpio_cfgs[4], + .config = &samsung_gpio_cfgs[0], .chip = { .base = EXYNOS4_GPY0(0), .ngpio = EXYNOS4_GPIO_Y0_NR, .label = "GPY0", }, }, { - .config = &samsung_gpio_cfgs[4], + .config = &samsung_gpio_cfgs[0], .chip = { .base = EXYNOS4_GPY1(0), .ngpio = EXYNOS4_GPIO_Y1_NR, .label = "GPY1", }, }, { - .config = &samsung_gpio_cfgs[4], + .config = &samsung_gpio_cfgs[0], .chip = { .base = EXYNOS4_GPY2(0), .ngpio = EXYNOS4_GPIO_Y2_NR, .label = "GPY2", }, }, { - .config = &samsung_gpio_cfgs[4], + .config = &samsung_gpio_cfgs[0], .chip = { .base = EXYNOS4_GPY3(0), .ngpio = EXYNOS4_GPIO_Y3_NR, .label = "GPY3", }, }, { - .config = &samsung_gpio_cfgs[4], + .config = &samsung_gpio_cfgs[0], .chip = { .base = EXYNOS4_GPY4(0), .ngpio = EXYNOS4_GPIO_Y4_NR, .label = "GPY4", }, }, { - .config = &samsung_gpio_cfgs[4], + .config = &samsung_gpio_cfgs[0], .chip = { .base = EXYNOS4_GPY5(0), .ngpio = EXYNOS4_GPIO_Y5_NR, .label = "GPY5", }, }, { - .config = &samsung_gpio_cfgs[4], + .config = &samsung_gpio_cfgs[0], .chip = { .base = EXYNOS4_GPY6(0), .ngpio = EXYNOS4_GPIO_Y6_NR,
@@ -2299,7 +2299,7 @@ static struct samsung_gpio_chip exynos4_gpios_2[] = { }, }, { .base = (S5P_VA_GPIO2 + 0xC00), - .config = &samsung_gpio_cfgs[4], + .config = &samsung_gpio_cfgs[3], .irq_base = IRQ_EINT(0), .chip = { .base = EXYNOS4_GPX0(0),
@@ -2309,7 +2309,7 @@ static struct samsung_gpio_chip exynos4_gpios_2[] = { }, }, { .base = (S5P_VA_GPIO2 + 0xC20), - .config = &samsung_gpio_cfgs[4], + .config = &samsung_gpio_cfgs[3], .irq_base = IRQ_EINT(8), .chip = { .base = EXYNOS4_GPX1(0),
@@ -2319,7 +2319,7 @@ static struct samsung_gpio_chip exynos4_gpios_2[] = { }, }, { .base = (S5P_VA_GPIO2 + 0xC40), - .config = &samsung_gpio_cfgs[4], + .config = &samsung_gpio_cfgs[3], .irq_base = IRQ_EINT(16), .chip = { .base = EXYNOS4_GPX2(0),
@@ -2329,7 +2329,7 @@ static struct samsung_gpio_chip exynos4_gpios_2[] = { }, }, { .base = (S5P_VA_GPIO2 + 0xC60), - .config = &samsung_gpio_cfgs[4], + .config = &samsung_gpio_cfgs[3], .irq_base = IRQ_EINT(24), .chip = { .base = EXYNOS4_GPX3(0),
@@ -2399,7 +2399,7 @@ static __init int samsung_gpiolib_init(void)for (i =0 ; i < nr_chips; i++, chip++) {if (!chip->config) { - chip->config = &samsung_gpio_cfgs[4 ]; + chip->config = &samsung_gpio_cfgs[3 ]; chip->group = group++; } }
@@ -2414,7 +2414,7 @@ static __init int samsung_gpiolib_init(void)for (i =0 ; i < nr_chips; i++, chip++) {if (!chip->config) { - chip->config = &samsung_gpio_cfgs[4 ]; + chip->config = &samsung_gpio_cfgs[3 ]; chip->group = group++; } }
Signature · 1 line
1.7.1.569.g6f426
Quoted 7 lines · Marek Szyprowski
Commit
1b39d5f2ccintroduced new common gpio driver for all Samsung GPIO SoCs. The new driver use wrong configuration setup for all gpio pins on S5PC100 and S5PV210 SoCs and external interrupt lines on Exynos4 SoCs. This patch fixes this issue.Signed-off-by Marek Szyprowski <[email protected]>Signed-off-by Kyungmin Park <[email protected]>
Quoted 140 lines
--- drivers/gpio/gpio-samsung.c | 30 +++++++++++++++--------------- 1 files changed, 15 insertions(+), 15 deletions(-)drivers/gpio/gpio-samsung.c +15
-15@@ -1862,7 +1862,7 @@ static struct samsung_gpio_chip s5pc100_gpios_4bit[] = {* Followings are the gpio banks in S5PV210/S5PC110 * * The 'config' member when left to NULL, is initialized to the default -* structure samsung_gpio_cfgs[4] in the init function below. +* structure samsung_gpio_cfgs[3] in the init function below. * * The 'base' member is also initialized in the init function below. * Note: The initialization of 'base' member of samsung_gpio_chip structure @@ -2083,7 +2083,7 @@ static struct samsung_gpio_chip s5pv210_gpios_4bit[] = {* Followings are the gpio banks in EXYNOS4210 * * The 'config' member when left to NULL, is initialized to the default -* structure samsung_gpio_cfgs[4] in the init function below. +* structure samsung_gpio_cfgs[3] in the init function below. * * The 'base' member is also initialized in the init function below. * Note: The initialization of 'base' member of samsung_gpio_chip structure @@ -2249,49 +2249,49 @@ static struct samsung_gpio_chip exynos4_gpios_2[] = { .label = "GPL2", }, }, { - .config = &samsung_gpio_cfgs[4], + .config = &samsung_gpio_cfgs[0], .chip = { .base = EXYNOS4_GPY0(0), .ngpio = EXYNOS4_GPIO_Y0_NR, .label = "GPY0", }, }, { - .config = &samsung_gpio_cfgs[4], + .config = &samsung_gpio_cfgs[0], .chip = { .base = EXYNOS4_GPY1(0), .ngpio = EXYNOS4_GPIO_Y1_NR, .label = "GPY1", }, }, { - .config = &samsung_gpio_cfgs[4], + .config = &samsung_gpio_cfgs[0], .chip = { .base = EXYNOS4_GPY2(0), .ngpio = EXYNOS4_GPIO_Y2_NR, .label = "GPY2", }, }, { - .config = &samsung_gpio_cfgs[4], + .config = &samsung_gpio_cfgs[0], .chip = { .base = EXYNOS4_GPY3(0), .ngpio = EXYNOS4_GPIO_Y3_NR, .label = "GPY3", }, }, { - .config = &samsung_gpio_cfgs[4], + .config = &samsung_gpio_cfgs[0], .chip = { .base = EXYNOS4_GPY4(0), .ngpio = EXYNOS4_GPIO_Y4_NR, .label = "GPY4", }, }, { - .config = &samsung_gpio_cfgs[4], + .config = &samsung_gpio_cfgs[0], .chip = { .base = EXYNOS4_GPY5(0), .ngpio = EXYNOS4_GPIO_Y5_NR, .label = "GPY5", }, }, { - .config = &samsung_gpio_cfgs[4], + .config = &samsung_gpio_cfgs[0], .chip = { .base = EXYNOS4_GPY6(0), .ngpio = EXYNOS4_GPIO_Y6_NR,@@ -2299,7 +2299,7 @@ static struct samsung_gpio_chip exynos4_gpios_2[] = { }, }, { .base = (S5P_VA_GPIO2 + 0xC00), - .config = &samsung_gpio_cfgs[4], + .config = &samsung_gpio_cfgs[3], .irq_base = IRQ_EINT(0), .chip = { .base = EXYNOS4_GPX0(0),@@ -2309,7 +2309,7 @@ static struct samsung_gpio_chip exynos4_gpios_2[] = { }, }, { .base = (S5P_VA_GPIO2 + 0xC20), - .config = &samsung_gpio_cfgs[4], + .config = &samsung_gpio_cfgs[3], .irq_base = IRQ_EINT(8), .chip = { .base = EXYNOS4_GPX1(0),@@ -2319,7 +2319,7 @@ static struct samsung_gpio_chip exynos4_gpios_2[] = { }, }, { .base = (S5P_VA_GPIO2 + 0xC40), - .config = &samsung_gpio_cfgs[4], + .config = &samsung_gpio_cfgs[3], .irq_base = IRQ_EINT(16), .chip = { .base = EXYNOS4_GPX2(0),@@ -2329,7 +2329,7 @@ static struct samsung_gpio_chip exynos4_gpios_2[] = { }, }, { .base = (S5P_VA_GPIO2 + 0xC60), - .config = &samsung_gpio_cfgs[4], + .config = &samsung_gpio_cfgs[3], .irq_base = IRQ_EINT(24), .chip = { .base = EXYNOS4_GPX3(0),@@ -2399,7 +2399,7 @@ static __init int samsung_gpiolib_init(void)for (i =0 ; i < nr_chips; i++, chip++) {if (!chip->config) { - chip->config = &samsung_gpio_cfgs[4 ]; + chip->config = &samsung_gpio_cfgs[3 ]; chip->group = group++; } }@@ -2414,7 +2414,7 @@ static __init int samsung_gpiolib_init(void)for (i =0 ; i < nr_chips; i++, chip++) {if (!chip->config) { - chip->config = &samsung_gpio_cfgs[4 ]; + chip->config = &samsung_gpio_cfgs[3 ]; chip->group = group++; } }Signature · 1 line
1.7.1.569.g6f426
Kukjin Kim
AppliedQuoted 16 lines · Grant Likely
Quoted 7 lines · Marek Szyprowski
Commit
1b39d5f2ccintroduced new common gpio driver for all Samsung GPIO SoCs. The new driver use wrong configuration setup for all gpio pins on S5PC100 and S5PV210 SoCs and external interrupt lines on Exynos4 SoCs. This patch fixes this issue.Signed-off-by Marek Szyprowski <[email protected]>Signed-off-by Kyungmin Park <[email protected]>Acked-by Grant Likely <[email protected]>Quoted 4 lines
--- drivers/gpio/gpio-samsung.c | 30 +++++++++++++++--------------- 1 files changed, 15 insertions(+), 15 deletions(-)
Quoted 5 lines
drivers/gpio/gpio-samsung.c static struct samsung_gpio_chip
Quoted 5 lines
drivers/gpio/gpio-samsung.c +0
-0@@ -1862,7 +1862,7 @@ static struct samsung_gpio_chip
s5pc100_gpios_4bit[]
Quoted 9 lines
= {
Quoted 8 lines
drivers/gpio/gpio-samsung.c +1
-1* Followings are the gpio banks in S5PV210/S5PC110 * * The 'config' member when left to NULL, is initialized to the default -* structure samsung_gpio_cfgs[4] in the init function below. +* structure samsung_gpio_cfgs[3] in the init function below. * * The 'base' member is also initialized in the init function below. * Note: The initialization of 'base' member of samsung_gpio_chip
structure
Quoted 1 line
drivers/gpio/gpio-samsung.c static struct samsung_gpio_chip
Quoted 1 line
drivers/gpio/gpio-samsung.c +0
-0@@ -2083,7 +2083,7 @@ static struct samsung_gpio_chip
s5pv210_gpios_4bit[]
Quoted 9 lines
= {
Quoted 8 lines
drivers/gpio/gpio-samsung.c +1
-1* Followings are the gpio banks in EXYNOS4210 * * The 'config' member when left to NULL, is initialized to the default -* structure samsung_gpio_cfgs[4] in the init function below. +* structure samsung_gpio_cfgs[3] in the init function below. * * The 'base' member is also initialized in the init function below. * Note: The initialization of 'base' member of samsung_gpio_chip
structure
Quoted 1 line
drivers/gpio/gpio-samsung.c static struct samsung_gpio_chip
Quoted 1 line
drivers/gpio/gpio-samsung.c +0
-0@@ -2249,49 +2249,49 @@ static struct samsung_gpio_chip
exynos4_gpios_2[]
Quoted 50 lines
= {
Quoted 49 lines
drivers/gpio/gpio-samsung.c +6
-6.label = "GPL2", }, }, { - .config = &samsung_gpio_cfgs[4], + .config = &samsung_gpio_cfgs[0], .chip = { .base = EXYNOS4_GPY0(0), .ngpio = EXYNOS4_GPIO_Y0_NR, .label = "GPY0", }, }, { - .config = &samsung_gpio_cfgs[4], + .config = &samsung_gpio_cfgs[0], .chip = { .base = EXYNOS4_GPY1(0), .ngpio = EXYNOS4_GPIO_Y1_NR, .label = "GPY1", }, }, { - .config = &samsung_gpio_cfgs[4], + .config = &samsung_gpio_cfgs[0], .chip = { .base = EXYNOS4_GPY2(0), .ngpio = EXYNOS4_GPIO_Y2_NR, .label = "GPY2", }, }, { - .config = &samsung_gpio_cfgs[4], + .config = &samsung_gpio_cfgs[0], .chip = { .base = EXYNOS4_GPY3(0), .ngpio = EXYNOS4_GPIO_Y3_NR, .label = "GPY3", }, }, { - .config = &samsung_gpio_cfgs[4], + .config = &samsung_gpio_cfgs[0], .chip = { .base = EXYNOS4_GPY4(0), .ngpio = EXYNOS4_GPIO_Y4_NR, .label = "GPY4", }, }, { - .config = &samsung_gpio_cfgs[4], + .config = &samsung_gpio_cfgs[0], .chip = { .base = EXYNOS4_GPY5(0), .ngpio = EXYNOS4_GPIO_Y5_NR, .label = "GPY5",
Quoted 8 lines
drivers/gpio/gpio-samsung.c static struct samsung_gpio_chip exynos4_gpios_2[]
Quoted 8 lines
drivers/gpio/gpio-samsung.c +1
-1}, }, { - .config = &samsung_gpio_cfgs[4], + .config = &samsung_gpio_cfgs[0], .chip = { .base = EXYNOS4_GPY6(0), .ngpio = EXYNOS4_GPIO_Y6_NR,@@ -2299,7 +2299,7 @@ static struct samsung_gpio_chip exynos4_gpios_2[]
=
Quoted 10 lines
{
drivers/gpio/gpio-samsung.c static struct samsung_gpio_chip exynos4_gpios_2[]
Quoted 9 lines
drivers/gpio/gpio-samsung.c +1
-1}, }, { .base = (S5P_VA_GPIO2 + 0xC00), - .config = &samsung_gpio_cfgs[4], + .config = &samsung_gpio_cfgs[3], .irq_base = IRQ_EINT(0), .chip = { .base = EXYNOS4_GPX0(0),@@ -2309,7 +2309,7 @@ static struct samsung_gpio_chip exynos4_gpios_2[]
=
Quoted 10 lines
{
drivers/gpio/gpio-samsung.c static struct samsung_gpio_chip exynos4_gpios_2[]
Quoted 9 lines
drivers/gpio/gpio-samsung.c +1
-1}, }, { .base = (S5P_VA_GPIO2 + 0xC20), - .config = &samsung_gpio_cfgs[4], + .config = &samsung_gpio_cfgs[3], .irq_base = IRQ_EINT(8), .chip = { .base = EXYNOS4_GPX1(0),@@ -2319,7 +2319,7 @@ static struct samsung_gpio_chip exynos4_gpios_2[]
=
Quoted 10 lines
{
drivers/gpio/gpio-samsung.c static struct samsung_gpio_chip exynos4_gpios_2[]
Quoted 9 lines
drivers/gpio/gpio-samsung.c +1
-1}, }, { .base = (S5P_VA_GPIO2 + 0xC40), - .config = &samsung_gpio_cfgs[4], + .config = &samsung_gpio_cfgs[3], .irq_base = IRQ_EINT(16), .chip = { .base = EXYNOS4_GPX2(0),@@ -2329,7 +2329,7 @@ static struct samsung_gpio_chip exynos4_gpios_2[]
=
Quoted 20 lines
{
Quoted 19 lines
drivers/gpio/gpio-samsung.c +2
-2}, }, { .base = (S5P_VA_GPIO2 + 0xC60), - .config = &samsung_gpio_cfgs[4], + .config = &samsung_gpio_cfgs[3], .irq_base = IRQ_EINT(24), .chip = { .base = EXYNOS4_GPX3(0),@@ -2399,7 +2399,7 @@ static __init int samsung_gpiolib_init(void)for (i =0 ; i < nr_chips; i++, chip++) {if (!chip->config) { - chip->config = &samsung_gpio_cfgs[4 ]; + chip->config = &samsung_gpio_cfgs[3 ]; chip->group = group++; } }@@ -2414,7 +2414,7 @@ static __init int samsung_gpiolib_init(void)
Quoted 10 lines
Quoted 10 lines
drivers/gpio/gpio-samsung.c +1
-2for (i =0 ; i < nr_chips; i++, chip++) {if (!chip->config) { - chip->config = &samsung_gpio_cfgs[4 ]; + chip->config = &samsung_gpio_cfgs[3 ]; chip->group = group++; } } --1.7.1.569.g6f426
Applied.
Thanks.
Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.