From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from imap.sh.mvista.com (unknown [63.81.120.155]) by ozlabs.org (Postfix) with ESMTP id C56ABDDF60 for ; Wed, 25 Apr 2007 23:34:07 +1000 (EST) Message-ID: <462F592F.7000409@ru.mvista.com> Date: Wed, 25 Apr 2007 17:35:43 +0400 From: Sergei Shtylyov MIME-Version: 1.0 To: Wolfgang Grandegger Subject: Re: Flat device tree definitions for FLASH and MTD partitioning References: <4618D400.8050003@grandegger.com> <4618DBEF.30307@ru.mvista.com> <4618DE4A.4020404@ru.mvista.com> <462F4FD1.6080900@grandegger.com> In-Reply-To: <462F4FD1.6080900@grandegger.com> Content-Type: text/plain; charset=us-ascii; format=flowed Cc: linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hello. Wolfgang Grandegger wrote: >>>> are there already some thought or even example code on how to define >>>> Flash memory and MTD partitions in the DTS. This would avoid the >>>> ackward MTD partitioning via static structure or boot line argument >>>> and could be done in a generic way. >>> See Documentation/powerpc/booting-without-of.txt and >>> drivers/mtd/physmap_of.c for what's been already done. >> I meant drivers/mtd/maps/physmap_of.c > I had a closer look to this driver. Unfortunately, it can not handle yet > multiple FLASH banks. This could be achieved with an additional > property "bank_count". What do you think? I'm not sure what banks you're talking about -- note that this driver is equivalen in functionality to the plain 'physmap' driver and there's inherited "bank-width" property that handles flash banking. > Wolfgang. MBR, Sergei