From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Chou Date: Tue, 3 Nov 2015 22:49:41 +0800 Subject: [U-Boot] [PATCH v4 1/3] dm: implement a MTD uclass In-Reply-To: References: <1444289667-23775-1-git-send-email-thomas@wytron.com.tw> <1446556146-9876-1-git-send-email-thomas@wytron.com.tw> Message-ID: <5638C985.9060308@wytron.com.tw> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Jagan, On 2015?11?03? 22:41, Jagan Teki wrote: > Hi Thomas, > > On 3 November 2015 at 18:39, Thomas Chou wrote: >> Implement a Memory Technology Device (MTD) uclass. It should >> include most flash drivers in the future. Though no uclass ops >> are defined yet, the MTD ops could be used. >> >> The NAND flash driver is based on MTD. The CFI flash and SPI >> flash support MTD, too. It should make sense to convert them >> to MTD uclass. > > Why does MTD require driver model? Should drivers like nand, cfi or > etc register mtd core should need to move on dm? The driver model combined with device tree control of u-boot offers dynamic binding of drivers and devices. It is expected that all drivers will be converted to driver model, including nand, cfi and spi flash. Best regards, Thomas