Skip to contentSkip to conversation

sunxi: H6: DRAM: Add support for half DQ

PATCH New Jernej Skrabec 3 participants 3 messages Aug 23, 2019 – Oct 16, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 sunxi: H6: DRAM: Add support for half DQ

Half DQ configuration seems to be very rare for H6 based boards/STBs, but exists nevertheless. Currently the only known product which needs this support is Tanix TX6 mini.

This commit adds support for half DQ configuration. Code was tested for regressions on other configurations (OrangePi 3 1 GiB/LPDDR3, Tanix TX6 4 GiB/DDR3) and none were found.

Thanks to Icenowy Zheng for help with this code.

---
Changes from v1:
- expanded comment with note that dual rank, half bus width combination was not tested.
- added Rb and Tb tags

 .../include/asm/arch-sunxi/dram_sun50i_h6.h   |  1 +
 arch/arm/mach-sunxi/dram_sun50i_h6.c          | 78 +++++++++++++------
 2 files changed, 54 insertions(+), 25 deletions(-)
arch/arm/include/asm/arch-sunxi/dram_sun50i_h6.h +1 -0
index 0a1da02376..49a8a66f7b 100644
@@ -315,6 +315,7 @@ struct dram_para {
 	u8 cols;
 	u8 rows;
 	u8 ranks;
+	u8 bus_full_width;
 	const u8 dx_read_delays[NR_OF_BYTE_LANES][RD_LINES_PER_BYTE_LANE];
 	const u8 dx_write_delays[NR_OF_BYTE_LANES][WR_LINES_PER_BYTE_LANE];
 };
arch/arm/mach-sunxi/dram_sun50i_h6.c +53 -25

150 lines not on this page · raw message

Signature · 1 line
2.23.0
#1 lore raw

PATCH v2 1/1 sunxi: H6: DRAM: Add support for half DQ

Hi,

Quoted 8 lines · Jernej Skrabec

Half DQ configuration seems to be very rare for H6 based boards/STBs, but exists nevertheless. Currently the only known product which needs this support is Tanix TX6 mini.

This commit adds support for half DQ configuration. Code was tested for regressions on other configurations (OrangePi 3 1 GiB/LPDDR3, Tanix TX6 4 GiB/DDR3) and none were found.

Quoted 5 lines

Thanks to Icenowy Zheng for help with this code.

Jagan, can you pick that up?

Thanks!
Maxime
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190918/19c3963c/attachment.sig>

#2 lore raw

PATCH v2 1/1 sunxi: H6: DRAM: Add support for half DQ

In reply to Jernej Skrabec
Quoted 9 lines · Jernej Skrabec

Half DQ configuration seems to be very rare for H6 based boards/STBs, but exists nevertheless. Currently the only known product which needs this support is Tanix TX6 mini.

This commit adds support for half DQ configuration. Code was tested for regressions on other configurations (OrangePi 3 1 GiB/LPDDR3, Tanix TX6 4 GiB/DDR3) and none were found.

Quoted 6 lines

Thanks to Icenowy Zheng for help with this code.

---

Applied to u-boot-sunxi/master