mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
aspeed queue:
* New ISL69259 device model * New fby35 multi-SoC machine (AST1030 BIC + AST2600 BMC) * Aspeed GPIO fixes * Extension of m25p80 with write protect bits * More avocado tests using the Aspeed SDK -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoPZlSPBIlev+awtgUaNDx8/77KEFAmLQJ/kACgkQUaNDx8/7 7KFO5BAAkqiSSQ9G3ihI51ET3+inihrw9wmN7FX5eMOxj8csLz1UbKOJ/YtjXvgt whfY5/iugVveUW+/X1xZmHbydec24f/umSpqqCtkPkIwCgvN4gjQAriXTK4qqx7g pCZoWxYeHsR19r985y//I+wFPB//Dd3Ac/1BgA4m0tdy/bK3MPLV2ocDe8d09Yfe wDYAFby4q8raKzMkJMibP7/phIg4hyguNAYtkSUsJChnXjK8/2ymsjlx7Xz+N1Gp Fynv9vaFiYOEvmDTPqbs7XMs3Qc+Sjz2RsxgaEdSI4pLk8H8hhgVueYE1ctWlpkI 7q/g5KjXZsq6eKxNYDqU+ysY+vjdLZmO1tEmolgR+k4C+ladUYSBaI1XiGJjCmpb 6vkM2ls1sgmb6C24e8vP64Jp/AgT6Qg7OW1Db3VcpBbQirf9SqtkXezgseOrsnXm Ni1uQF9NwUiRUWTA/bK4y/pSYNItoQ4KkeoAWPsiEm0d4Pezk2X+EMjJcCTQw9Zx BFtDxi/3rWB3imvhizynT93+rtNH7Z74kiI7iZGbZr6L2XhpEUlwoo+EOaeb4XAS ZEuR+kBNUMR9k4YhyF0DlvN61SuD703SdXCROsUq3EzCgza24JM4bl2IMSyv9Wdj DCL6yYEyf8FsJ9+KtK8A1uXc2yDcV4iGfEqOReTB5+k99ICzgEg= =faie -----END PGP SIGNATURE----- Merge tag 'pull-aspeed-20220714' of https://github.com/legoater/qemu into staging aspeed queue: * New ISL69259 device model * New fby35 multi-SoC machine (AST1030 BIC + AST2600 BMC) * Aspeed GPIO fixes * Extension of m25p80 with write protect bits * More avocado tests using the Aspeed SDK # gpg: Signature made Thu 14 Jul 2022 15:28:09 BST # gpg: using RSA key A0F66548F04895EBFE6B0B6051A343C7CFFBECA1 # gpg: Good signature from "Cédric Le Goater <clg@kaod.org>" [undefined] # gpg: WARNING: This key is not certified with a trusted signature! # gpg: There is no indication that the signature belongs to the owner. # Primary key fingerprint: A0F6 6548 F048 95EB FE6B 0B60 51A3 43C7 CFFB ECA1 * tag 'pull-aspeed-20220714' of https://github.com/legoater/qemu: aspeed: Add fby35-bmc slot GPIO's hw/gpio/aspeed: Don't let guests modify input pins qtest/aspeed_gpio: Add input pin modification test hw: m25p80: add tests for BP and TB bit write protect hw: m25p80: Add Block Protect and Top Bottom bits for write protect test/avocado/machine_aspeed.py: Add SDK tests docs: aspeed: Minor updates docs: aspeed: Add fby35 multi-SoC machine section aspeed: Add AST1030 (BIC) to fby35 aspeed: fby35: Add a bootrom for the BMC aspeed: Add AST2600 (BMC) to fby35 aspeed: Add fby35 skeleton aspeed: Make aspeed_board_init_flashes public aspeed: Refactor UART init for multi-SoC machines aspeed: Create SRAM name from first CPU index hw/sensor: Add Renesas ISL69259 device model hw/sensor: Add IC_DEVICE_ID to ISL voltage regulators hw/i2c/pmbus: Add idle state to return 0xff's aspeed: sbc: Allow per-machine settings Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
44bfcf628b
20 changed files with 763 additions and 56 deletions
|
@ -36,12 +36,14 @@
|
|||
#include "hw/misc/aspeed_lpc.h"
|
||||
#include "hw/misc/unimp.h"
|
||||
#include "hw/misc/aspeed_peci.h"
|
||||
#include "hw/char/serial.h"
|
||||
|
||||
#define ASPEED_SPIS_NUM 2
|
||||
#define ASPEED_EHCIS_NUM 2
|
||||
#define ASPEED_WDTS_NUM 4
|
||||
#define ASPEED_CPUS_NUM 2
|
||||
#define ASPEED_MACS_NUM 4
|
||||
#define ASPEED_UARTS_NUM 13
|
||||
|
||||
struct AspeedSoCState {
|
||||
/*< private >*/
|
||||
|
@ -79,7 +81,7 @@ struct AspeedSoCState {
|
|||
AspeedSDHCIState emmc;
|
||||
AspeedLPCState lpc;
|
||||
AspeedPECIState peci;
|
||||
uint32_t uart_default;
|
||||
SerialMM uart[ASPEED_UARTS_NUM];
|
||||
Clock *sysclk;
|
||||
UnimplementedDeviceState iomem;
|
||||
UnimplementedDeviceState video;
|
||||
|
@ -175,11 +177,14 @@ enum {
|
|||
};
|
||||
|
||||
qemu_irq aspeed_soc_get_irq(AspeedSoCState *s, int dev);
|
||||
void aspeed_soc_uart_init(AspeedSoCState *s);
|
||||
bool aspeed_soc_uart_realize(AspeedSoCState *s, Error **errp);
|
||||
void aspeed_soc_uart_set_chr(AspeedSoCState *s, int dev, Chardev *chr);
|
||||
bool aspeed_soc_dram_init(AspeedSoCState *s, Error **errp);
|
||||
void aspeed_mmio_map(AspeedSoCState *s, SysBusDevice *dev, int n, hwaddr addr);
|
||||
void aspeed_mmio_map_unimplemented(AspeedSoCState *s, SysBusDevice *dev,
|
||||
const char *name, hwaddr addr,
|
||||
uint64_t size);
|
||||
void aspeed_board_init_flashes(AspeedSMCState *s, const char *flashtype,
|
||||
unsigned int count, int unit0);
|
||||
|
||||
#endif /* ASPEED_SOC_H */
|
||||
|
|
|
@ -155,6 +155,7 @@ enum pmbus_registers {
|
|||
PMBUS_MFR_MAX_TEMP_1 = 0xC0, /* R/W word */
|
||||
PMBUS_MFR_MAX_TEMP_2 = 0xC1, /* R/W word */
|
||||
PMBUS_MFR_MAX_TEMP_3 = 0xC2, /* R/W word */
|
||||
PMBUS_IDLE_STATE = 0xFF,
|
||||
};
|
||||
|
||||
/* STATUS_WORD */
|
||||
|
@ -527,6 +528,12 @@ int pmbus_page_config(PMBusDevice *pmdev, uint8_t page_index, uint64_t flags);
|
|||
*/
|
||||
void pmbus_check_limits(PMBusDevice *pmdev);
|
||||
|
||||
/**
|
||||
* Enter an idle state where only the PMBUS_ERR_BYTE will be returned
|
||||
* indefinitely until a new command is issued.
|
||||
*/
|
||||
void pmbus_idle(PMBusDevice *pmdev);
|
||||
|
||||
extern const VMStateDescription vmstate_pmbus_device;
|
||||
|
||||
#define VMSTATE_PMBUS_DEVICE(_field, _state) { \
|
||||
|
|
|
@ -17,9 +17,22 @@ OBJECT_DECLARE_TYPE(AspeedSBCState, AspeedSBCClass, ASPEED_SBC)
|
|||
|
||||
#define ASPEED_SBC_NR_REGS (0x93c >> 2)
|
||||
|
||||
#define QSR_AES BIT(27)
|
||||
#define QSR_RSA1024 (0x0 << 12)
|
||||
#define QSR_RSA2048 (0x1 << 12)
|
||||
#define QSR_RSA3072 (0x2 << 12)
|
||||
#define QSR_RSA4096 (0x3 << 12)
|
||||
#define QSR_SHA224 (0x0 << 10)
|
||||
#define QSR_SHA256 (0x1 << 10)
|
||||
#define QSR_SHA384 (0x2 << 10)
|
||||
#define QSR_SHA512 (0x3 << 10)
|
||||
|
||||
struct AspeedSBCState {
|
||||
SysBusDevice parent;
|
||||
|
||||
bool emmc_abr;
|
||||
uint32_t signing_settings;
|
||||
|
||||
MemoryRegion iomem;
|
||||
|
||||
uint32_t regs[ASPEED_SBC_NR_REGS];
|
||||
|
|
|
@ -12,12 +12,17 @@
|
|||
#include "hw/i2c/pmbus_device.h"
|
||||
#include "qom/object.h"
|
||||
|
||||
#define TYPE_ISL69259 "isl69259"
|
||||
#define TYPE_ISL69260 "isl69260"
|
||||
#define TYPE_RAA228000 "raa228000"
|
||||
#define TYPE_RAA229004 "raa229004"
|
||||
#define ISL_MAX_IC_DEVICE_ID_LEN 16
|
||||
|
||||
struct ISLState {
|
||||
PMBusDevice parent;
|
||||
|
||||
uint8_t ic_device_id[ISL_MAX_IC_DEVICE_ID_LEN];
|
||||
uint8_t ic_device_id_len;
|
||||
};
|
||||
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(ISLState, ISL69260)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue