From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Tue, 12 May 2009 13:37:36 +0200 Subject: [U-Boot] [PATCH] cmd_mtdparts: Move to common handling of FLASH devices via MTD layer In-Reply-To: <20090511180054.35EBB832E416@gemini.denx.de> References: <1242051226-7933-1-git-send-email-sr@denx.de> <20090511180054.35EBB832E416@gemini.denx.de> Message-ID: <200905121337.36409.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 Hi Wolfgang, On Monday 11 May 2009 20:00:54 Wolfgang Denk wrote: > > This patch removes all references to the direct CFI FLASH interface > > (via flash_info[]). Now that all FLASH types currently handled in > > mtdparts are available (if selected, see below) via the MTD > > infrastructure. This is NOR, NAND and OneNAND right now. This can be > > achieved by defining the following options: > > What is the code size impact for each of these boards? Here a few examples: Boards with NAND: omap3_beagle: ~5k increase Boards with NOR : TQM5200: ~7k increase I have to admit that this is more than I expected. After thinking a bit more it came to my mind that I don't need to add mtdcore.o and mtdpart.o for those boards. mtdcore is sufficient and mtdpart is only needed for UBI support right now. So I only enabled mtdcore creation for those boards and here are the new results: omap3_beagle: ~800 bytes increase TQM5200: ~2k increase This looks much better. I'll wrap up another patch with this new structuring shortly and perhaps I'll create a branch in my u-boot-cfi-flash repository for all those MTD infrastructure changes so that users and board maintainers can easier test those changes. Thanks. 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 =====================================================================