]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: shmobile: bockw: define FPGA address and rename iomem variable
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 17 Apr 2013 05:17:42 +0000 (22:17 -0700)
committerSimon Horman <horms+renesas@verge.net.au>
Sat, 25 May 2013 04:51:32 +0000 (13:51 +0900)
Bock-W board will needs more board specific ioremap() method.
This patch tidyup current FPGA specific settings

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/board-bockw.c

index 88fcdb3b8c15b57cc325639733bb1244b07c0e3a..4d65715901355e871496bc956545eb2c712073a7 100644 (file)
@@ -62,10 +62,11 @@ static const struct pinctrl_map bockw_pinctrl_map[] = {
                                  "scif0_ctrl", "scif0"),
 };
 
+#define FPGA   0x18200000
 #define IRQ0MR 0x30
 static void __init bockw_init(void)
 {
-       void __iomem *fpga;
+       void __iomem *base;
 
        r8a7778_clock_init();
        r8a7778_init_irq_extpin(1);
@@ -75,8 +76,8 @@ static void __init bockw_init(void)
                                  ARRAY_SIZE(bockw_pinctrl_map));
        r8a7778_pinmux_init();
 
-       fpga = ioremap_nocache(0x18200000, SZ_1M);
-       if (fpga) {
+       base = ioremap_nocache(FPGA, SZ_1M);
+       if (base) {
                /*
                 * CAUTION
                 *
@@ -84,10 +85,10 @@ static void __init bockw_init(void)
                 * it should be cared in the future
                 * Now, it is assuming IRQ0 was used only from SMSC.
                 */
-               u16 val = ioread16(fpga + IRQ0MR);
+               u16 val = ioread16(base + IRQ0MR);
                val &= ~(1 << 4); /* enable SMSC911x */
-               iowrite16(val, fpga + IRQ0MR);
-               iounmap(fpga);
+               iowrite16(val, base + IRQ0MR);
+               iounmap(base);
 
                regulator_register_fixed(0, dummy_supplies,
                                         ARRAY_SIZE(dummy_supplies));