From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Thu, 22 Feb 2018 10:47:23 -0500 Subject: [U-Boot] [PATCH v1 3/4] mmc: omap_hsmmc: compile out ADMA support for am33xx and omap34xx In-Reply-To: <1519295148-6817-4-git-send-email-jjhiblot@ti.com> References: <1519295148-6817-1-git-send-email-jjhiblot@ti.com> <1519295148-6817-4-git-send-email-jjhiblot@ti.com> Message-ID: <20180222154723.GU4311@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Feb 22, 2018 at 11:25:47AM +0100, Jean-Jacques Hiblot wrote: > This reduces the size of the binary by about 600 bytes. > > Signed-off-by: Jean-Jacques Hiblot > --- > > drivers/mmc/omap_hsmmc.c | 16 ++++++++++------ > 1 file changed, 10 insertions(+), 6 deletions(-) > > diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c > index 8b57edc..31c1f66 100644 > --- a/drivers/mmc/omap_hsmmc.c > +++ b/drivers/mmc/omap_hsmmc.c > @@ -48,6 +48,10 @@ > #include > #include > > +#if !defined(CONFIG_AM33XX) && !defined(CONFIG_OMAP34XX) > +#define ADMA_SUPPORT > +#endif > + > DECLARE_GLOBAL_DATA_PTR; > > /* simplify defines to OMAP_HSMMC_USE_GPIO */ > @@ -93,7 +97,7 @@ struct omap_hsmmc_data { > enum bus_mode mode; > #endif > u8 controller_flags; > -#ifndef CONFIG_OMAP34XX > +#ifdef ADMA_SUPPORT How about we add CONFIG_MMC_OMAP_HS_ADMA, and select it on !AM33XX && !OMAP34XX, and then test that here? Thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: