From mboxrd@z Thu Jan 1 00:00:00 1970 From: Angelo Dureghello Date: Fri, 20 Apr 2018 23:47:57 +0200 Subject: [U-Boot] [PATCH] drivers: spi: migrate cf_spi to DM In-Reply-To: References: <20180322144341.GA10625@jerusalem> Message-ID: <20180420214757.GB22023@jerusalem> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 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 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