mpc83xx: set MPC83XX_GPIO_CTRLRS to 2 for MPC8309
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Thu, 12 Dec 2019 09:18:52 +0000 (09:18 +0000)
committerMario Six <mario.six@gdsys.cc>
Wed, 8 Jan 2020 07:14:20 +0000 (08:14 +0100)
The MPC8309 has two gpio controllers (which is already correctly
reflected in its struct immap definition).

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Reviewed-by: Mario Six <mario.six@gdsys.cc>
arch/powerpc/include/asm/arch-mpc83xx/gpio.h

index 385d651d20075096e9d992e7791dbebf74d08b0b..8a6896e6229cb654a678cb78a279597f7a00d0dc 100644 (file)
@@ -9,7 +9,8 @@
 #if defined(CONFIG_ARCH_MPC8313) || defined(CONFIG_ARCH_MPC8308) || \
        defined(CONFIG_ARCH_MPC8315)
 #define MPC83XX_GPIO_CTRLRS 1
-#elif defined(CONFIG_ARCH_MPC834X) || defined(CONFIG_ARCH_MPC837X)
+#elif defined(CONFIG_ARCH_MPC834X) || defined(CONFIG_ARCH_MPC837X) || \
+       defined(CONFIG_ARCH_MPC8309)
 #define MPC83XX_GPIO_CTRLRS 2
 #else
 #define MPC83XX_GPIO_CTRLRS 0