]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] ARM: OMAP: Use gpmc_cs_get_base_addr for H4 smc91x
authorKomal Shah <komal_shah802003@yahoo.com>
Tue, 20 Jun 2006 16:44:11 +0000 (09:44 -0700)
committerTony Lindgren <tony@atomide.com>
Tue, 20 Jun 2006 16:44:11 +0000 (09:44 -0700)
Use gpmc_cs_get_base_addr for H4 smc91x

Signed-off-by: Komal Shah <komal_shah802003@yahoo.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/board-h4.c

index 4933fce766c8269569b3e4f8bec8843e5c987916..05eba929332078dae7db62b506918aa70be0de39 100644 (file)
@@ -36,6 +36,7 @@
 #include <asm/arch/keypad.h>
 #include <asm/arch/menelaus.h>
 #include <asm/arch/dma.h>
+#include <asm/arch/gpmc.h>
 #include "prcm-regs.h"
 
 #include <asm/io.h>
@@ -134,8 +135,6 @@ static struct platform_device h4_flash_device = {
 
 static struct resource h4_smc91x_resources[] = {
        [0] = {
-               .start  = OMAP24XX_ETHR_START,          /* Physical */
-               .end    = OMAP24XX_ETHR_START + 0xf,
                .flags  = IORESOURCE_MEM,
        },
        [1] = {
@@ -290,6 +289,9 @@ static inline void __init h4_init_smc91x(void)
                return;
        }
        omap_set_gpio_direction(OMAP24XX_ETHR_GPIO_IRQ, 1);
+
+       h4_smc91x_resources[0].start = gpmc_cs_get_base_addr(1) + 0x300;
+       h4_smc91x_resources[0].end   = h4_smc91x_resources[0].start + 0xf;
 }
 
 static void __init omap_h4_init_irq(void)