aspeed/smc: Reintroduce "dram-base" property for AST2700
commitee48fef06c034ff245db9e553dcf0f1262f97bd2
authorCédric Le Goater <clg@redhat.com>
Tue, 7 May 2024 14:12:12 +0000 (7 16:12 +0200)
committerCédric Le Goater <clg@redhat.com>
Sun, 16 Jun 2024 19:08:54 +0000 (16 21:08 +0200)
tree7f246e0d00c0cc17feceea240db21005570efd30
parent05ad1440b8428b0ade9b8e5c01469adb8fbf83e3
aspeed/smc: Reintroduce "dram-base" property for AST2700

The Aspeed SMC device model use to have a 'sdram_base' property. It
was removed by commit d177892d4a48 ("aspeed/smc: Remove unused
"sdram-base" property") because previous changes simplified the DMA
transaction model to use an offset in RAM and not the physical
address.

The AST2700 SoC has larger address space (64-bit) and a new register
DMA DRAM Side Address High Part (0x7C) is introduced to deal with the
high bits of the DMA address. To be able to compute the offset of the
DMA transaction, as done on the other SoCs, we will need to know where
the DRAM is mapped in the address space. Re-introduce a "dram-base"
property to hold this value.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Jamin Lin <jamin_lin@aspeedtech.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/ssi/aspeed_smc.c
include/hw/ssi/aspeed_smc.h