Commit 17cd565f authored by Komal Shah's avatar Komal Shah Committed by Tony Lindgren

[PATCH] ARM: OMAP: Use gpmc_cs_get_base_addr for H4 smc91x

Use gpmc_cs_get_base_addr for H4 smc91x
Signed-off-by: default avatarKomal Shah <komal_shah802003@yahoo.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent e170c2cc
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
#include <asm/arch/keypad.h> #include <asm/arch/keypad.h>
#include <asm/arch/menelaus.h> #include <asm/arch/menelaus.h>
#include <asm/arch/dma.h> #include <asm/arch/dma.h>
#include <asm/arch/gpmc.h>
#include "prcm-regs.h" #include "prcm-regs.h"
#include <asm/io.h> #include <asm/io.h>
...@@ -134,8 +135,6 @@ static struct platform_device h4_flash_device = { ...@@ -134,8 +135,6 @@ static struct platform_device h4_flash_device = {
static struct resource h4_smc91x_resources[] = { static struct resource h4_smc91x_resources[] = {
[0] = { [0] = {
.start = OMAP24XX_ETHR_START, /* Physical */
.end = OMAP24XX_ETHR_START + 0xf,
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
...@@ -290,6 +289,9 @@ static inline void __init h4_init_smc91x(void) ...@@ -290,6 +289,9 @@ static inline void __init h4_init_smc91x(void)
return; return;
} }
omap_set_gpio_direction(OMAP24XX_ETHR_GPIO_IRQ, 1); 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) static void __init omap_h4_init_irq(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment