diff options
author | wdenk <wdenk> | 2003-09-05 23:19:14 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2003-09-05 23:19:14 +0000 |
commit | 7152b1d0b3f8beec8c297d64664e41b4c4ef610a (patch) | |
tree | 00df503a08239cd4d02840a738bc835d2ac6fc9e /cpu/mpc5xxx/cpu_init.c | |
parent | 4d816774f120e5f0278197eb9de32a6e318cce04 (diff) | |
download | u-boot-imx-7152b1d0b3f8beec8c297d64664e41b4c4ef610a.zip u-boot-imx-7152b1d0b3f8beec8c297d64664e41b4c4ef610a.tar.gz u-boot-imx-7152b1d0b3f8beec8c297d64664e41b4c4ef610a.tar.bz2 |
* Add support for SK98xx driver
* Add PCI support for SL8245 board
* Support IceCube board configurations with 1 x AMD AM29LV065 (8 MB)
or 1 x AM29LV652 (two LV065 in one chip = 16 MB);
Run IPB at 133 Mhz; adjust the MII clock frequency accordingly
* Set BRG_CLK on PM825/826 to 64MHz (VCO_OUT / 4, instead of 16 MHz)
to allow for more accurate baudrate settings
(error now 0.7% at 115 kbps, instead of 3.5% before)
* Patch by Andreas Mohr, 4 Sep 2003:
Fix a lot of spelling errors
Diffstat (limited to 'cpu/mpc5xxx/cpu_init.c')
-rw-r--r-- | cpu/mpc5xxx/cpu_init.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/cpu/mpc5xxx/cpu_init.c b/cpu/mpc5xxx/cpu_init.c index cec5c2b..a93a198 100644 --- a/cpu/mpc5xxx/cpu_init.c +++ b/cpu/mpc5xxx/cpu_init.c @@ -24,14 +24,6 @@ #include <common.h> #include <mpc5xxx.h> -#if defined(CONFIG_MGT5100) -#define START_REG(start) ((start) >> 15) -#define STOP_REG(start, size) (((start) + (size) - 1) >> 15) -#elif defined(CONFIG_MPC5200) -#define START_REG(start) ((start) >> 16) -#define STOP_REG(start, size) (((start) + (size) - 1) >> 16) -#endif - /* * Breath some life into the CPU... * @@ -159,6 +151,14 @@ void cpu_init_f (void) #if defined(CONFIG_MPC5200) /* enable timebase */ *(vu_long *)(MPC5XXX_XLBARB + 0x40) |= (1 << 13); + + /* Motorola reports IPB should better run at 133 MHz. */ + *(vu_long *)MPC5XXX_ADDECR |= 1; + /* pci_clk_sel = 0x02, ipb_clk_sel = 0x00; */ + addecr = *(vu_long *)MPC5XXX_CDM_CFG; + addecr &= ~0x103; + addecr |= 0x02; + *(vu_long *)MPC5XXX_CDM_CFG = addecr; #endif } |