From owner-cvs-src@FreeBSD.ORG Tue Jun 20 20:13:40 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CDAF716A47B; Tue, 20 Jun 2006 20:13:40 +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 90A5143D45; Tue, 20 Jun 2006 20:13:40 +0000 (GMT) (envelope-from imp@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k5KKDeS5061434; Tue, 20 Jun 2006 20:13:40 GMT (envelope-from imp@repoman.freebsd.org) Received: (from imp@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k5KKDeCo061433; Tue, 20 Jun 2006 20:13:40 GMT (envelope-from imp) Message-Id: <200606202013.k5KKDeCo061433@repoman.freebsd.org> From: Warner Losh Date: Tue, 20 Jun 2006 20:13:40 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/arm/at91 at91rm92reg.h kb920x_machdep.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 20:13:40 -0000 imp 2006-06-20 20:13:40 UTC FreeBSD src repository Modified files: sys/arm/at91 at91rm92reg.h kb920x_machdep.c Log: Probe the memory size of the board better. Look at the bus width, number of banks, rows and columns the SDRAMC is programmed to access to determine the RAM size for the board, rather than hard-wiring it to be 32MB. My company's board with 64MB now probes correctly, as does the KB9202 with only 32MB. This means that to detect the right memory size, our boot loader must correctly initialize these values. This is a fairly safe assumption because the boot loader has to initialize SDRAM already, and it isn't really possible to change this register after we've accessed SDRAM. Revision Changes Path 1.3 +40 -0 src/sys/arm/at91/at91rm92reg.h 1.7 +20 -2 src/sys/arm/at91/kb920x_machdep.c