mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
hw/arm: xlnx-versal-virt: Add Xilinx eFUSE device
Connect the support for Versal eFUSE one-time field-programmable bit array. The command argument: -drive if=pflash,index=1,... Can be used to optionally connect the bit array to a backend storage, such that field-programmed values in one invocation can be made available to next invocation. The backend storage must be a seekable binary file, and its size must be 3072 bytes or larger. A file with all binary 0's is a 'blank'. Signed-off-by: Tong Ho <tong.ho@xilinx.com> Message-id: 20210917052400.1249094-7-tong.ho@xilinx.com Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
393185bc9d
commit
5f4910ff12
4 changed files with 102 additions and 0 deletions
|
@ -25,6 +25,7 @@
|
|||
#include "hw/usb/xlnx-usb-subsystem.h"
|
||||
#include "hw/misc/xlnx-versal-xramc.h"
|
||||
#include "hw/nvram/xlnx-bbram.h"
|
||||
#include "hw/nvram/xlnx-versal-efuse.h"
|
||||
|
||||
#define TYPE_XLNX_VERSAL "xlnx-versal"
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(Versal, XLNX_VERSAL)
|
||||
|
@ -81,6 +82,9 @@ struct Versal {
|
|||
|
||||
XlnxZynqMPRTC rtc;
|
||||
XlnxBBRam bbram;
|
||||
XlnxEFuse efuse;
|
||||
XlnxVersalEFuseCtrl efuse_ctrl;
|
||||
XlnxVersalEFuseCache efuse_cache;
|
||||
} pmc;
|
||||
|
||||
struct {
|
||||
|
@ -110,6 +114,7 @@ struct Versal {
|
|||
#define VERSAL_BBRAM_APB_IRQ_0 121
|
||||
#define VERSAL_RTC_APB_ERR_IRQ 121
|
||||
#define VERSAL_SD0_IRQ_0 126
|
||||
#define VERSAL_EFUSE_IRQ 139
|
||||
#define VERSAL_RTC_ALARM_IRQ 142
|
||||
#define VERSAL_RTC_SECONDS_IRQ 143
|
||||
|
||||
|
@ -177,6 +182,11 @@ struct Versal {
|
|||
#define MM_PMC_SD0_SIZE 0x10000
|
||||
#define MM_PMC_BBRAM_CTRL 0xf11f0000
|
||||
#define MM_PMC_BBRAM_CTRL_SIZE 0x00050
|
||||
#define MM_PMC_EFUSE_CTRL 0xf1240000
|
||||
#define MM_PMC_EFUSE_CTRL_SIZE 0x00104
|
||||
#define MM_PMC_EFUSE_CACHE 0xf1250000
|
||||
#define MM_PMC_EFUSE_CACHE_SIZE 0x00C00
|
||||
|
||||
#define MM_PMC_CRP 0xf1260000U
|
||||
#define MM_PMC_CRP_SIZE 0x10000
|
||||
#define MM_PMC_RTC 0xf12a0000
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue