From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Ripard Date: Tue, 22 Sep 2015 11:15:17 +0200 Subject: [U-Boot] [PATCH 1/6] sunxi: Add an option to disable MMC In-Reply-To: <20150918150227.GI26226@bill-the-cat> References: <1442577980-26373-1-git-send-email-maxime.ripard@free-electrons.com> <1442577980-26373-2-git-send-email-maxime.ripard@free-electrons.com> <20150918150227.GI26226@bill-the-cat> Message-ID: <20150922091517.GS4684@lukather> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Sep 18, 2015 at 11:02:27AM -0400, Tom Rini wrote: > On Fri, Sep 18, 2015 at 02:06:15PM +0200, Maxime Ripard wrote: > > > Some devices don't have any MMC devices, so it doesn't really make sense to > > enable the MMC related functions and options for them. > > > > Add an option to disable the MMC support entirely. > > > > Signed-off-by: Maxime Ripard > > --- > > arch/arm/cpu/armv7/sunxi/board.c | 6 ++++++ > > include/configs/sunxi-common.h | 7 +++++-- > > 2 files changed, 11 insertions(+), 2 deletions(-) > > > > diff --git a/arch/arm/cpu/armv7/sunxi/board.c b/arch/arm/cpu/armv7/sunxi/board.c > > index b40198b36ee5..e6721feb4a4c 100644 > > --- a/arch/arm/cpu/armv7/sunxi/board.c > > +++ b/arch/arm/cpu/armv7/sunxi/board.c > > @@ -135,7 +135,9 @@ DECLARE_GLOBAL_DATA_PTR; > > */ > > u32 spl_boot_device(void) > > { > > +#ifdef CONFIG_MMC > > struct mmc *mmc0, *mmc1; > > +#endif > > /* > > * When booting from the SD card or NAND memory, the "eGON.BT0" > > * signature is expected to be found in memory at the address 0x0004 > > Just __maybe_unused here, if that's fine with Hans. Ack. Thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: