[U-Boot] [PATCH 1/6] sunxi: Add an option to disable MMC

Hans de Goede hdegoede at redhat.com
Fri Sep 18 17:04:31 CEST 2015


Hi,

On 09/18/2015 11:02 AM, 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 <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.

Yes that works for me.

Regards,

Hans


More information about the U-Boot mailing list