hw/misc: Allwinner A10 DRAM Controller Emulation
authorStrahinja Jankovic <strahinjapjankovic@gmail.com>
Mon, 26 Dec 2022 22:02:58 +0000 (23:02 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 12 Jan 2023 16:50:19 +0000 (16:50 +0000)
commitedd3a59d5b98964ed72265346cb4dc7e9ffccd27
treebc4007ea9f6446f1cbbc1fee04774a7af2d1f9b7
parent423ec28bb8c20d9dfa68faef50699772899ab64d
hw/misc: Allwinner A10 DRAM Controller Emulation

During SPL boot several DRAM Controller registers are used. Most
important registers are those related to DRAM initialization and
calibration, where SPL initiates process and waits until certain bit is
set/cleared.

This patch adds these registers, initializes reset values from user's
guide and updates state of registers as SPL expects it.

Signed-off-by: Strahinja Jankovic <strahinja.p.jankovic@gmail.com>
Reviewed-by: Niek Linnenbank <nieklinnenbank@gmail.com>
Message-id: 20221226220303.14420-3-strahinja.p.jankovic@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/Kconfig
hw/arm/allwinner-a10.c
hw/misc/Kconfig
hw/misc/allwinner-a10-dramc.c [new file with mode: 0644]
hw/misc/meson.build
include/hw/arm/allwinner-a10.h
include/hw/misc/allwinner-a10-dramc.h [new file with mode: 0644]