summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim Phillips <kim.phillips@freescale.com>2007-04-25 12:34:38 -0500
committerKim Phillips <kim.phillips@freescale.com>2007-04-25 12:34:38 -0500
commit5c5d3242935cf3543af01142627494434834cf98 (patch)
tree8c146a5d337b9a6c9c12ec0ca18f434210cf655b
parent96b8a05432f346f36493535c85320b70ec9c7c1b (diff)
downloadu-boot-imx-5c5d3242935cf3543af01142627494434834cf98.zip
u-boot-imx-5c5d3242935cf3543af01142627494434834cf98.tar.gz
u-boot-imx-5c5d3242935cf3543af01142627494434834cf98.tar.bz2
mpc83xx: minor fixups for 8313rdb introduction
-rwxr-xr-xMAKEALL4
-rw-r--r--Makefile26
-rw-r--r--cpu/mpc83xx/pci.c1
-rw-r--r--include/configs/MPC8313ERDB.h4
4 files changed, 18 insertions, 17 deletions
diff --git a/MAKEALL b/MAKEALL
index 0f0ec29..a6b93b3 100755
--- a/MAKEALL
+++ b/MAKEALL
@@ -132,8 +132,8 @@ LIST_8260=" \
#########################################################################
LIST_83xx=" \
- MPC832XEMDS MPC8349EMDS MPC8349ITX MPC8349ITXGP \
- MPC8360EMDS sbc8349 TQM834x \
+ MPC8313ERDB MPC832XEMDS MPC8349EMDS MPC8349ITX
+ MPC8349ITXGP MPC8360EMDS sbc8349 TQM834x
"
diff --git a/Makefile b/Makefile
index 0b0c0d0..f7fde1e 100644
--- a/Makefile
+++ b/Makefile
@@ -1624,6 +1624,19 @@ r5200_config : unconfig
## MPC83xx Systems
#########################################################################
+MPC8313ERDB_33_config \
+MPC8313ERDB_66_config: unconfig
+ @echo "" >include/config.h ; \
+ if [ "$(findstring _33_,$@)" ] ; then \
+ echo -n "...33M ..." ; \
+ echo "#define CFG_33MHZ" >>include/config.h ; \
+ fi ; \
+ if [ "$(findstring _66_,$@)" ] ; then \
+ echo -n "...66M..." ; \
+ echo "#define CFG_66MHZ" >>include/config.h ; \
+ fi ;
+ @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb
+
MPC832XEMDS_config \
MPC832XEMDS_HOST_33_config \
MPC832XEMDS_HOST_66_config \
@@ -1689,19 +1702,6 @@ MPC8360EMDS_SLAVE_config: unconfig
fi ;
@$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds
-MPC8313ERDB_33_config \
-MPC8313ERDB_66_config: unconfig
- @echo "" >include/config.h ; \
- if [ "$(findstring _33_,$@)" ] ; then \
- echo -n "...33M ..." ; \
- echo "#define CFG_33MHZ" >>include/config.h ; \
- fi ; \
- if [ "$(findstring _66_,$@)" ] ; then \
- echo -n "...66M..." ; \
- echo "#define CFG_66MHZ" >>include/config.h ; \
- fi ;
- @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb
-
sbc8349_config: unconfig
@$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
diff --git a/cpu/mpc83xx/pci.c b/cpu/mpc83xx/pci.c
index 2a2b0bd..785d612 100644
--- a/cpu/mpc83xx/pci.c
+++ b/cpu/mpc83xx/pci.c
@@ -25,6 +25,7 @@
#include <common.h>
#include <pci.h>
+#include <ft_build.h>
#include <asm/mpc8349_pci.h>
#ifdef CONFIG_83XX_GENERIC_PCI
diff --git a/include/configs/MPC8313ERDB.h b/include/configs/MPC8313ERDB.h
index 2519c6b..11858bf 100644
--- a/include/configs/MPC8313ERDB.h
+++ b/include/configs/MPC8313ERDB.h
@@ -47,9 +47,9 @@
#define CONFIG_83XX_GENERIC_PCI
#ifdef CFG_66MHZ
-#define CONFIG_83XX_CLKIN 66000000 /* in Hz */
+#define CONFIG_83XX_CLKIN 66666667 /* in Hz */
#elif defined(CFG_33MHZ)
-#define CONFIG_83XX_CLKIN 33000000 /* in Hz */
+#define CONFIG_83XX_CLKIN 33333333 /* in Hz */
#else
#error Unknown oscillator frequency.
#endif