From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matej Kupljen Date: Wed, 11 May 2005 20:31:41 +0200 Subject: [U-Boot-Users] memory probe In-Reply-To: References: Message-ID: <1115836301.25819.7.camel@orionlinux.starfleet.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi > what if we want same image to work on 2 different memory configuration > hardware ? We had such board. One with 32MB and other with 64MB of SDRAM. We used DIP switches, which were read early in a U-Boot, in memsetup.S. On the position of this DIP switch we then decided which path in the mesetup.S to take. Then, in out dram_init function for our board, we again read the DIP switch and decide what to report as DRAM size. BR, Matej