From 17cd565fcce6e2387967d26171048017c5c9cfa6 Mon Sep 17 00:00:00 2001 From: Komal Shah Date: Tue, 20 Jun 2006 09:44:11 -0700 Subject: [PATCH] [PATCH] ARM: OMAP: Use gpmc_cs_get_base_addr for H4 smc91x Use gpmc_cs_get_base_addr for H4 smc91x Signed-off-by: Komal Shah Signed-off-by: Tony Lindgren --- arch/arm/mach-omap2/board-h4.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/board-h4.c b/arch/arm/mach-omap2/board-h4.c index 4933fce766c..05eba929332 100644 --- a/arch/arm/mach-omap2/board-h4.c +++ b/arch/arm/mach-omap2/board-h4.c @@ -36,6 +36,7 @@ #include #include #include +#include #include "prcm-regs.h" #include @@ -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) -- 2.41.1