[U-Boot] [PATCH] drivers: spi: migrate cf_spi to DM

Jagan Teki jagan at amarulasolutions.com
Wed May 2 08:59:03 UTC 2018


On Sat, Apr 21, 2018 at 3:17 AM, Angelo Dureghello <angelo at sysam.it> wrote:
> Hi Jagan,
>
> On Fri, Apr 20, 2018 at 09:37:29PM +0000, Jagan Teki wrote:
>> On Thu, Mar 22, 2018 at 8:13 PM, Angelo Dureghello <angelo at sysam.it> wrote:
>> > This patch adds DM support to cf_spi.c.
>> > To be able to build spi driver with DM support, a new config
>> > option has been introdiced (DM_NO_DT) since m68k architecture
>> > does not support fdt.
>>
>> This can be different case, how about using platdata in U-Boot?
>>
>
> I used also platdata, as you can see from
>
> +#include <dm/platform_data/spi_coldfire.h>
>
> But it is not enough: spi/spi-uclass.c in any case looks for
> fdt nodes entries, so i had to add that DM_NO_OF option,
> this to avoid all the of_xx calls as unresolved externals.

Ok, then create separate patches for DM_NO_OF and spi changes.


More information about the U-Boot mailing list