]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] ARM: OMAP: [PATCH] IO mappings for omap16xx chips
authorOlav Kongas <ok@artecdesign.ee>
Thu, 28 Jul 2005 10:26:12 +0000 (03:26 -0700)
committerTony Lindgren <tony@atomide.com>
Thu, 28 Jul 2005 10:26:12 +0000 (03:26 -0700)
Here comes the updated patch, extending the mapping for all
16xx omap chips and combining the identical mapping for
5912.

Patch modified to test for 16xx only. Also renamed omap1610_io_desc
to omap16xx_io_desc.

arch/arm/mach-omap1/io.c

index 6981a2a6aa2eda6fc72c7a683e2086bd61417f8f..eb8261d7dead9b0eb99ae98887f6a540c79450f8 100644 (file)
@@ -44,12 +44,7 @@ static struct map_desc omap1510_io_desc[] __initdata = {
 #endif
 
 #if defined(CONFIG_ARCH_OMAP16XX)
-static struct map_desc omap1610_io_desc[] __initdata = {
- { OMAP16XX_DSP_BASE,    OMAP16XX_DSP_START,    OMAP16XX_DSP_SIZE,    MT_DEVICE },
- { OMAP16XX_DSPREG_BASE, OMAP16XX_DSPREG_START, OMAP16XX_DSPREG_SIZE, MT_DEVICE },
-};
-
-static struct map_desc omap5912_io_desc[] __initdata = {
+static struct map_desc omap16xx_io_desc[] __initdata = {
  { OMAP16XX_DSP_BASE,    OMAP16XX_DSP_START,    OMAP16XX_DSP_SIZE,    MT_DEVICE },
  { OMAP16XX_DSPREG_BASE, OMAP16XX_DSPREG_START, OMAP16XX_DSPREG_SIZE, MT_DEVICE },
 };
@@ -77,11 +72,8 @@ static void __init _omap_map_io(void)
        }
 #endif
 #if defined(CONFIG_ARCH_OMAP16XX)
-       if (cpu_is_omap1610() || cpu_is_omap1710()) {
-               iotable_init(omap1610_io_desc, ARRAY_SIZE(omap1610_io_desc));
-       }
-       if (cpu_is_omap5912()) {
-               iotable_init(omap5912_io_desc, ARRAY_SIZE(omap5912_io_desc));
+       if (cpu_is_omap16xx()) {
+               iotable_init(omap16xx_io_desc, ARRAY_SIZE(omap16xx_io_desc));
        }
 #endif