From: Tom Rini Date: Mon, 4 Jun 2012 15:28:03 -0700 Subject: [U-Boot] [PATCH 1/7] da850/omap-l138: Add MMC support for DA850/OMAP-L138 In-Reply-To: <1338561049-23627-2-git-send-email-prabhakar.lad@ti.com> References: <1338561049-23627-1-git-send-email-prabhakar.lad@ti.com> <1338561049-23627-2-git-send-email-prabhakar.lad@ti.com> Message-ID: <20120604222803.GA19651@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 Fri, Jun 01, 2012 at 08:00:43PM +0530, Prabhakar Lad wrote: > From: Lad, Prabhakar > > 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