 |
RTEMS 5.2
|
21#ifndef __GEN83xx_HWREG_VALS_h
22#define __GEN83xx_HWREG_VALS_h
24#include <mpc83xx/mpc83xx.h>
27#ifdef MPC83XX_HAS_NAND_LP_FLASH_ON_CS0
28 #define MPC83XX_RCWHR_BOOT_DEVICE (RCWHR_ROMLOC_LB08 | RCWHR_RLEXT_NAND)
30 #define MPC83XX_RCWHR_BOOT_DEVICE (RCWHR_ROMLOC_LB16 | RCWHR_RLEXT_LGCY)
36#if defined(MPC83XX_BOARD_MPC8349EAMDS)
43#define GEN83xx_DUART_AVAIL_MASK 0x03
46#define NEED_LOW_LEVEL_INIT
50#define BSP_CLKIN_FRQ 66000000L
51#define RCFG_SYSPLL_MF 4
52#define RCFG_COREPLL_MF 4
57#define RESET_CONF_WRD_L (RCWLR_LBIUCM_1_1 | \
59 RCWLR_SPMF(RCFG_SYSPLL_MF) | \
60 RCWLR_COREPLL(RCFG_COREPLL_MF))
62#define RESET_CONF_WRD_H (RCWHR_PCI_HOST | \
68 RCWHR_BOOTSEQ_NONE | \
70 MPC83XX_RCWHR_BOOT_DEVICE | \
76#elif defined(MPC83XX_BOARD_HSC_CM01)
83#define GEN83xx_DUART_AVAIL_MASK 0x01
86#define NEED_LOW_LEVEL_INIT
90#define BSP_CLKIN_FRQ 30000000L
91#define RCFG_SYSPLL_MF 11
92#define RCFG_COREPLL_MF 4
96#define RESET_CONF_WRD_L (RCWLR_LBIUCM_1_1 | \
98 RCWLR_SPMF(RCFG_SYSPLL_MF) | \
99 RCWLR_COREPLL(RCFG_COREPLL_MF))
101#define RESET_CONF_WRD_H (RCWHR_PCI_HOST | \
103 RCWHR_PCI1ARB_DIS | \
104 RCWHR_PCI2ARB_DIS | \
107 RCWHR_BOOTSEQ_NONE | \
109 MPC83XX_RCWHR_BOOT_DEVICE | \
110 RCWHR_TSEC1M_RGMII | \
111 RCWHR_TSEC2M_GMII | \
116#elif defined(MPC83XX_BOARD_BR_UID)
123#define GEN83xx_DUART_AVAIL_MASK 0x01
126#define NEED_LOW_LEVEL_INIT
130#define BSP_CLKIN_FRQ 25000000L
131#define RCFG_SYSPLL_MF 5
132#define RCFG_COREPLL_MF 5
136#define RESET_CONF_WRD_L \
139 | RCWLR_SPMF(RCFG_SYSPLL_MF) \
140 | RCWLR_COREPLL(RCFG_COREPLL_MF) \
145#define RESET_CONF_WRD_H (RCWHR_PCI_HOST | \
147 RCWHR_PCI1ARB_DIS | \
150 RCWHR_BOOTSEQ_NONE | \
152 MPC83XX_RCWHR_BOOT_DEVICE | \
155#elif defined( HAS_UBOOT)
161#error "board type not defined"
165#if defined(MPC83XX_BOARD_MPC8349EAMDS)
178#define LBLAWBAR0_VAL 0xFE000000
179#define LBLAWAR0_VAL 0x80000016
180#define LBLAWBAR1_VAL 0xF8000000
181#define LBLAWAR1_VAL 0x8000000E
182#define LBLAWBAR2_VAL 0xF0000000
183#define LBLAWAR2_VAL 0x80000019
184#define DDRLAWBAR0_VAL 0x00000000
185#define DDRLAWAR0_VAL 0x8000001B
190#define BR0_VAL 0xFE001001
191#define OR0_VAL 0xFF806FF7
192#define BR1_VAL 0xF8000801
193#define OR1_VAL 0xFFFFE8F0
194#define BR2_VAL 0xF0001861
195#define OR2_VAL 0xFC006901
200#define MRPTR_VAL 0x20000000
201#define LSRT_VAL 0x32000000
202#define LSDMR_VAL 0x4062D733
203#define LCRR_VAL 0x80000004
209#define CS2_BNDS_VAL 0x00000007
210#define CS3_BNDS_VAL 0x0008000F
211#define CS2_CONFIG_VAL 0x80000101
212#define CS3_CONFIG_VAL 0x80000101
213#define TIMING_CFG_1_VAL 0x36333321
214#define TIMING_CFG_2_VAL 0x00000800
215#define DDR_SDRAM_CFG_VAL 0xC2000000
216#define DDR_SDRAM_MODE_VAL 0x00000022
217#define DDR_SDRAM_INTTVL_VAL 0x045B0100
218#define DDR_SDRAM_CLK_CNTL_VAL 0x00000000
220#elif defined(MPC83XX_BOARD_HSC_CM01)
230#define FPGA_CONFIG_START 0xF8000000
231#define FPGA_CONFIG_SIZE 0x01000000
233#define FPGA_REGISTER_START 0xF9000000
234#define FPGA_REGISTER_SIZE 0x00800000
236#define FPGA_FIFO_START 0xF9800000
237#define FPGA_FIFO_SIZE 0x00800000
239#define FPGA_START (FPGA_CONFIG_START)
241#define FPGA_SIZE (0x02000000)
242#define FPGA_END (FPGA_START+FPGA_SIZE-1)
249#define LBLAWBAR0_VAL bsp_rom_start
250#define LBLAWAR0_VAL 0x80000018
251#define LBLAWBAR1_VAL (FPGA_CONFIG_START)
252#define LBLAWAR1_VAL 0x80000018
253#define DDRLAWBAR0_VAL bsp_ram_start
254#define DDRLAWAR0_VAL 0x8000001B
259#define BR0_VAL (0xFE000000 | 0x01001)
260#define OR0_VAL 0xFE000E54
262#define BR2_VAL (FPGA_CONFIG_START | 0x01881)
263#define OR2_VAL 0xFFFF9100
266#define BR3_VAL (FPGA_REGISTER_START | 0x018A1)
267#define OR3_VAL 0xFF801100
270#define BR4_VAL (FPGA_FIFO_START | 0x018C1)
271#define OR4_VAL 0xFF801100
276#define MRPTR_VAL 0x20000000
277#define LSRT_VAL 0x32000000
278#define LSDMR_VAL 0x4062D733
279#define LCRR_VAL 0x80010004
285#define DDRCDR_VAL 0x00000001
286#define CS0_BNDS_VAL 0x0000000F
287#define CS0_CONFIG_VAL 0x80810102
288#define TIMING_CFG_0_VAL 0x00420802
289#define TIMING_CFG_1_VAL 0x3735A322
290#define TIMING_CFG_2_VAL 0x2F9044C7
291#define DDR_SDRAM_CFG_2_VAL 0x00401000
292#define DDR_SDRAM_MODE_VAL 0x44521632
293#define DDR_SDRAM_CLK_CNTL_VAL 0x01800000
294#define DDR_SDRAM_CFG_VAL 0x63000008
296#define DDR_ERR_DISABLE_VAL 0x0000008D
297#define DDR_ERR_DISABLE_VAL2 0x00000089
298#define DDR_SDRAM_DATA_INIT_VAL 0xC01DCAFE
299#define DDR_SDRAM_INIT_ADDR_VAL 0
300#define DDR_SDRAM_INTERVAL_VAL 0x05080000
302#elif defined(MPC83XX_BOARD_BR_UID)
316#define LBLAWBAR0_VAL bsp_rom_start
317#define LBLAWAR0_VAL 0x80000018
318#define DDRLAWBAR0_VAL bsp_ram_start
319#define DDRLAWAR0_VAL 0x8000001B
327#define LCRR_VAL 0x80010002
333#define DDRCDR_VAL 0x00000001
334#define CS0_BNDS_VAL 0x0000000F
335#define CS0_CONFIG_VAL 0x80014202
336#define TIMING_CFG_0_VAL 0x00220802
337#define TIMING_CFG_1_VAL 0x26259222
338#define TIMING_CFG_2_VAL 0x111048C7
339#define DDR_SDRAM_CFG_2_VAL 0x00401000
340#define DDR_SDRAM_MODE_VAL 0x200F1632
341#define DDR_SDRAM_MODE_2_VAL 0x40006000
342#define DDR_SDRAM_CLK_CNTL_VAL 0x01800000
343#define DDR_SDRAM_CFG_VAL 0x43100008
345#define DDR_ERR_DISABLE_VAL 0x0000008D
346#define DDR_ERR_DISABLE_VAL2 0x00000089
347#define DDR_SDRAM_DATA_INIT_VAL 0xC01DCAFE
348#define DDR_SDRAM_INIT_ADDR_VAL 0
349#define DDR_SDRAM_INTERVAL_VAL 0x01E8222E
351#elif defined( HAS_UBOOT)
357#error "board type not defined"
365#if MPC83XX_CHIP_TYPE != 8309
366 #define BSP_SYSPLL_CKID (((mpc83xx.clk.spmr>>(31-8))&0x01)+1)
369 #define BSP_SYSPLL_CKID 1
372#define BSP_SYSPLL_MF ((mpc83xx.clk.spmr>>(31-7))&0x0f)
374#define BSP_COREPLL_MF ((mpc83xx.clk.spmr>>(31-15))&0x7f)