mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-08-25 06:36:41 -04:00
mx31: add ESD control registers
This allows to initialize DDR memory in C code. Currently all mx31 boards use assembler code (lowlevel_init.S) Signed-off-by: Helmut Raiger <helmut.raiger@hale.at> Acked-by: Stefano Babic <sbabic@denx.de>
This commit is contained in:
parent
d121d20195
commit
a6d9de436c
@ -522,6 +522,17 @@ struct mx31_weim {
|
|||||||
struct mx31_weim_cscr cscr[6];
|
struct mx31_weim_cscr cscr[6];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* ESD control registers */
|
||||||
|
struct esdc_regs {
|
||||||
|
u32 ctl0;
|
||||||
|
u32 cfg0;
|
||||||
|
u32 ctl1;
|
||||||
|
u32 cfg1;
|
||||||
|
u32 misc;
|
||||||
|
u32 dly[5];
|
||||||
|
u32 dlyl;
|
||||||
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define __REG(x) (*((volatile u32 *)(x)))
|
#define __REG(x) (*((volatile u32 *)(x)))
|
||||||
@ -600,6 +611,8 @@ struct mx31_weim {
|
|||||||
#define ESDCTL_BL(x) ((x) << 7)
|
#define ESDCTL_BL(x) ((x) << 7)
|
||||||
#define ESDCTL_PRCT(x) ((x) << 0)
|
#define ESDCTL_PRCT(x) ((x) << 0)
|
||||||
|
|
||||||
|
#define ESDCTL_BASE_ADDR 0xB8001000
|
||||||
|
|
||||||
/* 13 fields of the upper CS control register */
|
/* 13 fields of the upper CS control register */
|
||||||
#define CSCR_U(sp, wp, bcd, bcs, psz, pme, sync, dol, \
|
#define CSCR_U(sp, wp, bcd, bcs, psz, pme, sync, dol, \
|
||||||
cnc, wsc, ew, wws, edc) \
|
cnc, wsc, ew, wws, edc) \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user