]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/misc/aspeed_sbc: Connect ASPEED OTP memory device to SBC
authorKane-Chen-AS <kane_chen@aspeedtech.com>
Tue, 12 Aug 2025 09:39:59 +0000 (17:39 +0800)
committerCédric Le Goater <clg@redhat.com>
Mon, 29 Sep 2025 16:00:20 +0000 (18:00 +0200)
commit9f58dd0a8c30a6b84016db30949fe2f86f8bc38b
tree437b2489af4aa17f4189973da6c9c5926424b4cb
parent688a3dae7828ca5ee6f45d510eed083420d72d8a
hw/misc/aspeed_sbc: Connect ASPEED OTP memory device to SBC

This patch connects the aspeed.otp device to the ASPEED Secure Boot
Controller (SBC) model. It implements OTP memory access via the SBC's
command interface and enables emulation of secure fuse programming
flows.

The following OTP commands are supported:
  - READ: reads a 32-bit word from OTP memory into internal registers
  - PROG: programs a 32-bit word value to the specified OTP address

Trace events are added to observe read/program operations and command
handling flow.

Signed-off-by: Kane-Chen-AS <kane_chen@aspeedtech.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Link: https://lore.kernel.org/qemu-devel/20250812094011.2617526-3-kane_chen@aspeedtech.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/misc/aspeed_sbc.c
hw/misc/trace-events
include/hw/misc/aspeed_sbc.h