ARM: OMAP2/3: Add generic smc91x support when connected to GPMC
Subsystems (5)
Tony Lindgren
maintainerHi all,
Here's an patch for generic gpmc-smc91x support.
The patch now uses better timings from the smc91x data sheet thanks to Paul Walmsley, but the SDP board timings remain a bit of a mystery..
So the patch currently does not change the timings for 2430sdp and 3430sdp as they seem to be connected in the muxed mode, and possibly through the FPGA too. Uboot timings are used instead.
Does anybody here from TI know about calculating the timings for the SDP boards? And if the smc91x is wired through the FPGA instead of level shifters?
The patch could be improved further later on with better timings to account for the level shifter latencies as pointed out by Paul.
Regards,
Tony
Quoted 1 line
From
bd4425c7e87449c01849e60bd72a7a62a650bbccMon Sep 17 00:00:00 2001
From: Tony Lindgren <[email protected]>
Date: Fri, 15 May 2009 08:05:03 -0700
Subject: [PATCH] ARM: OMAP2/3: Add generic smc91x support when connected to GPMC
Convert the board-rx51 smc91x code to be generic and make the boards to use it. This allows future recalculation of the timings when the source clock gets scaled.
Also correct the rx51 interrupt to be IORESOURCE_IRQ_HIGHLEVEL.
Thanks to Paul Walmsley <[email protected]> for better GPMC timing calculations.
arch/arm/mach-omap2/Makefile +3 -0
@@ -61,3 +61,6 @@ endif onenand-$(CONFIG_MTD_ONENAND_OMAP2) := gpmc-onenand.o obj-y += $(onenand-m) $(onenand-y) + +smc91x-$(CONFIG_SMC91X) := gpmc-smc91x.o +obj-y += $(smc91x-m) $(smc91x-y)
arch/arm/mach-omap2/board-2430sdp.c +18 -83
138 lines not on this page · raw message
arch/arm/mach-omap2/board-3430sdp.c +22 -56
121 lines not on this page · raw message
arch/arm/mach-omap2/board-rx51-peripherals.c +23 -117
164 lines not on this page · raw message
arch/arm/mach-omap2/gpmc-smc91x.c new file +189 -0
189 lines not on this page · raw message
arch/arm/plat-omap/include/mach/gpmc-smc91x.h new file +46 -0
46 lines not on this page · raw message