[U-Boot] [PATCH v5 2/3] cfi_flash: convert to driver model

Thomas Chou thomas at wytron.com.tw
Sun Dec 6 14:35:49 CET 2015


Hi Jagan,

On 2015年12月06日 21:10, Jagan Teki wrote:
>> This probing is not specific to CFI flash. It will probe all flash variants
>> of MTD uclass.
>
> This is something I'm unclear, suppose if I need to use MTD uclass in
> spi-flash drivers shall I enable CONFIG_CFI_FLASH? If so that depends
> on CONFIG_CFI_FLASH_DRIVER as well right? then it is not correct to
> enable CFI_FLASH_DRIVER for other flash variants like spi-flash right?

There is no need to select CFI_FLASH if there is no CFI flash. The 
probing here is only because we want to display the size of parallel 
flash in initr_flash() of board_r.c.

Normally, devices are probed when they are used. You should be able to 
use "sf probe" for MTD uclass in the same way you do for SPI_FLASH uclass.

Best regards,
Thomas


More information about the U-Boot mailing list