[PATCH 0/8] sunxi: Update H616 DRAM driver

Jernej Skrabec jernej.skrabec at gmail.com
Sun Dec 11 17:32:05 CET 2022


Current H616 DRAM driver is completely customized to Orange Pi Zero2
board, which is currently the only H616 board supported by U-Boot.
Needless to say, this is not ideal for adding new boards. With changes
in this series, all DDR3 boards are supported and all that is needed is
just vendor DRAM values extracted from Android image. New DRAM types
should also be easier to support, since a lot of constants used before
are not really DRAM type dependent.

Changes were verified by decompiling driver and generated values were
compared to previous, hard coded ones. This was done without dram_para
structures, so compiler was able to heavily optimize code and produce
constants.

Please take a look.

Best regards,
Jernej

Jernej Skrabec (8):
  sunxi: Fix write to H616 DRAM CR register
  sunxi: cosmetic: Fix H616 DRAM driver code style
  sunxi: parameterize H616 DRAM ODT values
  sunxi: Convert H616 DRAM options to single setting
  sunxi: Always configure ODT on H616 DRAM
  sunxi: Make bit delay function in H616 DRAM code void
  sunxi: Parameterize bit delay code in H616 DRAM driver
  sunxi: Parameterize H616 DRAM code some more

 .../include/asm/arch-sunxi/dram_sun50i_h616.h |  18 +
 arch/arm/mach-sunxi/Kconfig                   |  67 +--
 arch/arm/mach-sunxi/dram_sun50i_h616.c        | 445 +++++++++++-------
 configs/orangepi_zero2_defconfig              |   8 +-
 4 files changed, 348 insertions(+), 190 deletions(-)

-- 
2.38.1



More information about the U-Boot mailing list