rockchip: rk3188: Add sdram driver
authorHeiko Stübner <heiko@sntech.de>
Sat, 18 Feb 2017 18:46:37 +0000 (19:46 +0100)
committerSimon Glass <sjg@chromium.org>
Thu, 16 Mar 2017 22:03:45 +0000 (16:03 -0600)
commit3e747197b19c6a567408c57701eeb05e8694474b
tree900c551a45edf7461eef854b18cbf1d90a7e4351
parent0a2be69fbf5e78e0174033f9bb27926a70cca9de
rockchip: rk3188: Add sdram driver

The sdram controller blocks are very similar to the rk3288 in utilizing
memory scheduler, Designware uPCTL and Designware PUBL blocks, only
limited to one bank instead of two.

There are some minimal differences when setting up the ram, so it gets
a separate driver for the rk3188 but reuses the driver structs, as there
is no need to define the same again.

More optimization can happen when the modelling of the controller parts
in the dts actually follow the hardware layout hopefully at some point
in the future.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/include/asm/arch-rockchip/ddr_rk3188.h [new file with mode: 0644]
arch/arm/mach-rockchip/rk3188/Makefile
arch/arm/mach-rockchip/rk3188/sdram_rk3188.c [new file with mode: 0644]