summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javier@dowhile0.org>2012-12-27 01:35:56 +0000
committerTom Rini <trini@ti.com>2013-02-07 10:36:25 -0500
commit77eea280744c8adf040d5949c677d905a70d3cf3 (patch)
treea0507c86a87d1f9607545dc0860856f303d2d3eb /include
parent5bedf884a8508f1b2f5b8f74e67d987a81ff05ed (diff)
downloadu-boot-imx-77eea280744c8adf040d5949c677d905a70d3cf3.zip
u-boot-imx-77eea280744c8adf040d5949c677d905a70d3cf3.tar.gz
u-boot-imx-77eea280744c8adf040d5949c677d905a70d3cf3.tar.bz2
OMAP3: use a single board file for IGEP devices
Even when the IGEPv2 board and the IGEP Computer-on-Module are different from a form factor point of view, they are very similar in the fact that share many components and how they are wired. So, it is possible (and better) to have a single board file for both devices and just use the CONFIG_MACH_TYPE to make a differentiation between each board when needed. This change avoids code duplication by removing 298 lines of code and makes future maintenance easier. Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk> Acked-by: Igor Grinberg <grinberg@compulab.co.il>
Diffstat (limited to 'include')
-rw-r--r--include/configs/igep00x0.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/configs/igep00x0.h b/include/configs/igep00x0.h
index f8131b1..c590614 100644
--- a/include/configs/igep00x0.h
+++ b/include/configs/igep00x0.h
@@ -115,7 +115,9 @@
#ifdef CONFIG_BOOT_NAND
#define CONFIG_CMD_NAND
#endif
+#if (CONFIG_MACH_TYPE == MACH_TYPE_IGEP0020)
#define CONFIG_CMD_NET /* bootp, tftpboot, rarpboot */
+#endif
#define CONFIG_CMD_DHCP
#define CONFIG_CMD_PING
#define CONFIG_CMD_NFS /* NFS support */