From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Chou Date: Sun, 11 Oct 2015 16:54:38 +0800 Subject: [U-Boot] [PATCH v2] dm: implement a cfi flash uclass In-Reply-To: References: <1444289667-23775-1-git-send-email-thomas@wytron.com.tw> <1444548628-10119-1-git-send-email-thomas@wytron.com.tw> Message-ID: <561A23CE.6090900@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 Bin, On 10/11/2015 03:54 PM, Bin Meng wrote: > By looking at the implementation, is it really necessary to add a new > uclass for cfi-flash, given we only need get the flash base address? > There are no cfi-flash specific ops defined. > Why not just read its base address from device tree? Yes, there is not flash ops involved at the moment. I have tried to minimize the change to existing cfi_flash driver, and got it just works when I am converting all nios2 related devices to driver model and device tree control. Yet it is just the beginning to convert cfi flash to driver model. It will include per device flash_info and flash related operations in the full extent. Best regards, Thomas