summary refs log tree commit diff stats
path: root/hw/intc/aspeed_intc.c
diff options
context:
space:
mode:
authorJamin Lin <jamin_lin@aspeedtech.com>2025-03-04 14:47:06 +0800
committerCédric Le Goater <clg@redhat.com>2025-03-09 14:36:53 +0100
commit720e850f83ef6497d9992c43716fb5d7cc9a2ad2 (patch)
tree8335794c41cfc694dbe50a9970c100575943c819 /hw/intc/aspeed_intc.c
parent172329c6b281e11feb3d6e60df6754008e23a089 (diff)
downloadfocaccia-qemu-720e850f83ef6497d9992c43716fb5d7cc9a2ad2.tar.gz
focaccia-qemu-720e850f83ef6497d9992c43716fb5d7cc9a2ad2.zip
hw/misc/aspeed_scu: Fix the hw-strap1 cannot be set in the SOC layer for AST2700
There is one hw_strap1 register in the SCU (CPU DIE) and another hw_strap1
register in the SCUIO (IO DIE).

In the "ast2700_a0_resets" function, the hardcoded value "0x00000800" is set in
SCU hw-strap1 (CPU DIE), and in "ast2700_a0_resets_io" the hardcoded value
"0x00000504" is set in SCUIO hw-strap1 (IO DIE). Both values cannot be set via
the SOC layer.

The value of "s->hw_strap1" is set by the SOC layer via the "hw-strap1" property.
Update the "aspeed_ast2700_scu_reset" function to set the value of "s->hw_strap1"
in both the SCU and SCUIO hw-strap1 registers.

Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Tested-by: Nabih Estefan <nabihestefan@google.com>
Link: https://lore.kernel.org/qemu-devel/20250304064710.2128993-5-jamin_lin@aspeedtech.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'hw/intc/aspeed_intc.c')
0 files changed, 0 insertions, 0 deletions