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

Angelo Dureghello angelo at sysam.it
Fri Apr 20 21:47:57 UTC 2018


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.

Every suggestion is welcome.
 
> Jagan.
> 

Regards,
Angelo
> --
> Jagan Teki
> Free Software Engineer | www.openedev.com
> U-Boot, Linux | Upstream Maintainer
> Hyderabad, India.
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> https://lists.denx.de/listinfo/u-boot


More information about the U-Boot mailing list