Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Apr 2006 17:28:41 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 95166 for review
Message-ID:  <200604131728.k3DHSffj082011@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=95166

Change 95166 by imp@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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604131728.k3DHSffj082011>