diff --git a/configs/ntosd-dm320/defconfig b/configs/ntosd-dm320/defconfig index b2d4c505e90..cc6d5ee42e8 100644 --- a/configs/ntosd-dm320/defconfig +++ b/configs/ntosd-dm320/defconfig @@ -298,7 +298,7 @@ CONFIG_NET_RESOLV_ENTRIES=4 CONFIG_NET_DM90x0=n CONFIG_DM9X_NINTERFACES=1 CONFIG_DM9X_STATS=1 -CONFIG_DM9X_BASE=0x60000300 +CONFIG_DM9X_BASE=0xd0000300 CONFIG_DM9X_IRQ=27 CONFIG_DM9X_BUSWIDTH8=n CONFIG_DM9X_BUSWIDTH16=y diff --git a/configs/ntosd-dm320/src/up_network.c b/configs/ntosd-dm320/src/up_network.c index 78234f98f17..19d56ab3b20 100644 --- a/configs/ntosd-dm320/src/up_network.c +++ b/configs/ntosd-dm320/src/up_network.c @@ -41,12 +41,14 @@ #if defined(CONFIG_NET) && defined(CONFIG_NET_DM90x0) #include +#include #include #include "up_arch.h" #include "up_internal.h" #include "dm320_memorymap.h" +#include "dm320_emif.h" #include "dm320_gio.h" extern void dm9x_initialize(void); @@ -78,6 +80,9 @@ void up_netinitialize(void) * width is 16-bits. */ + lldbg("CS4CTRL1=%04x CS4CTRL2=%04x\n", + getreg16(DM320_EMIF_CS4CTRL1), getreg16(DM320_EMIF_CS4CTRL2)); + /* It is assumed that bootloader has already configured CS4. Here, * we will only make certain that the GIO is properly configured */ @@ -87,6 +92,10 @@ void up_netinitialize(void) GIO_INTERRUPT(GIO_DM9000A_INT); GIO_RISINGEDGE(GIO_DM9000A_INT); + lldbg("GIO DIR0=%04x INV0=%04x IRQPORT=%04x IRQEDGE=%04x\n", + getreg16(DM320_GIO_DIR0), getreg16(DM320_GIO_INV0), + getreg16(DM320_GIO_IRQPORT), getreg16(DM320_GIO_IRQEDGE)); + /* Then initialize the driver */ dm9x_initialize();