Skip to contentSkip to conversation

m68knommu: added dm9000 support

RFC PATCH Superseded Angelo Dureghello 1 participant 1 message Jan 8, 2011

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

RFC PATCH v3 1/1 m68knommu: added dm9000 support

This patch allows to use the dm9000 network chip with a m68knommu big-endian cpu. From the data bus circuit-wiring point of view, the cpu data bus connected to the dm9000 chip should be hardware-byte-swapped, crossing the bytes wires (D0:7 to D24:31, etc.).
In anyway, has been also added an option to swap the bytes in the driver, if some cpu has been wired straight D0:D31 to dm9000.

---

drivers/net/Kconfig renamed from drivers/net/Kconfig.orig +9 -1
@@ -960,7 +960,7 @@ config TI_DAVINCI_EMAC
 
 config DM9000
 	tristate "DM9000 support"
-	depends on ARM || BLACKFIN || MIPS
+	depends on COLDFIRE || ARM || BLACKFIN || MIPS
 	select CRC32
 	select MII
 	---help---
@@ -986,6 +986,14 @@ config DM9000_FORCE_SIMPLE_PHY_POLL
 	  costly MII PHY reads. Note, this will not work if the chip is
 	  operating with an external PHY.
 
+config DM9000_32BIT_SW_SWAP
+	bool "Software byte swap for 32 bit data bus"
+	depends on DM9000 && COLDFIRE
+	---help---
+	  This configuration allows to swap data bytes from the dm9000
+	  driver itself, when the big endian cpu is wired straight to
+	  the dm9000 32 bit data bus.
+
 config ENC28J60
 	tristate "ENC28J60 support"
 	depends on EXPERIMENTAL && SPI && NET_ETHERNET
drivers/net/dm9000.c renamed from drivers/net/dm9000.c.orig +102 -7

251 lines not on this page · raw message

arch/m68k/include/asm/io_no.h renamed from arch/m68k/include/asm/io_no.h.orig +84 -0

90 lines not on this page · raw message