mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-26 14:40:41 +00:00
mx6sabresd: Add SPL support for the mx6dl variant
Add support for the mx6dlsabresd board in SPL. Retrieved the DCD table from: board/freescale/mx6sabresd/mx6dlsabresd.cfg (NXP U-Boot branch imx_v2015.04_4.1.15_1.0.0_ga) Flashed SPL and u-boot.img to an SD card and could successfully boot it on mx6q, mx6qp and mx6dl sabresd boards. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> Reviewed-by: Jagan Teki <jagan@openedev.com>
This commit is contained in:
parent
ff9f71b499
commit
b22841e582
1 changed files with 88 additions and 0 deletions
|
@ -946,6 +946,92 @@ static int mx6qp_dcd_table[] = {
|
|||
0x021b001c, 0x00000000,
|
||||
};
|
||||
|
||||
static int mx6dl_dcd_table[] = {
|
||||
0x020e0774, 0x000C0000,
|
||||
0x020e0754, 0x00000000,
|
||||
0x020e04ac, 0x00000030,
|
||||
0x020e04b0, 0x00000030,
|
||||
0x020e0464, 0x00000030,
|
||||
0x020e0490, 0x00000030,
|
||||
0x020e074c, 0x00000030,
|
||||
0x020e0494, 0x00000030,
|
||||
0x020e04a0, 0x00000000,
|
||||
0x020e04b4, 0x00000030,
|
||||
0x020e04b8, 0x00000030,
|
||||
0x020e076c, 0x00000030,
|
||||
0x020e0750, 0x00020000,
|
||||
0x020e04bc, 0x00000030,
|
||||
0x020e04c0, 0x00000030,
|
||||
0x020e04c4, 0x00000030,
|
||||
0x020e04c8, 0x00000030,
|
||||
0x020e04cc, 0x00000030,
|
||||
0x020e04d0, 0x00000030,
|
||||
0x020e04d4, 0x00000030,
|
||||
0x020e04d8, 0x00000030,
|
||||
0x020e0760, 0x00020000,
|
||||
0x020e0764, 0x00000030,
|
||||
0x020e0770, 0x00000030,
|
||||
0x020e0778, 0x00000030,
|
||||
0x020e077c, 0x00000030,
|
||||
0x020e0780, 0x00000030,
|
||||
0x020e0784, 0x00000030,
|
||||
0x020e078c, 0x00000030,
|
||||
0x020e0748, 0x00000030,
|
||||
0x020e0470, 0x00000030,
|
||||
0x020e0474, 0x00000030,
|
||||
0x020e0478, 0x00000030,
|
||||
0x020e047c, 0x00000030,
|
||||
0x020e0480, 0x00000030,
|
||||
0x020e0484, 0x00000030,
|
||||
0x020e0488, 0x00000030,
|
||||
0x020e048c, 0x00000030,
|
||||
0x021b0800, 0xa1390003,
|
||||
0x021b080c, 0x001F001F,
|
||||
0x021b0810, 0x001F001F,
|
||||
0x021b480c, 0x001F001F,
|
||||
0x021b4810, 0x001F001F,
|
||||
0x021b083c, 0x4220021F,
|
||||
0x021b0840, 0x0207017E,
|
||||
0x021b483c, 0x4201020C,
|
||||
0x021b4840, 0x01660172,
|
||||
0x021b0848, 0x4A4D4E4D,
|
||||
0x021b4848, 0x4A4F5049,
|
||||
0x021b0850, 0x3F3C3D31,
|
||||
0x021b4850, 0x3238372B,
|
||||
0x021b081c, 0x33333333,
|
||||
0x021b0820, 0x33333333,
|
||||
0x021b0824, 0x33333333,
|
||||
0x021b0828, 0x33333333,
|
||||
0x021b481c, 0x33333333,
|
||||
0x021b4820, 0x33333333,
|
||||
0x021b4824, 0x33333333,
|
||||
0x021b4828, 0x33333333,
|
||||
0x021b08b8, 0x00000800,
|
||||
0x021b48b8, 0x00000800,
|
||||
0x021b0004, 0x0002002D,
|
||||
0x021b0008, 0x00333030,
|
||||
0x021b000c, 0x3F435313,
|
||||
0x021b0010, 0xB66E8B63,
|
||||
0x021b0014, 0x01FF00DB,
|
||||
0x021b0018, 0x00001740,
|
||||
0x021b001c, 0x00008000,
|
||||
0x021b002c, 0x000026d2,
|
||||
0x021b0030, 0x00431023,
|
||||
0x021b0040, 0x00000027,
|
||||
0x021b0000, 0x831A0000,
|
||||
0x021b001c, 0x04008032,
|
||||
0x021b001c, 0x00008033,
|
||||
0x021b001c, 0x00048031,
|
||||
0x021b001c, 0x05208030,
|
||||
0x021b001c, 0x04008040,
|
||||
0x021b0020, 0x00005800,
|
||||
0x021b0818, 0x00011117,
|
||||
0x021b4818, 0x00011117,
|
||||
0x021b0004, 0x0002556D,
|
||||
0x021b0404, 0x00011006,
|
||||
0x021b001c, 0x00000000,
|
||||
};
|
||||
|
||||
static void ddr_init(int *table, int size)
|
||||
{
|
||||
int i;
|
||||
|
@ -960,6 +1046,8 @@ static void spl_dram_init(void)
|
|||
ddr_init(mx6q_dcd_table, ARRAY_SIZE(mx6q_dcd_table));
|
||||
else if (is_mx6dqp())
|
||||
ddr_init(mx6qp_dcd_table, ARRAY_SIZE(mx6qp_dcd_table));
|
||||
else if (is_mx6sdl())
|
||||
ddr_init(mx6dl_dcd_table, ARRAY_SIZE(mx6dl_dcd_table));
|
||||
}
|
||||
|
||||
void board_init_f(ulong dummy)
|
||||
|
|
Loading…
Reference in a new issue