CFG_REMAP, CFG_PRELIM
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
Quoted 2 lines · In message <[email protected]> you wrote:
I'm modifying
FADS860T.hto suite my custom board.
I strongly recommend NOT to use the FADS as a model - not the hardware, and not the U-Boot code for it. Better use one of the actively maintained boards as reference.
Quoted 5 lines
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 */
...
Quoted 1 line
what do those
CFG_REMAP,CFG_PRELIMmean? What are their use?
See the README.
Best regards,
Wolfgang Denk
Signature · 4 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de In 1750 Issac Newton became discouraged when he fell up a flight of stairs.