From: Angelo Dureghello <angelo@sysam.it>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] drivers: spi: migrate cf_spi to DM
Date: Fri, 20 Apr 2018 23:47:57 +0200 [thread overview]
Message-ID: <20180420214757.GB22023@jerusalem> (raw)
In-Reply-To: <CAD6G_RQ3NUJONy+DNLkkvmOf86K_ydPaYkFJVGLCh9Q1XdUttg@mail.gmail.com>
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@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
next prev parent reply other threads:[~2018-04-20 21:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-22 14:43 [U-Boot] [PATCH] drivers: spi: migrate cf_spi to DM Angelo Dureghello
2018-04-19 11:37 ` Jagan Teki
2018-04-20 21:47 ` Angelo Dureghello [this message]
2018-05-02 8:59 ` Jagan Teki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180420214757.GB22023@jerusalem \
--to=angelo@sysam.it \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox