[U-Boot] [PATCH 1/1] DaVinci: Fix DM365 & DM644X build error

Mohammed Afzal afzal at ti.com
Thu Jan 20 12:27:28 CET 2011


DM365 & DM644X builds 'davinci_emac_mii_mode_sel()',
which uses 'davinci_syscfg_regs' macro, and the
macro is valid iff CONFIG_SOC_DA8XX is defined.

Fix: Before compiling 'davinci_emac_mii_mode_sel()', make sure that
CONFIG_SOC_DA8XX is defined.

Signed-off-by: Mohammed Afzal <afzal at ti.com>
---
 board/davinci/common/misc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/board/davinci/common/misc.c b/board/davinci/common/misc.c
index 08c898f..c0a6c41 100644
--- a/board/davinci/common/misc.c
+++ b/board/davinci/common/misc.c
@@ -80,7 +80,7 @@ err:
 /*
  * Set the mii mode as MII or RMII
  */
-#if defined(CONFIG_DRIVER_TI_EMAC)
+#if defined(CONFIG_DRIVER_TI_EMAC) && defined(CONFIG_SOC_DA8XX)
 void davinci_emac_mii_mode_sel(int mode_sel)
 {
 	int val;
-- 
1.7.1



More information about the U-Boot mailing list