From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Tue, 1 Dec 2015 19:42:43 +0100 Subject: [U-Boot] [PATCH 2/3] mmc: dwmmc: socfpga: Convert to DM In-Reply-To: <1448947491.2132.3.camel@altera.com> References: <1448912890-11522-1-git-send-email-marex@denx.de> <1448912890-11522-2-git-send-email-marex@denx.de> <1448947491.2132.3.camel@altera.com> Message-ID: <201512011942.43555.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tuesday, December 01, 2015 at 06:24:51 AM, Chin Liang See wrote: > Hi Marek, > > On Mon, 2015-11-30 at 20:48 +0100, Marek Vasut wrote: > > Convert the SoCFPGA shim for registering the DWMMC driver to DM. > > > > Signed-off-by: Marek Vasut > > Cc: Chin Liang See > > Cc: Dinh Nguyen > > Cc: Pantelis Antoniou > > Cc: Simon Glass > > Cc: Tom Rini > > --- > > > > drivers/mmc/socfpga_dw_mmc.c | 119 ++++++++++++++++++++------------- > > I cannot applied this successfully to u-boot-socfpga.git. I tried git > am and also patch -1. > > > ---------- > > > > 1 file changed, 56 insertions(+), 63 deletions(-) > > > > diff --git a/drivers/mmc/socfpga_dw_mmc.c > > b/drivers/mmc/socfpga_dw_mmc.c > > index 8076761..dd2b30a 100644 > > --- a/drivers/mmc/socfpga_dw_mmc.c > > +++ b/drivers/mmc/socfpga_dw_mmc.c > > @@ -5,20 +5,28 @@ > > > > */ > > > > #include > > > > -#include > > -#include > > -#include > > -#include > > -#include > > -#include > > > > #include > > > > +#include > > > > #include > > > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > + > > +DECLARE_GLOBAL_DATA_PTR; > > > > static const struct socfpga_clock_manager *clock_manager_base = > > > > (void *)SOCFPGA_CLKMGR_ADDRESS; > > > > static const struct socfpga_system_manager *system_manager_base = > > > > (void *)SOCFPGA_SYSMGR_ADDRESS; > > > > +struct socfpga_dwmmc_priv { > > + struct dwmci_host host; > > +}; > > + > > There is a new structure added when we add the dts support for drvsel > and smplsel. It's not reflected here. I see now. Fixed and applied all three. This leaves USB the only dangling thing which is not probed from OF. That's next on my list.