[U-Boot] [PATCH v2] dm: implement a cfi flash uclass

Thomas Chou thomas at wytron.com.tw
Mon Oct 12 02:07:23 CEST 2015


Hi Simon,

On 10/12/2015 05:47 AM, Simon Glass wrote:
> I don't see any problem with this in general, although the point with
> CFI is that you are really implementing the uclass, as there will not
> going to be any drivers (as I understand it).
>
> Looking at SPI flash, it does have an API (read, write, erase). Could
> CFI use the same API? That might mean that we could unify the two and
> share a uclass.
>
> One approach may be to use a name like UCLASS_FLASH, and add some
> operations to it. Then we can say that we have a real uclass. The
> operations could come in a separate flash perhaps.

Great. It has been my first choice to have a unified flash uclass.

Best regards,
Thomas


More information about the U-Boot mailing list