ARM: davinci: set GPIO base to 0 manually
cover ARM: davinci: set GPIO base to 0 manually
From: Bartosz Golaszewski <[email protected]>
This is a follow-up to the series that fixes a problem with ethernet on da850-evm. All DaVinci boards in legacy mode were broken by commit 587f7a694f01 ("gpio: davinci: Use dev name for label and automatic base selection"). This series sets the GPIO base to 0 manually for all DaVinci SoCs.
Bartosz Golaszewski (5):
ARM: davinci: dm365: set the GPIO base to 0
ARM: davinci: dm646x: set the GPIO base to 0
ARM: davinci: dm355: set the GPIO base to 0
ARM: davinci: da830: set the GPIO base to 0
ARM: davinci: dm644x: set the GPIO base to 0
arch/arm/mach-davinci/da830.c | 2 ++ arch/arm/mach-davinci/dm355.c | 2 ++ arch/arm/mach-davinci/dm365.c | 2 ++ arch/arm/mach-davinci/dm644x.c | 2 ++ arch/arm/mach-davinci/dm646x.c | 2 ++ 5 files changed, 10 insertions(+)
Signature · 1 line
2.19.1
PATCH 1/5 ARM: davinci: dm365: set the GPIO base to 0
From: Bartosz Golaszewski <[email protected]>
Commit 587f7a694f01 ("gpio: davinci: Use dev name for label and automatic base selection") broke the GPIO support on DaVinci boards in legacy mode by allowing gpiolib to set the GPIO base automatically.
DaVinci board files use the legacy GPIO API with hard-coded GPIO line numbers. Use the new fields in struct davinci_gpio_platform_data to manually set the GPIO base to 0.
--- arch/arm/mach-davinci/dm365.c | 2 ++ 1 file changed, 2 insertions(+)
arch/arm/mach-davinci/dm365.c +2 -0
@@ -273,6 +273,8 @@ static struct resource dm365_gpio_resources[] = { };static struct davinci_gpio_platform_data dm365_gpio_platform_data = { + .no_auto_base = true, + .base =0 , .ngpio =104 , .gpio_unbanked =8 , };
Signature · 1 line
2.19.1
PATCH 2/5 ARM: davinci: dm646x: set the GPIO base to 0
In reply to Bartosz GolaszewskiFrom: Bartosz Golaszewski <[email protected]>
Commit 587f7a694f01 ("gpio: davinci: Use dev name for label and automatic base selection") broke the GPIO support on DaVinci boards in legacy mode by allowing gpiolib to set the GPIO base automatically.
DaVinci board files use the legacy GPIO API with hard-coded GPIO line numbers. Use the new fields in struct davinci_gpio_platform_data to manually set the GPIO base to 0.
--- arch/arm/mach-davinci/dm646x.c | 2 ++ 1 file changed, 2 insertions(+)
arch/arm/mach-davinci/dm646x.c +2 -0
@@ -448,6 +448,8 @@ static struct resource dm646x_gpio_resources[] = { };static struct davinci_gpio_platform_data dm646x_gpio_platform_data = { + .no_auto_base = true, + .base =0 , .ngpio =43 , };
Signature · 1 line
2.19.1
PATCH 3/5 ARM: davinci: dm355: set the GPIO base to 0
In reply to Bartosz GolaszewskiFrom: Bartosz Golaszewski <[email protected]>
Commit 587f7a694f01 ("gpio: davinci: Use dev name for label and automatic base selection") broke the GPIO support on DaVinci boards in legacy mode by allowing gpiolib to set the GPIO base automatically.
DaVinci board files use the legacy GPIO API with hard-coded GPIO line numbers. Use the new fields in struct davinci_gpio_platform_data to manually set the GPIO base to 0.
--- arch/arm/mach-davinci/dm355.c | 2 ++ 1 file changed, 2 insertions(+)
arch/arm/mach-davinci/dm355.c +2 -0
@@ -554,6 +554,8 @@ static struct resource dm355_gpio_resources[] = { };static struct davinci_gpio_platform_data dm355_gpio_platform_data = { + .no_auto_base = true, + .base =0 , .ngpio =104 , };
Signature · 1 line
2.19.1
PATCH 4/5 ARM: davinci: da830: set the GPIO base to 0
In reply to Bartosz GolaszewskiFrom: Bartosz Golaszewski <[email protected]>
Commit 587f7a694f01 ("gpio: davinci: Use dev name for label and automatic base selection") broke the GPIO support on DaVinci boards in legacy mode by allowing gpiolib to set the GPIO base automatically.
DaVinci board files use the legacy GPIO API with hard-coded GPIO line numbers. Use the new fields in struct davinci_gpio_platform_data to manually set the GPIO base to 0.
--- arch/arm/mach-davinci/da830.c | 2 ++ 1 file changed, 2 insertions(+)
arch/arm/mach-davinci/da830.c +2 -0
@@ -759,6 +759,8 @@ static struct davinci_id da830_ids[] = { };static struct davinci_gpio_platform_data da830_gpio_platform_data = { + .no_auto_base = true, + .base =0 , .ngpio =128 , };
Signature · 1 line
2.19.1
PATCH 5/5 ARM: davinci: dm644x: set the GPIO base to 0
In reply to Bartosz GolaszewskiFrom: Bartosz Golaszewski <[email protected]>
Commit 587f7a694f01 ("gpio: davinci: Use dev name for label and automatic base selection") broke the GPIO support on DaVinci boards in legacy mode by allowing gpiolib to set the GPIO base automatically.
DaVinci board files use the legacy GPIO API with hard-coded GPIO line numbers. Use the new fields in struct davinci_gpio_platform_data to manually set the GPIO base to 0.
--- arch/arm/mach-davinci/dm644x.c | 2 ++ 1 file changed, 2 insertions(+)
arch/arm/mach-davinci/dm644x.c +2 -0
@@ -498,6 +498,8 @@ static struct resource dm644_gpio_resources[] = { };static struct davinci_gpio_platform_data dm644_gpio_platform_data = { + .no_auto_base = true, + .base =0 , .ngpio =71 , };
Signature · 1 line
2.19.1