summaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorJohn Rigby <jrigby@freescale.com>2008-08-05 17:38:57 -0600
committerJohn Rigby <jrigby@freescale.com>2008-08-05 19:58:21 -0600
commitef11df6b66ecf5797e94ba322254b8fb7a4e2e12 (patch)
treed9d8c39300dfbe039be15a95166ca80129a30e6d /include/configs
parent81091f58f0c58ecd26c5b05de2ae20ca6cdb521c (diff)
downloadu-boot-imx-ef11df6b66ecf5797e94ba322254b8fb7a4e2e12.zip
u-boot-imx-ef11df6b66ecf5797e94ba322254b8fb7a4e2e12.tar.gz
u-boot-imx-ef11df6b66ecf5797e94ba322254b8fb7a4e2e12.tar.bz2
mpc5121: squash some fdt fixup errors
On ADS5121 when booting linux the following errors are seen: Unable to update property /soc5121@80000000:bus-frequency, err=FDT_ERR_NOTFOUND Unable to update property /soc5121@80000000/ethernet@2800:local-mac-address, err=FDT_ERR_NOTFOUND Unable to update property /soc5121@80000000/ethernet@2800:address, err=FDT_ERR_NOTFOUND This is caused by ft_cpu_setup trying to deal with both old and new soc node naming. This patch fixes this by being smarter about what to fixup. Also do soc node fixups by compatible instead of by path. A new board config called OF_SOC_COMPAT defined to be "fsl,mpc5121-immr" replaces the old OF_SOC node path that was defined to be "soc@80000000". Old device trees still work, but the compatiblity is conditional on CONFIG_OF_SUPPORT_OLD_DEVICE_TREES which is on by default in include/configs/ads5121.h. Signed-off-by: John Rigby <jrigby@freescale.com>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/ads5121.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/configs/ads5121.h b/include/configs/ads5121.h
index f104e68..091da80 100644
--- a/include/configs/ads5121.h
+++ b/include/configs/ads5121.h
@@ -308,6 +308,7 @@
#define CONFIG_PHY_ADDR 0x1
#define CONFIG_MII 1 /* MII PHY management */
#define CONFIG_FEC_AN_TIMEOUT 1
+#define CONFIG_HAS_ETH0
/*
* Configure on-board RTC
@@ -478,10 +479,10 @@
#define CONFIG_OF_LIBFDT 1
#define CONFIG_OF_BOARD_SETUP 1
+#define CONFIG_OF_SUPPORT_OLD_DEVICE_TREES 1
#define OF_CPU "PowerPC,5121@0"
-#define OF_SOC "soc@80000000"
-#define OF_SOC_OLD "soc5121@80000000"
+#define OF_SOC_COMPAT "fsl,mpc5121-immr"
#define OF_TBCLK (bd->bi_busfreq / 4)
#define OF_STDOUT_PATH "/soc@80000000/serial@11300"