summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTanya Jiang <tanya.jiang@freescale.com>2006-08-03 18:38:13 +0800
committerKim Phillips <kim.phillips@freescale.com>2006-11-03 19:42:18 -0600
commit2fc34ae66e73fa7841d1a006dc1b5dcbc1f78965 (patch)
tree465e3c647d78da4fe91682bf91311d5b8dac023d
parentf6eda7f80ccc13d658020268c507d7173cf2e8aa (diff)
downloadu-boot-2fc34ae66e73fa7841d1a006dc1b5dcbc1f78965.tar.gz
u-boot-2fc34ae66e73fa7841d1a006dc1b5dcbc1f78965.tar.bz2
u-boot-2fc34ae66e73fa7841d1a006dc1b5dcbc1f78965.zip
mpc83xx: Unified TQM834x variable names with 83xx and consolidated macros
Unified TQM834x variable names with 83xx and consolidated macro in preparation for the 8360 and other upcoming 83xx devices. Signed-off-by: Tanya Jiang <tanya.jiang@freescale.com>
-rw-r--r--board/tqm834x/pci.c12
-rw-r--r--include/configs/TQM834x.h12
2 files changed, 18 insertions, 6 deletions
diff --git a/board/tqm834x/pci.c b/board/tqm834x/pci.c
index 5a23e6c55e..d01277f808 100644
--- a/board/tqm834x/pci.c
+++ b/board/tqm834x/pci.c
@@ -69,17 +69,17 @@ void
pci_init_board(void)
{
volatile immap_t * immr;
- volatile clk8349_t * clk;
- volatile law8349_t * pci_law;
- volatile pot8349_t * pci_pot;
- volatile pcictrl8349_t * pci_ctrl;
- volatile pciconf8349_t * pci_conf;
+ volatile clk83xx_t * clk;
+ volatile law83xx_t * pci_law;
+ volatile pot83xx_t * pci_pot;
+ volatile pcictrl83xx_t * pci_ctrl;
+ volatile pciconf83xx_t * pci_conf;
u16 reg16;
u32 reg32;
struct pci_controller * hose;
immr = (immap_t *)CFG_IMMRBAR;
- clk = (clk8349_t *)&immr->clk;
+ clk = (clk83xx_t *)&immr->clk;
pci_law = immr->sysconf.pcilaw;
pci_pot = immr->ios.pot;
pci_ctrl = immr->pci_ctrl;
diff --git a/include/configs/TQM834x.h b/include/configs/TQM834x.h
index 4bbee97db5..b1f033d19f 100644
--- a/include/configs/TQM834x.h
+++ b/include/configs/TQM834x.h
@@ -36,6 +36,7 @@
*/
#define CONFIG_E300 1 /* E300 Family */
#define CONFIG_MPC83XX 1 /* MPC83XX family */
+#define CONFIG_MPC8349 1 /* MPC8349 specific */
#define CONFIG_MPC834X 1 /* MPC834X specific */
#define CONFIG_TQM834X 1 /* TQM834X board specific */
@@ -56,6 +57,17 @@
*/
#define CFG_LCRR (LCRR_DBYP | LCRR_CLKDIV_8)
+#define CFG_SCCR_INIT (SCCR_DEFAULT & (~SCCR_CLK_MASK))
+#define CFG_SCCR_TSEC1CM SCCR_TSEC1CM_1 /* TSEC1 clock setting */
+#define CFG_SCCR_TSEC2CM SCCR_TSEC2CM_1 /* TSEC2 clock setting */
+#define CFG_SCCR_ENCCM SCCR_ENCCM_3 /* ENC clock setting */
+#define CFG_SCCR_USBCM SCCR_USBCM_3 /* USB clock setting */
+#define CFG_SCCR_VAL ( CFG_SCCR_INIT \
+ | CFG_SCCR_TSEC1CM \
+ | CFG_SCCR_TSEC2CM \
+ | CFG_SCCR_ENCCM \
+ | CFG_SCCR_USBCM )
+
/* board pre init: do not call, nothing to do */
#undef CONFIG_BOARD_EARLY_INIT_F