mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-09 20:18:54 -04:00
SPC1920: cleanup memory contoller setup
This commit is contained in:
parent
8fc2102faa
commit
67fea022fa
@ -148,8 +148,8 @@ int hpi_init(void)
|
|||||||
udelay(100);
|
udelay(100);
|
||||||
|
|
||||||
memctl->memc_mamr = CFG_MAMR;
|
memctl->memc_mamr = CFG_MAMR;
|
||||||
memctl->memc_or3 = CFG_OR3_PRELIM;
|
memctl->memc_or3 = CFG_OR3;
|
||||||
memctl->memc_br3 = CFG_BR3_PRELIM;
|
memctl->memc_br3 = CFG_BR3;
|
||||||
|
|
||||||
/* reset dsp */
|
/* reset dsp */
|
||||||
dsp_reset();
|
dsp_reset();
|
||||||
|
@ -175,14 +175,9 @@ long int initdram (int board_type)
|
|||||||
/* initalize the DSP Host Port Interface */
|
/* initalize the DSP Host Port Interface */
|
||||||
hpi_init();
|
hpi_init();
|
||||||
|
|
||||||
/* PLD Setup */
|
/* FRAM Setup */
|
||||||
memctl->memc_or4 = CFG_OR4_PRELIM;
|
memctl->memc_or4 = CFG_OR4;
|
||||||
memctl->memc_br4 = CFG_BR4_PRELIM;
|
memctl->memc_br4 = CFG_BR4;
|
||||||
udelay(1000);
|
|
||||||
|
|
||||||
/* PLD Setup */
|
|
||||||
memctl->memc_or5 = CFG_OR5_PRELIM;
|
|
||||||
memctl->memc_br5 = CFG_BR5_PRELIM;
|
|
||||||
udelay(1000);
|
udelay(1000);
|
||||||
|
|
||||||
return (size_b0);
|
return (size_b0);
|
||||||
|
@ -361,14 +361,14 @@
|
|||||||
* DSP Host Port Interface CS3
|
* DSP Host Port Interface CS3
|
||||||
*/
|
*/
|
||||||
#define CFG_SPC1920_HPI_BASE 0x90000000
|
#define CFG_SPC1920_HPI_BASE 0x90000000
|
||||||
#define CFG_PRELIM_OR3_AM 0xF0000000
|
#define CFG_PRELIM_OR3_AM 0xF8000000
|
||||||
|
|
||||||
#define CFG_OR3_PRELIM (CFG_PRELIM_OR3_AM | \
|
#define CFG_OR3 (CFG_PRELIM_OR3_AM | \
|
||||||
OR_G5LS | \
|
OR_G5LS | \
|
||||||
OR_SCY_0_CLK | \
|
OR_SCY_0_CLK | \
|
||||||
OR_BI)
|
OR_BI)
|
||||||
|
|
||||||
#define CFG_BR3_PRELIM ((CFG_SPC1920_HPI_BASE & BR_BA_MSK) | \
|
#define CFG_BR3 ((CFG_SPC1920_HPI_BASE & BR_BA_MSK) | \
|
||||||
BR_MS_UPMA | \
|
BR_MS_UPMA | \
|
||||||
BR_PS_16 | \
|
BR_PS_16 | \
|
||||||
BR_V);
|
BR_V);
|
||||||
@ -396,13 +396,13 @@
|
|||||||
*/
|
*/
|
||||||
#define CFG_SPC1920_FRAM_BASE 0x80100000
|
#define CFG_SPC1920_FRAM_BASE 0x80100000
|
||||||
#define CFG_PRELIM_OR4_AM 0xffff8000
|
#define CFG_PRELIM_OR4_AM 0xffff8000
|
||||||
#define CFG_OR4_PRELIM (CFG_PRELIM_OR4_AM | \
|
#define CFG_OR4 (CFG_PRELIM_OR4_AM | \
|
||||||
OR_ACS_DIV2 | \
|
OR_ACS_DIV2 | \
|
||||||
OR_BI | \
|
OR_BI | \
|
||||||
OR_SCY_4_CLK | \
|
OR_SCY_4_CLK | \
|
||||||
OR_TRLX)
|
OR_TRLX)
|
||||||
|
|
||||||
#define CFG_BR4_PRELIM ((CFG_SPC1920_FRAM_BASE & BR_BA_MSK) | BR_PS_8 | BR_V);
|
#define CFG_BR4 ((CFG_SPC1920_FRAM_BASE & BR_BA_MSK) | BR_PS_8 | BR_V);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* PLD CS5
|
* PLD CS5
|
||||||
|
Loading…
x
Reference in New Issue
Block a user