mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
ast2600: Add Secure Boot Controller model
Just a stub that indicates the system has booted in secure boot mode. Used for testing the driver: https://lore.kernel.org/all/20211019080608.283324-1-joel@jms.id.au/ Signed-off-by: Joel Stanley <joel@jms.id.au> [ clg: - Fixed typo - Adjusted Copyright dates ] Signed-off-by: Cédric Le Goater <clg@kaod.org>
This commit is contained in:
parent
50f97a0ec6
commit
e1acf581c9
5 changed files with 186 additions and 0 deletions
32
include/hw/misc/aspeed_sbc.h
Normal file
32
include/hw/misc/aspeed_sbc.h
Normal file
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* ASPEED Secure Boot Controller
|
||||
*
|
||||
* Copyright (C) 2021-2022 IBM Corp.
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*/
|
||||
|
||||
#ifndef ASPEED_SBC_H
|
||||
#define ASPEED_SBC_H
|
||||
|
||||
#include "hw/sysbus.h"
|
||||
|
||||
#define TYPE_ASPEED_SBC "aspeed.sbc"
|
||||
#define TYPE_ASPEED_AST2600_SBC TYPE_ASPEED_SBC "-ast2600"
|
||||
OBJECT_DECLARE_TYPE(AspeedSBCState, AspeedSBCClass, ASPEED_SBC)
|
||||
|
||||
#define ASPEED_SBC_NR_REGS (0x93c >> 2)
|
||||
|
||||
struct AspeedSBCState {
|
||||
SysBusDevice parent;
|
||||
|
||||
MemoryRegion iomem;
|
||||
|
||||
uint32_t regs[ASPEED_SBC_NR_REGS];
|
||||
};
|
||||
|
||||
struct AspeedSBCClass {
|
||||
SysBusDeviceClass parent_class;
|
||||
};
|
||||
|
||||
#endif /* _ASPEED_SBC_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue