PERFORCE change 95166 for review
Warner Losh
imp at FreeBSD.org
Thu Apr 13 17:28:42 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=95166
Change 95166 by imp at imp_hammer on 2006/04/13 17:27:44
When the SDRAM width is 32-bits, we need to enable D16..D31 in the
PIO controller to be peripheral A. Otherwise we read back all ff's.
Affected files ...
.. //depot/projects/arm/src/sys/boot/arm/at91/boot0/at91rm9200_lowlevel.c#4 edit
Differences ...
==== //depot/projects/arm/src/sys/boot/arm/at91/boot0/at91rm9200_lowlevel.c#4 (text) ====
@@ -151,6 +151,11 @@
AT91C_BASE_SDRC->SDRC_MR = SDRAM_WIDTH | AT91C_SDRC_MODE_NORMAL_CMD;
*p = 0;
+#if SDRAM_WIDTH == AT91C_SDRC_DBW_32_BITS
+ // Turn on the upper 16 bits on the SDRAM bus.
+ AT91C_BASE_PIOC->PIO_ASR = 0xffff0000;
+ AT91C_BASE_PIOC->PIO_PDR = 0xffff0000;
+#endif
// Configure DBGU -use local routine optimized for space
AT91C_BASE_PIOA->PIO_ASR = AT91C_PA31_DTXD | AT91C_PA30_DRXD;
AT91C_BASE_PIOA->PIO_PDR = AT91C_PA31_DTXD | AT91C_PA30_DRXD;
More information about the p4-projects
mailing list