u-boot/arch
Andre Przywara b71129ca3b sunxi: H616: DRAM: refactor mctl_phy_configure_odt()
The original H616 DDR3 ODT configuration code wrote board specific values
into a sequence of paired registers.
For LPDDR3 support we needed to special-case one group of registers,
because for that DRAM type we need to write 0 into the lower register of
each pair. That already made the code less readable.

LPDDR4 support will make things even messier, so let's refactor that
code now: We allow to write different values into the lower and upper
half of each pair. The masking is moved into a macro, and use in each
write statement.

The effect is not as obvious yet, as we don't need the full flexibility at
the moment, but the motivation will become clearer with LPDDR4 support.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Reviewed-by: Mikhail Kalashnikov <iuncuim@gmail.com>
2023-11-12 18:03:37 +00:00
..
arc arc: Remove common.h usage 2023-10-24 16:34:45 -04:00
arm sunxi: H616: DRAM: refactor mctl_phy_configure_odt() 2023-11-12 18:03:37 +00:00
m68k Kconfig: Remove all default n/no options 2023-10-30 15:32:49 -04:00
microblaze microblaze: Remove common.h usage 2023-10-24 16:34:45 -04:00
mips bmips: Add Inteno XG6846 board 2023-11-06 10:20:21 -05:00
nios2 event: Convert existing spy records to simple 2023-08-31 13:16:54 -04:00
powerpc mpc85xx: relocate code in non-SPL build 2023-10-28 09:17:55 -04:00
riscv riscv: dts: jh7110: Add rng device tree node 2023-11-02 17:45:53 +08:00
sandbox serial: zynqmp: Fetch baudrate from dtb and update 2023-11-07 13:47:08 +01:00
sh spl: Use SYS_MALLOC_F instead of SYS_MALLOC_F_LEN 2023-10-06 14:38:12 -04:00
x86 common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
xtensa treewide: unify the linker symbol reference format 2023-08-09 09:21:42 -04:00
.gitignore
Kconfig cmd: mbr: Allow 4 MBR partitions without need for extended 2023-10-24 17:05:24 -04:00
Kconfig.nxp
u-boot-elf.lds