Modified: trunk/arch/blackfin/kernel/bfin_gpio.c (6004 => 6005)
--- trunk/arch/blackfin/kernel/bfin_gpio.c 2009-01-13 09:02:58 UTC (rev 6004)
+++ trunk/arch/blackfin/kernel/bfin_gpio.c 2009-01-13 11:12:13 UTC (rev 6005)
@@ -106,16 +106,27 @@
(unsigned short *) PORTG_MUX,
(unsigned short *) PORTH_MUX,
};
+# endif
+#if defined(BF527_FAMILY)
static const
u8 pmux_offset[][16] =
{{ 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 4, 6, 8, 8, 10, 10 }, /* PORTF */
{ 0, 0, 0, 0, 0, 2, 2, 4, 4, 6, 8, 10, 10, 10, 12, 12 }, /* PORTG */
{ 0, 0, 0, 0, 0, 0, 0, 0, 2, 4, 4, 4, 4, 4, 4, 4 }, /* PORTH */
};
-# endif
#endif
+#if defined(BF518_FAMILY)
+static const
+u8 pmux_offset[][16] =
+ {{ 0, 2, 2, 2, 2, 2, 2, 4, 6, 6, 6, 8, 8, 8, 8, 10 }, /* PORTF */
+ { 0, 0, 0, 2, 4, 6, 6, 6, 8, 10, 10, 12, 14, 14, 14, 14 }, /* PORTG */
+ { 0, 0, 0, 0, 2, 2, 4, 6, 10, 10, 10, 10, 10, 10, 10, 10 }, /* PORTH */
+ };
+#endif
+#endif
+
static unsigned short reserved_gpio_map[GPIO_BANK_NUM];
static unsigned short reserved_peri_map[gpio_bank(MAX_RESOURCES)];
static unsigned short reserved_gpio_irq_map[GPIO_BANK_NUM];