public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/9] rockchip: ram: add common code for sdram driver
@ 2019-10-22  8:04 Kever Yang
  2019-10-22  8:04 ` [U-Boot] [PATCH 1/9] ram: rockchip: rename sdram driver files Kever Yang
                   ` (9 more replies)
  0 siblings, 10 replies; 14+ messages in thread
From: Kever Yang @ 2019-10-22  8:04 UTC (permalink / raw)
  To: u-boot


The sdram drivers for Rockchip SoCs was all separate, some of the SoCs
has similar hardware controller and phy, so we have a change to share
the flow and some of the functions between different SoCs.
This patch set implement a first version common code based on PX30,
other SoCs has similar hardware can migrate to this common code, eg.
rk3328 and rk3399 can use this common code.

This patch set also fix some bug for rk3399 by sync code from latest
rockchip vendor code.



Kever Yang (3):
  ram: rockchip: update lpddr4 timing for rk3399
  ram: rk3399: Sync the io setting from Rockchip vendor code
  ram: rk3399: update calculate_stride

YouMin Chen (6):
  ram: rockchip: rename sdram driver files
  ram: rockchip: add common sdram driver
  ram: px30: add sdram driver
  ram: rk3328: use common sdram driver
  ram: rk3399: use common sdram driver
  ram: rk3399: Sync code from rockchip vendor code

 arch/arm/dts/rk3328-sdram-ddr3-666.dtsi       |    4 +
 arch/arm/dts/rk3328-sdram-lpddr3-1600.dtsi    |    4 +
 arch/arm/dts/rk3328-sdram-lpddr3-666.dtsi     |    4 +
 arch/arm/dts/rk3399-sdram-ddr3-1333.dtsi      |    4 +
 arch/arm/dts/rk3399-sdram-ddr3-1600.dtsi      |    4 +
 arch/arm/dts/rk3399-sdram-ddr3-1866.dtsi      |    4 +
 .../arm/dts/rk3399-sdram-lpddr3-2GB-1600.dtsi |    4 +
 .../arm/dts/rk3399-sdram-lpddr3-4GB-1600.dtsi |    4 +
 .../rk3399-sdram-lpddr3-samsung-4GB-1866.dtsi |    4 +
 arch/arm/dts/rk3399-sdram-lpddr4-100.dtsi     |    4 +
 arch/arm/include/asm/arch-rockchip/sdram.h    |  167 +--
 .../include/asm/arch-rockchip/sdram_common.h  |  133 +-
 .../include/asm/arch-rockchip/sdram_msch.h    |   85 ++
 .../asm/arch-rockchip/sdram_pctl_px30.h       |  139 ++
 .../asm/arch-rockchip/sdram_phy_px30.h        |   62 +
 .../arch-rockchip/sdram_phy_ron_rtt_px30.h    |   59 +
 .../include/asm/arch-rockchip/sdram_px30.h    |  212 +++
 .../include/asm/arch-rockchip/sdram_rk3288.h  |  102 ++
 .../include/asm/arch-rockchip/sdram_rk3328.h  |  420 ++----
 .../include/asm/arch-rockchip/sdram_rk3399.h  |   98 +-
 arch/arm/mach-rockchip/Kconfig                |    2 +
 arch/arm/mach-rockchip/Makefile               |    2 +-
 arch/arm/mach-rockchip/rk3036/rk3036.c        |    2 +-
 arch/arm/mach-rockchip/rk3288/rk3288.c        |    2 +-
 .../mach-rockchip/{sdram_common.c => sdram.c} |    2 +-
 configs/evb-rk3328_defconfig                  |    2 +-
 configs/rock64-rk3328_defconfig               |    2 +-
 drivers/ram/rockchip/Kconfig                  |   23 +-
 drivers/ram/rockchip/Makefile                 |    7 +-
 drivers/ram/rockchip/dmc-rk3368.c             |    2 +-
 .../rockchip/sdram-px30-ddr3-detect-333.inc   |   72 +
 .../rockchip/sdram-px30-ddr4-detect-333.inc   |   75 +
 drivers/ram/rockchip/sdram-px30-ddr_skew.inc  |  121 ++
 .../rockchip/sdram-px30-lpddr2-detect-333.inc |   73 +
 .../rockchip/sdram-px30-lpddr3-detect-333.inc |   74 +
 .../ram/rockchip/sdram-rk3399-lpddr4-400.inc  |   28 +-
 .../ram/rockchip/sdram-rk3399-lpddr4-800.inc  |   28 +-
 drivers/ram/rockchip/sdram_common.c           |  400 ++++++
 drivers/ram/rockchip/sdram_debug.c            |  147 --
 drivers/ram/rockchip/sdram_pctl_px30.c        |  205 +++
 drivers/ram/rockchip/sdram_phy_px30.c         |  205 +++
 drivers/ram/rockchip/sdram_px30.c             |  670 +++++++++
 drivers/ram/rockchip/sdram_rk3128.c           |    2 +-
 drivers/ram/rockchip/sdram_rk3188.c           |    2 +-
 drivers/ram/rockchip/sdram_rk322x.c           |    2 +-
 drivers/ram/rockchip/sdram_rk3288.c           |    2 +-
 drivers/ram/rockchip/sdram_rk3328.c           |  766 +++--------
 drivers/ram/rockchip/sdram_rk3399.c           | 1217 +++++++++++------
 48 files changed, 3947 insertions(+), 1705 deletions(-)
 create mode 100644 arch/arm/include/asm/arch-rockchip/sdram_msch.h
 create mode 100644 arch/arm/include/asm/arch-rockchip/sdram_pctl_px30.h
 create mode 100644 arch/arm/include/asm/arch-rockchip/sdram_phy_px30.h
 create mode 100644 arch/arm/include/asm/arch-rockchip/sdram_phy_ron_rtt_px30.h
 create mode 100644 arch/arm/include/asm/arch-rockchip/sdram_px30.h
 create mode 100644 arch/arm/include/asm/arch-rockchip/sdram_rk3288.h
 rename arch/arm/mach-rockchip/{sdram_common.c => sdram.c} (99%)
 create mode 100644 drivers/ram/rockchip/sdram-px30-ddr3-detect-333.inc
 create mode 100644 drivers/ram/rockchip/sdram-px30-ddr4-detect-333.inc
 create mode 100644 drivers/ram/rockchip/sdram-px30-ddr_skew.inc
 create mode 100644 drivers/ram/rockchip/sdram-px30-lpddr2-detect-333.inc
 create mode 100644 drivers/ram/rockchip/sdram-px30-lpddr3-detect-333.inc
 create mode 100644 drivers/ram/rockchip/sdram_common.c
 delete mode 100644 drivers/ram/rockchip/sdram_debug.c
 create mode 100644 drivers/ram/rockchip/sdram_pctl_px30.c
 create mode 100644 drivers/ram/rockchip/sdram_phy_px30.c
 create mode 100644 drivers/ram/rockchip/sdram_px30.c

-- 
2.17.1

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2019-10-23  9:01 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-22  8:04 [U-Boot] [PATCH 0/9] rockchip: ram: add common code for sdram driver Kever Yang
2019-10-22  8:04 ` [U-Boot] [PATCH 1/9] ram: rockchip: rename sdram driver files Kever Yang
2019-10-22  8:04 ` [U-Boot] [PATCH 2/9] ram: rockchip: add common sdram driver Kever Yang
2019-10-22  8:04 ` [U-Boot] [PATCH 3/9] ram: px30: add " Kever Yang
2019-10-22  8:04 ` [U-Boot] [PATCH 4/9] ram: rk3328: use common " Kever Yang
2019-10-22 17:37   ` Matwey V. Kornilov
2019-10-23  8:49     ` [U-Boot] [PATCH 4/9] ram: rk3328: use common sdram driver【请注意,邮件由u-boot-bounces@lists.denx.de代发】 Kever Yang
2019-10-23  9:01       ` Matwey V. Kornilov
2019-10-22  8:04 ` [U-Boot] [PATCH 5/9] ram: rk3399: use common sdram driver Kever Yang
2019-10-22  8:04 ` [U-Boot] [PATCH 6/9] ram: rockchip: update lpddr4 timing for rk3399 Kever Yang
2019-10-22  8:04 ` [U-Boot] [PATCH 7/9] ram: rk3399: Sync the io setting from Rockchip vendor code Kever Yang
2019-10-22  8:04 ` [U-Boot] [PATCH 8/9] ram: rk3399: update calculate_stride Kever Yang
2019-10-22  8:04 ` [U-Boot] [PATCH 9/9] ram: rk3399: Sync code from rockchip vendor code Kever Yang
2019-10-22 18:38 ` [U-Boot] [PATCH 0/9] rockchip: ram: add common code for sdram driver Jagan Teki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox