[U-Boot-Users] CFG_REMAP, CFG_PRELIM
Laudney Ren
bren at sjtu.edu.cn
Sat Jan 4 04:44:53 CET 2003
Hi, all:
I'm modifying FADS860T.h to suite my custom board.
I don't understand the following lines:
--------------------------------------------------------------------------
#define CFG_REMAP_OR_AM 0x80000000 /* OR addr mask */
#define CFG_PRELIM_OR_AM 0xFF800000 /* OR addr mask */
/* FLASH timing: ACS = 10, TRLX = 1, CSNT = 1, SCY = 3, EHTR = 0 */
#define CFG_OR_TIMING_FLASH (OR_CSNT_SAM | OR_ACS_DIV4 | OR_BI |
OR_SCY_3_CLK | OR_TRLX)
#define CFG_OR0_REMAP (CFG_REMAP_OR_AM | CFG_OR_TIMING_FLASH)
#ifdef USE_REAL_FLASH_VALUES
/*
* These values fit our FADS860T ...
* The "default" behaviour with 1Mbyte initial doesn't work for us!
*/
#define CFG_OR0_PRELIM 0x0FFC00D34 /* Real values for the board */
#define CFG_BR0_PRELIM 0x02800001 /* Real values for the board */
#else
#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH) /* 8
Mbyte until detected */
#define CFG_BR0_PRELIM ((CFG_FLASH_BASE & BR_BA_MSK) | BR_V )
#endif
/* BCSRx - Board Control and Status Registers */
#define CFG_OR1_REMAP CFG_OR0_REMAP
#define CFG_OR1_PRELIM 0xffff8110 /* 64Kbyte address space */
#define CFG_BR1_PRELIM ((BCSR_ADDR) | BR_V )
---------------------------------------------------------------------------
what do those CFG_REMAP, CFG_PRELIM mean? What are their use?
We have a 2M flash ROM in one single bank. We have 32M SDRAM. Nornally,
we use CS0 for flash, CS5 for SDRAM. We map flash at oxffe00000 to
0xffffffff, and SDRAM at 0x00000000 to 0x01ffffff
How should I set those CFGs accordingly?
GREAT THANKS in advance.
Laudney Ren
More information about the U-Boot
mailing list