[U-Boot] [PATCH v2 0/8] rockchip: Split sdram common function into sdram_common.c
Kever Yang
kever.yang at rock-chips.com
Fri Jun 23 08:11:04 UTC 2017
Some function like the dram capability decode and dram_init() are
the same for all Rockchip SoCs, maybe alaso cap detect function later,
add sdram_common.c for all SoC driver.
This patch set not support rv1108, we disable the CONFIG_RAM for it now.
Changes in v2:
- add board_get_usable_ram_top()
- add evb-px5 and geekbox board
- use CONFIG_SYS_SDRAM_BASE for ram_base
- move the dram_init_banksize() from board file into soc file for we
have the same setting for different board in one SoC now.
Kever Yang (8):
rockchip: add sdram_common for common functions
rockchip: use common sdram function
rockchip: rk3328: add sdram driver in U-Boot
rockchip: rk3368: add sdram driver for U-Boot
rockchip: dts: rk3328: add dmc node
rockchip: dts: rk3368: add dmc node
rockchip: correct the bank0 ram size
rockchip: rv1108: disable CONFIG_RAM before we have driver
arch/arm/dts/rk3328.dtsi | 7 ++
arch/arm/dts/rk3368.dtsi | 7 ++
arch/arm/include/asm/arch-rockchip/ddr_rk3288.h | 48 ------------
arch/arm/include/asm/arch-rockchip/grf_rk3368.h | 4 +-
arch/arm/include/asm/arch-rockchip/sdram_common.h | 58 ++++++++++++++
arch/arm/mach-rockchip/Makefile | 3 +
arch/arm/mach-rockchip/rk3188-board.c | 22 ------
arch/arm/mach-rockchip/rk3188/sdram_rk3188.c | 62 +++------------
arch/arm/mach-rockchip/rk3288-board.c | 22 ------
arch/arm/mach-rockchip/rk3288/sdram_rk3288.c | 66 +++-------------
arch/arm/mach-rockchip/rk3328/Makefile | 1 +
arch/arm/mach-rockchip/rk3328/rk3328.c | 11 +++
arch/arm/mach-rockchip/rk3328/sdram_rk3328.c | 60 +++++++++++++++
arch/arm/mach-rockchip/rk3368/Makefile | 1 +
arch/arm/mach-rockchip/rk3368/rk3368.c | 11 +++
arch/arm/mach-rockchip/rk3368/sdram_rk3368.c | 60 +++++++++++++++
arch/arm/mach-rockchip/rk3399/rk3399.c | 11 +++
arch/arm/mach-rockchip/rk3399/sdram_rk3399.c | 94 +----------------------
arch/arm/mach-rockchip/sdram_common.c | 83 ++++++++++++++++++++
board/geekbuying/geekbox/geekbox.c | 14 ----
board/rockchip/evb_px5/evb-px5.c | 16 ----
board/rockchip/evb_rk3328/evb-rk3328.c | 15 ----
board/rockchip/evb_rk3399/evb-rk3399.c | 31 --------
board/rockchip/sheep_rk3368/sheep_rk3368.c | 15 ----
board/theobroma-systems/puma_rk3399/puma-rk3399.c | 31 --------
configs/evb-rv1108_defconfig | 1 -
include/configs/rk3188_common.h | 1 +
include/configs/rk3288_common.h | 1 +
include/configs/rk3328_common.h | 2 +-
include/configs/rk3368_common.h | 2 +
include/configs/rk3399_common.h | 1 +
31 files changed, 348 insertions(+), 413 deletions(-)
create mode 100644 arch/arm/include/asm/arch-rockchip/sdram_common.h
create mode 100644 arch/arm/mach-rockchip/rk3328/sdram_rk3328.c
create mode 100644 arch/arm/mach-rockchip/rk3368/sdram_rk3368.c
create mode 100644 arch/arm/mach-rockchip/sdram_common.c
--
1.9.1
More information about the U-Boot
mailing list