sunxi: H6: DRAM: Add support for half DQ
authorJernej Skrabec <jernej.skrabec@siol.net>
Fri, 23 Aug 2019 17:24:04 +0000 (19:24 +0200)
committerJagan Teki <jagan@amarulasolutions.com>
Fri, 25 Oct 2019 08:45:49 +0000 (14:15 +0530)
commite8c19ffa981bc60bdf651658e083664764df1a95
treec18951b6f104e830a6636aa27936ed46b6f68887
parent395ec7418695e5ce23f8b48c01a1dbffd2e52d3f
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.

Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Tested-by: thomas graichen <thomas.graichen@gmail.com>
Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
Reviewed-by: Maxime Ripard <mripard@kernel.org>
arch/arm/include/asm/arch-sunxi/dram_sun50i_h6.h
arch/arm/mach-sunxi/dram_sun50i_h6.c