|
RTEMS 6.1-rc5
|
Loading...
Searching...
No Matches
34#ifndef __GEN83xx_HWREG_VALS_h
35#define __GEN83xx_HWREG_VALS_h
37#include <mpc83xx/mpc83xx.h>
40#ifdef MPC83XX_HAS_NAND_LP_FLASH_ON_CS0
41 #define MPC83XX_RCWHR_BOOT_DEVICE (RCWHR_ROMLOC_LB08 | RCWHR_RLEXT_NAND)
43 #define MPC83XX_RCWHR_BOOT_DEVICE (RCWHR_ROMLOC_LB16 | RCWHR_RLEXT_LGCY)
49#if defined(MPC83XX_BOARD_MPC8349EAMDS)
56#define GEN83xx_DUART_AVAIL_MASK 0x03
59#define NEED_LOW_LEVEL_INIT
63#define BSP_CLKIN_FRQ 66000000L
64#define RCFG_SYSPLL_MF 4
65#define RCFG_COREPLL_MF 4
70#define RESET_CONF_WRD_L (RCWLR_LBIUCM_1_1 | \
72 RCWLR_SPMF(RCFG_SYSPLL_MF) | \
73 RCWLR_COREPLL(RCFG_COREPLL_MF))
75#define RESET_CONF_WRD_H (RCWHR_PCI_HOST | \
81 RCWHR_BOOTSEQ_NONE | \
83 MPC83XX_RCWHR_BOOT_DEVICE | \
89#elif defined(MPC83XX_BOARD_HSC_CM01)
96#define GEN83xx_DUART_AVAIL_MASK 0x01
99#define NEED_LOW_LEVEL_INIT
103#define BSP_CLKIN_FRQ 30000000L
104#define RCFG_SYSPLL_MF 11
105#define RCFG_COREPLL_MF 4
109#define RESET_CONF_WRD_L (RCWLR_LBIUCM_1_1 | \
111 RCWLR_SPMF(RCFG_SYSPLL_MF) | \
112 RCWLR_COREPLL(RCFG_COREPLL_MF))
114#define RESET_CONF_WRD_H (RCWHR_PCI_HOST | \
116 RCWHR_PCI1ARB_DIS | \
117 RCWHR_PCI2ARB_DIS | \
120 RCWHR_BOOTSEQ_NONE | \
122 MPC83XX_RCWHR_BOOT_DEVICE | \
123 RCWHR_TSEC1M_RGMII | \
124 RCWHR_TSEC2M_GMII | \
129#elif defined(MPC83XX_BOARD_BR_UID)
136#define GEN83xx_DUART_AVAIL_MASK 0x01
139#define NEED_LOW_LEVEL_INIT
143#define BSP_CLKIN_FRQ 25000000L
144#define RCFG_SYSPLL_MF 5
145#define RCFG_COREPLL_MF 5
149#define RESET_CONF_WRD_L \
152 | RCWLR_SPMF(RCFG_SYSPLL_MF) \
153 | RCWLR_COREPLL(RCFG_COREPLL_MF) \
158#define RESET_CONF_WRD_H (RCWHR_PCI_HOST | \
160 RCWHR_PCI1ARB_DIS | \
163 RCWHR_BOOTSEQ_NONE | \
165 MPC83XX_RCWHR_BOOT_DEVICE | \
168#elif defined( HAS_UBOOT)
174#error "board type not defined"
178#if defined(MPC83XX_BOARD_MPC8349EAMDS)
191#define LBLAWBAR0_VAL 0xFE000000
192#define LBLAWAR0_VAL 0x80000016
193#define LBLAWBAR1_VAL 0xF8000000
194#define LBLAWAR1_VAL 0x8000000E
195#define LBLAWBAR2_VAL 0xF0000000
196#define LBLAWAR2_VAL 0x80000019
197#define DDRLAWBAR0_VAL 0x00000000
198#define DDRLAWAR0_VAL 0x8000001B
203#define BR0_VAL 0xFE001001
204#define OR0_VAL 0xFF806FF7
205#define BR1_VAL 0xF8000801
206#define OR1_VAL 0xFFFFE8F0
207#define BR2_VAL 0xF0001861
208#define OR2_VAL 0xFC006901
213#define MRPTR_VAL 0x20000000
214#define LSRT_VAL 0x32000000
215#define LSDMR_VAL 0x4062D733
216#define LCRR_VAL 0x80000004
222#define CS2_BNDS_VAL 0x00000007
223#define CS3_BNDS_VAL 0x0008000F
224#define CS2_CONFIG_VAL 0x80000101
225#define CS3_CONFIG_VAL 0x80000101
226#define TIMING_CFG_1_VAL 0x36333321
227#define TIMING_CFG_2_VAL 0x00000800
228#define DDR_SDRAM_CFG_VAL 0xC2000000
229#define DDR_SDRAM_MODE_VAL 0x00000022
230#define DDR_SDRAM_INTTVL_VAL 0x045B0100
231#define DDR_SDRAM_CLK_CNTL_VAL 0x00000000
233#elif defined(MPC83XX_BOARD_HSC_CM01)
243#define FPGA_CONFIG_START 0xF8000000
244#define FPGA_CONFIG_SIZE 0x01000000
246#define FPGA_REGISTER_START 0xF9000000
247#define FPGA_REGISTER_SIZE 0x00800000
249#define FPGA_FIFO_START 0xF9800000
250#define FPGA_FIFO_SIZE 0x00800000
252#define FPGA_START (FPGA_CONFIG_START)
254#define FPGA_SIZE (0x02000000)
255#define FPGA_END (FPGA_START+FPGA_SIZE-1)
262#define LBLAWBAR0_VAL bsp_rom_start
263#define LBLAWAR0_VAL 0x80000018
264#define LBLAWBAR1_VAL (FPGA_CONFIG_START)
265#define LBLAWAR1_VAL 0x80000018
266#define DDRLAWBAR0_VAL bsp_ram_start
267#define DDRLAWAR0_VAL 0x8000001B
272#define BR0_VAL (0xFE000000 | 0x01001)
273#define OR0_VAL 0xFE000E54
275#define BR2_VAL (FPGA_CONFIG_START | 0x01881)
276#define OR2_VAL 0xFFFF9100
279#define BR3_VAL (FPGA_REGISTER_START | 0x018A1)
280#define OR3_VAL 0xFF801100
283#define BR4_VAL (FPGA_FIFO_START | 0x018C1)
284#define OR4_VAL 0xFF801100
289#define MRPTR_VAL 0x20000000
290#define LSRT_VAL 0x32000000
291#define LSDMR_VAL 0x4062D733
292#define LCRR_VAL 0x80010004
298#define DDRCDR_VAL 0x00000001
299#define CS0_BNDS_VAL 0x0000000F
300#define CS0_CONFIG_VAL 0x80810102
301#define TIMING_CFG_0_VAL 0x00420802
302#define TIMING_CFG_1_VAL 0x3735A322
303#define TIMING_CFG_2_VAL 0x2F9044C7
304#define DDR_SDRAM_CFG_2_VAL 0x00401000
305#define DDR_SDRAM_MODE_VAL 0x44521632
306#define DDR_SDRAM_CLK_CNTL_VAL 0x01800000
307#define DDR_SDRAM_CFG_VAL 0x63000008
309#define DDR_ERR_DISABLE_VAL 0x0000008D
310#define DDR_ERR_DISABLE_VAL2 0x00000089
311#define DDR_SDRAM_DATA_INIT_VAL 0xC01DCAFE
312#define DDR_SDRAM_INIT_ADDR_VAL 0
313#define DDR_SDRAM_INTERVAL_VAL 0x05080000
315#elif defined(MPC83XX_BOARD_BR_UID)
329#define LBLAWBAR0_VAL bsp_rom_start
330#define LBLAWAR0_VAL 0x80000018
331#define DDRLAWBAR0_VAL bsp_ram_start
332#define DDRLAWAR0_VAL 0x8000001B
340#define LCRR_VAL 0x80010002
346#define DDRCDR_VAL 0x00000001
347#define CS0_BNDS_VAL 0x0000000F
348#define CS0_CONFIG_VAL 0x80014202
349#define TIMING_CFG_0_VAL 0x00220802
350#define TIMING_CFG_1_VAL 0x26259222
351#define TIMING_CFG_2_VAL 0x111048C7
352#define DDR_SDRAM_CFG_2_VAL 0x00401000
353#define DDR_SDRAM_MODE_VAL 0x200F1632
354#define DDR_SDRAM_MODE_2_VAL 0x40006000
355#define DDR_SDRAM_CLK_CNTL_VAL 0x01800000
356#define DDR_SDRAM_CFG_VAL 0x43100008
358#define DDR_ERR_DISABLE_VAL 0x0000008D
359#define DDR_ERR_DISABLE_VAL2 0x00000089
360#define DDR_SDRAM_DATA_INIT_VAL 0xC01DCAFE
361#define DDR_SDRAM_INIT_ADDR_VAL 0
362#define DDR_SDRAM_INTERVAL_VAL 0x01E8222E
364#elif defined( HAS_UBOOT)
370#error "board type not defined"
378#if MPC83XX_CHIP_TYPE != 8309
379 #define BSP_SYSPLL_CKID (((mpc83xx.clk.spmr>>(31-8))&0x01)+1)
382 #define BSP_SYSPLL_CKID 1
385#define BSP_SYSPLL_MF ((mpc83xx.clk.spmr>>(31-7))&0x0f)
387#define BSP_COREPLL_MF ((mpc83xx.clk.spmr>>(31-15))&0x7f)