From 7152b1d0b3f8beec8c297d64664e41b4c4ef610a Mon Sep 17 00:00:00 2001 From: wdenk Date: Fri, 5 Sep 2003 23:19:14 +0000 Subject: * 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 --- include/mpc5xxx.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/mpc5xxx.h') diff --git a/include/mpc5xxx.h b/include/mpc5xxx.h index 4218b050f..02683e382 100644 --- a/include/mpc5xxx.h +++ b/include/mpc5xxx.h @@ -40,6 +40,15 @@ /* Exception offsets (PowerPC standard) */ #define EXC_OFF_SYS_RESET 0x0100 +/* useful macros for manipulating CSx_START/STOP */ +#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 + /* Internal memory map */ #define MPC5XXX_CS0_START (CFG_MBAR + 0x0004) -- cgit v1.2.3