[U-Boot] [PATCH 1/7] da850/omap-l138: Add MMC support for DA850/OMAP-L138

Tom Rini trini at ti.com
Tue Jun 5 00:28:03 CEST 2012


On Fri, Jun 01, 2012 at 08:00:43PM +0530, Prabhakar Lad wrote:

> From: Lad, Prabhakar <prabhakar.lad at ti.com>
> 
> This patch adds support for MMC/SD on DA850/OMAP-L138.
[snip]
> +/* SD/MMC */
> +#define CONFIG_MMC
> +#define CONFIG_DAVINCI_MMC_SD1
> +#define CONFIG_MMC_MBLOCK

CONFIG_MMC_MBLOCK isn't used anywhere in code, remove it please.

> +#define CONFIG_GENERIC_MMC
> +#define CONFIG_DAVINCI_MMC
> +
> +#ifdef CONFIG_MMC
> +#define CONFIG_DOS_PARTITION
> +#define CONFIG_CMD_EXT2
> +#define CONFIG_CMD_FAT
> +#define CONFIG_CMD_MMC
> +#endif

I'm not a fan of #define FOO, then checking right away for #ifdef FOO.
Just add a comment about these only been needed when you have MMC
support so it's clear to folks working from this as a template for their
custom board they can remove it.

-- 
Tom


More information about the U-Boot mailing list