From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Thu, 25 Sep 2008 16:53:30 +0200 Subject: [U-Boot] CFI driver and P33 64M flash In-Reply-To: <48DB9723.2060708@embedded-sol.com> References: <48DB9723.2060708@embedded-sol.com> Message-ID: <200809251653.30832.sr@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thursday 25 September 2008, Felix Radensky wrote: > I'm running U-Boot 1.3.4 on custom 460EX based board, > equipped with 64M P33 flash (similar to Intel P30). See > http://www.numonyx.com/Documents/Datasheets/314749_P33_Discrete_DS.pdf > > This flash is comprised internally of two 32M flashes. Then you have to define 2 physical chips in your U-Boot configuration. > I have the following declarations in configuration file: > > #define CFG_FLASH_CFI /* The flash is CFI compatible */ > #define CFG_FLASH_CFI_DRIVER /* Use common CFI driver */ > > #define CFG_FLASH_BANKS_LIST {CFG_FLASH_BASE} > #define CFG_MAX_FLASH_BANKS 1 /* max number of memory banks */ This will not work. Take a look at the lwmon5 configuration. It has a similar Intel FLASH which has two chips inside: #define CFG_FLASH0 0xFC000000 #define CFG_FLASH1 0xF8000000 #define CFG_FLASH_BANKS_LIST { CFG_FLASH1, CFG_FLASH0 } #define CFG_MAX_FLASH_BANKS 2 ... You need to change the addresses for your 32MB version though. Hope this helps. Best regards, Stefan ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de =====================================================================