From owner-p4-projects@FreeBSD.ORG Thu Apr 13 17:28:42 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 9291016A409; Thu, 13 Apr 2006 17:28:42 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3708816A404 for ; Thu, 13 Apr 2006 17:28:42 +0000 (UTC) (envelope-from imp@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id EAB9A43D46 for ; Thu, 13 Apr 2006 17:28:41 +0000 (GMT) (envelope-from imp@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k3DHSfF1082014 for ; Thu, 13 Apr 2006 17:28:41 GMT (envelope-from imp@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k3DHSffj082011 for perforce@freebsd.org; Thu, 13 Apr 2006 17:28:41 GMT (envelope-from imp@freebsd.org) Date: Thu, 13 Apr 2006 17:28:41 GMT Message-Id: <200604131728.k3DHSffj082011@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to imp@freebsd.org using -f From: Warner Losh To: Perforce Change Reviews Cc: Subject: PERFORCE change 95166 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 17:28:42 -0000 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;