[U-Boot] [PATCH 1/6] sunxi: Add an option to disable MMC
Tom Rini
trini at konsulko.com
Fri Sep 18 17:02:27 CEST 2015
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 <maxime.ripard at free-electrons.com>
> ---
> 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.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150918/7f1dc91e/attachment.sig>
More information about the U-Boot
mailing list