* [PATCH] ARM: OMAP: Use gpmc_cs_get_base_addr for H4 smc91x
@ 2006-06-16 12:08 Komal Shah
2006-06-20 18:10 ` Tony Lindgren
0 siblings, 1 reply; 2+ messages in thread
From: Komal Shah @ 2006-06-16 12:08 UTC (permalink / raw)
To: linux-omap-open-source
[-- Attachment #1: Type: text/plain, Size: 151 bytes --]
Tested on H4 with NFS.
---Komal Shah
http://komalshah.blogspot.com
--
http://www.fastmail.fm - And now for something completely different
[-- Attachment #2: 0001-gpmcsmc91x.patch --]
[-- Type: application/octet-stream, Size: 1373 bytes --]
From nobody Mon Sep 17 00:00:00 2001
From: Komal Shah <komal_shah802003@yahoo.com>
Date: Fri, 16 Jun 2006 23:05:50 +0530
Subject: [PATCH] ARM: OMAP: Use gpmc_cs_get_base_addr for H4 smc91x
Signed-off-by: Komal Shah <komal_shah802003@yahoo.com>
---
arch/arm/mach-omap2/board-h4.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
06d2cf72487a3716e4360ad2591d7abd0010fdfc
diff --git a/arch/arm/mach-omap2/board-h4.c b/arch/arm/mach-omap2/board-h4.c
index 4933fce..05eba92 100644
--- a/arch/arm/mach-omap2/board-h4.c
+++ b/arch/arm/mach-omap2/board-h4.c
@@ -36,6 +36,7 @@ #include <asm/arch/common.h>
#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_d
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
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)
--
1.3.3
[-- Attachment #3: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-06-20 18:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-16 12:08 [PATCH] ARM: OMAP: Use gpmc_cs_get_base_addr for H4 smc91x Komal Shah
2006-06-20 18:10 ` Tony Lindgren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox