[U-Boot] SPI driver convert to Driver Model

Simon Glass sjg at chromium.org
Thu Jan 22 23:35:36 CET 2015


(copying the list)

Hi,

On 19 January 2015 at 22:38, Haikun.Wang at freescale.com
<Haikun.Wang at freescale.com> wrote:
> Hi Simon,
>
>
>
> I am working for converting my SPI driver to driver model.
>
> I encountered some problems.
>
> My driver need to support many old platforms, such as m68k serials and there
> is no DTS file for them in kernel now.
>
> It seems that compiling couldn’t be completed successfully  with enable
> CONFIG_DM_SPI and disable CONFIG_OF_CONTROL
>
> because of some functions in file driver/spi/spi-uclass.c call DTS’s
> interfaces .
>
> So are you working for supporting SPI DM works correctly in some platforms
> without creating new DTS file for them such as m68k?
>
> Or can you give me some advice?

One suggestion is to add a simple device tree for the platform. If you
only need to support serial and SPI it might be quite simple.

Specifically what boards are you supporting?

Regards,
Simon


More information about the U-Boot mailing list