summaryrefslogtreecommitdiff
path: root/include/configs/scb9328.h
diff options
context:
space:
mode:
authorRemy Bohmer <linux@bohmer.net>2008-06-03 15:26:21 +0200
committerBen Warren <biggerbadderben@gmail.com>2008-06-04 23:47:31 -0700
commita101361bfe23c120321e45d114c0603b8e0763e9 (patch)
tree81978bc39a9c482e63ce462b3a65b14cbedc1915 /include/configs/scb9328.h
parentea183432e79fe01781abbda411968b33580a3497 (diff)
downloadu-boot-imx-a101361bfe23c120321e45d114c0603b8e0763e9.zip
u-boot-imx-a101361bfe23c120321e45d114c0603b8e0763e9.tar.gz
u-boot-imx-a101361bfe23c120321e45d114c0603b8e0763e9.tar.bz2
DM9000: Add data bus-width auto detection.
The U-boot DM9000x driver contains a compile time bus-width definition for the databus connected to the network controller. This compile check makes the code unclear, inflexible and is unneccessary. It can be asked to the network controller what its bus-width is by reading bits 6 and 7 of the interrupt status register. The linux kernel already uses a runtime mechanism to determine this bus-width, so the implementation below looks somewhat like that implementation. This change has been tested with DM9000A, DM9000E, DM9000EP. Signed-off-by: Remy Bohmer <linux@bohmer.net> Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'include/configs/scb9328.h')
-rw-r--r--include/configs/scb9328.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/configs/scb9328.h b/include/configs/scb9328.h
index d140241..4ae25ad 100644
--- a/include/configs/scb9328.h
+++ b/include/configs/scb9328.h
@@ -257,13 +257,9 @@
#define CFG_CS5L_VAL 0x00000D03
#define CONFIG_DRIVER_DM9000 1
-#define CONFIG_DRIVER_DM9000 1
#define CONFIG_DM9000_BASE 0x16000000
#define DM9000_IO CONFIG_DM9000_BASE
#define DM9000_DATA (CONFIG_DM9000_BASE+4)
-/* #define CONFIG_DM9000_USE_8BIT */
-#define CONFIG_DM9000_USE_16BIT
-/* #define CONFIG_DM9000_USE_32BIT */
/* f_{dpll}=2*f{ref}*(MFI+MFN/(MFD+1))/(PD+1)
f_ref=16,777MHz