diff options
author | Jinkun Hong <jinkun.hong@rock-chips.com> | 2014-08-28 09:37:22 -0700 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2015-03-24 15:25:23 +0100 |
commit | c33ce3554ddc73635084e6e71b5e4f7dae021926 (patch) | |
tree | c727bcdeb697d2dde1ba983a1af08a07083c4b2f /src/soc/rockchip/rk3288/grf.h | |
parent | d5fb66e060954f8505cfceed371aace9c8285fe7 (diff) |
rk3288: add ddr driver
Supports DDR3 and LPDDR3.Supports dual channel.ddr max freq is 533mhz.
ddr timing config file in src\mainboard\google\veyron\sdram_inf
Remove dpll init in rk clk_init(), add rkclk_configure_ddr(unsigned int hz).
BUG=chrome-os-partner:29778
TEST=Build coreboot
Change-Id: I429eb0b8c365c6285fb6cfef008b41776cc9c2d9
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 52838c68fe6963285c974af5dc5837e819efc321
Original-Change-Id: I6ddfe30b8585002b45060fe998c9238cbb611c05
Original-Signed-off-by: jinkun.hong <jinkun.hong@rock-chips.com>
Original-Reviewed-on: https://chromium-review.googlesource.com/209465
Original-Reviewed-by: Julius Werner <jwerner@chromium.org>
Original-Commit-Queue: Julius Werner <jwerner@chromium.org>
Reviewed-on: http://review.coreboot.org/8865
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/soc/rockchip/rk3288/grf.h')
-rwxr-xr-x | src/soc/rockchip/rk3288/grf.h | 40 |
1 files changed, 38 insertions, 2 deletions
diff --git a/src/soc/rockchip/rk3288/grf.h b/src/soc/rockchip/rk3288/grf.h index 547a4c7ee9..b035bb9dd3 100755 --- a/src/soc/rockchip/rk3288/grf.h +++ b/src/soc/rockchip/rk3288/grf.h @@ -25,9 +25,10 @@ #include "cpu.h" struct rk3288_grf_gpio_lh { - u32 gpiol; - u32 gpioh; + u32 l; + u32 h; }; +check_member(rk3288_grf_gpio_lh, h, 0x4); struct rk3288_grf_regs { u32 reserved[3]; @@ -155,6 +156,41 @@ struct rk3288_grf_regs { }; check_member(rk3288_grf_regs, soc_con16, 0x3a8); +struct rk3288_sgrf_regs { + u32 soc_con0; + u32 soc_con1; + u32 soc_con2; + u32 soc_con3; + u32 soc_con4; + u32 soc_con5; + u32 reserved1[(0x20-0x18)/4]; + u32 busdmac_con[2]; + u32 reserved2[(0x40-0x28)/4]; + u32 cpu_con[3]; + u32 reserved3[(0x50-0x4c)/4]; + u32 soc_con6; + u32 soc_con7; + u32 soc_con8; + u32 soc_con9; + u32 soc_con10; + u32 soc_con11; + u32 soc_con12; + u32 soc_con13; + u32 soc_con14; + u32 soc_con15; + u32 soc_con16; + u32 soc_con17; + u32 soc_con18; + u32 soc_con19; + u32 soc_con20; + u32 soc_con21; + u32 reserved4[(0x100-0x90)/4]; + u32 soc_status[2]; + u32 reserved5[(0x120-0x108)/4]; + u32 fast_boot_addr; +}; +check_member(rk3288_sgrf_regs, fast_boot_addr, 0x0120); + static struct rk3288_grf_regs * const rk3288_grf = (void *)GRF_BASE; static struct rk3288_sgrf_regs * const rk3288_sgrf = (void *)GRF_SECURE_BASE; |