Skip to content

Improve Rockchip SDRAM types support configuration

Massimo Pegorer u-boot 3 versions – In review

Get series with b4
b4 am [email protected] change-id 20260828-ddr-multi-2c4fd64344c8

Versions newest first

  1. v3 Latest3 patches 12 repliesIn review
  2. v24 patches 16 repliesSuperseded
  3. v12 patches 6 repliesSuperseded

Changes in v3 from the cover letter

- Split 1/4 of v2 into 3 different patches as follow:
-- 1/4 only add SoC guards to Rockchip SDRAM config options.
-- 2/4 new DDR3 config option and raise error if no SDRAM type is selected. -- 3/4 raise error if more than one SDRAM type is selected.
- Drop useless replacing of defined() with IS_ENABLED().
- Drop PX30 multi SDRAM support (2/4 of v2) for another series.
- Drop TPL size optimizations (3/4 and 4/4 of v2) for another series.
- Align cover-letter description with updated series contents.
- Link to v2: https://patch.msgid.link/[email protected]

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ram: rockchip: improve sdram type configs selectiondrivers/ram/rockchip/Kconfig+8 -83 replies
2/3ram: rockchip: add DDR3 sdram type config optiondrivers/ram/rockchip/Kconfig drivers/ram/rockchip/sdram_px30.c drivers/ram/rockchip/sdram_rv1126.c+14 -22 replies
3/3ram: rockchip: raise error when configuration is unsupporteddrivers/ram/rockchip/sdram_px30.c drivers/ram/rockchip/sdram_rv1126.c+13 -07 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchQuentin Schulz
1/3R-b
2/3
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/3] Improve Rockchip SDRAM types support configuration

This series splits from [1] as preliminary to a next series related to support of multiple SDRAM types at a time in Rockchip PX30 SoC TPL.

The first patch improves clarity of SDRAM type support selection for Rockchip SoCs at Kconfig level. Not all the SDRAM type config options named in the Kconfig are supported by each of the Rockchip SoCs.

The second patch adds RAM_ROCKCHIP_DDR3 option, forcing PX30 and RV1126 configurations to select one of the RAM_ROCKCHIP_XXX options, dropping the fallback behaviour of using DDR3 parameters set when no option is selected, adopted by these SoCs drivers: now, if none is selected, a compile-time error is raised, instead.

The third patch raises an error if more than one RAM_ROCKCHIP_XXX option is selected when compiling PX30 or RV1126: these drivers support just one type at a time. Drop previous approach of choosing one type among the selected based on a debatable and embedded order, not evident at configuration level.

[1] https://patch.msgid.link/[email protected]

---
Changes in v3:
- Split 1/4 of v2 into 3 different patches as follow:
-- 1/4 only add SoC guards to Rockchip SDRAM config options.
-- 2/4 new DDR3 config option and raise error if no SDRAM type is selected. -- 3/4 raise error if more than one SDRAM type is selected.
- Drop useless replacing of defined() with IS_ENABLED().
- Drop PX30 multi SDRAM support (2/4 of v2) for another series.
- Drop TPL size optimizations (3/4 and 4/4 of v2) for another series.
- Align cover-letter description with updated series contents.
- Link to v2: https://patch.msgid.link/[email protected]

Changes in v2:
- Update and reword cover letter.
- Do not duplicate config options based on SoC.
- Add SDRAM config option for DDR3 explicit selection.
- Raise compile time error if no SDRAM type is selected.
- Raise compile time error if more than one type is selected but the driver does not support more than one at a time.
- Change order to alphabetical one, as the most trivial option.
- Slightly optimize sdram driver debugging code.
- Add config option for size-constrained driver debugging.
- Link to v1: https://patch.msgid.link/[email protected]

To: [email protected]
To: Quentin Schulz <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Massimo Pegorer <[email protected]>

---
Massimo Pegorer (3):
ram: rockchip: improve sdram type configs selection
ram: rockchip: add DDR3 sdram type config option
ram: rockchip: raise error when configuration is unsupported

 drivers/ram/rockchip/Kconfig        | 24 ++++++++++++++++--------
 drivers/ram/rockchip/sdram_px30.c   | 11 ++++++++++-
 drivers/ram/rockchip/sdram_rv1126.c | 10 +++++++++-
 3 files changed, 35 insertions(+), 10 deletions(-)

---
base-commit: 701db9119cefeed95b77df90359cf96f78a5823f
change-id: 20260828-ddr-multi-2c4fd64344c8

Best regards,

Signature · 1 line
Massimo Pegorer <[email protected]>