summaryrefslogtreecommitdiffstats
path: root/hw/misc/aspeed_sbc.c
diff options
context:
space:
mode:
authorRichard Henderson2022-05-03 16:05:39 +0200
committerRichard Henderson2022-05-03 16:05:39 +0200
commit5f14cfe187e2fc3c71f4536b2021b8118d224239 (patch)
treea45e5abd752ac09f7379a0a23d08a761b8d89a53 /hw/misc/aspeed_sbc.c
parentMerge tag 'pull-9p-20220501' of https://github.com/cschoenebeck/qemu into sta... (diff)
parentaspeed/hace: Support AST1030 HACE (diff)
downloadqemu-5f14cfe187e2fc3c71f4536b2021b8118d224239.tar.gz
qemu-5f14cfe187e2fc3c71f4536b2021b8118d224239.tar.xz
qemu-5f14cfe187e2fc3c71f4536b2021b8118d224239.zip
Merge tag 'pull-aspeed-20220503' of https://github.com/legoater/qemu into staging
aspeed queue: * New AST1030 SoC and eval board * Accumulative mode support for HACE controller * GPIO fix and unit test * Clock modeling adjustments for the AST2600 * Dummy eMMC Boot Controller model * Change of AST2500 EVB and AST2600 EVB flash model (for quad IO) # -----BEGIN PGP SIGNATURE----- # # iQIzBAABCAAdFiEEoPZlSPBIlev+awtgUaNDx8/77KEFAmJwwq8ACgkQUaNDx8/7 # 7KF0IhAApbCCcg06PR66pmaDBFY2RWmU0XShDoCEeHyT5huQFcAJWNoqVAJ52E8L # ZCPEeORQthxMwmtw7JLIGCFhDx4P4YzfNZRPANRosKs7BR0GequVgHp7c6fXhD/3 # A3w42hfuNR4Hrbsil/yhN2vxFAYXudA+NPez2ibex3UyVc/ZUu71nCqZTxh3wZdN # XQTuqxWerA5RRBRtVn8n/aBp+3mo5enD4dx44KWMZxKxJaFJfZQHVZttGHU9azF+ # fXJ1lmrJZ7eHmWjCEvgnHXwl0nWiMwkLZ9/MKOAPkdjUG1JciGRxbJki0bGuS7Jr # NzOyO0f++ZtOsuLGA03WiwR1oo3GmG7lBFqBcdzMwN2EMvDvVvJUp3v8IdV/L10P # OJ10rBi6FDJuKGHJGIQywlFSYYjPb+DgNEWId2rugVVm4dR02Cn69amuL40OO9by # /C7hO9gSvRTqSSdjFcdkbI2h+kx0354F2/gR2LFLBh1KUHulTJ4ErthrKBiuNPC8 # tsELzYVnxWVT+nc30Nmidg3uCW3/5zBlaj0qlL4aiFjKR5na6Wpz+oE/aNiNdyT3 # IBI+J5zvbtn/prNTWLW1TCuGdwj357LfYfkfkH8eqZWfX5vGq+5hVTc/m8EW5Cx8 # yV8JrbjX8uDI379skdl4imtedbKZhPLd7csM/zrorsJhBBwSoLA= # =+hIh # -----END PGP SIGNATURE----- # gpg: Signature made Mon 02 May 2022 10:50:39 PM PDT # 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-20220503' of https://github.com/legoater/qemu: aspeed/hace: Support AST1030 HACE hw/gpio/aspeed_gpio: Fix QOM pin property tests/qtest: Add test for Aspeed HACE accumulative mode aspeed/hace: Support AST2600 HACE aspeed/hace: Support HMAC Key Buffer register. hw/arm/aspeed: fix AST2500/AST2600 EVB fmc model test/avocado/machine_aspeed.py: Add ast1030 test case aspeed: Add an AST1030 eval board aspeed/soc : Add AST1030 support aspeed/scu: Add AST1030 support aspeed/timer: Add AST1030 support aspeed/wdt: Add AST1030 support aspeed/wdt: Fix ast2500/ast2600 default reload value aspeed/smc: Add AST1030 support aspeed/adc: Add AST1030 support aspeed: Add eMMC Boot Controller stub aspeed: sbc: Correct default reset values hw: aspeed_scu: Introduce clkin_25Mhz attribute hw: aspeed_scu: Add AST2600 apb_freq and hpll calculation function Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'hw/misc/aspeed_sbc.c')
-rw-r--r--hw/misc/aspeed_sbc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/hw/misc/aspeed_sbc.c b/hw/misc/aspeed_sbc.c
index 40f2a8c631..bfa8b81d01 100644
--- a/hw/misc/aspeed_sbc.c
+++ b/hw/misc/aspeed_sbc.c
@@ -17,6 +17,7 @@
#define R_PROT (0x000 / 4)
#define R_STATUS (0x014 / 4)
+#define R_QSR (0x040 / 4)
static uint64_t aspeed_sbc_read(void *opaque, hwaddr addr, unsigned int size)
{
@@ -50,6 +51,7 @@ static void aspeed_sbc_write(void *opaque, hwaddr addr, uint64_t data,
switch (addr) {
case R_STATUS:
+ case R_QSR:
qemu_log_mask(LOG_GUEST_ERROR,
"%s: write to read only register 0x%" HWADDR_PRIx "\n",
__func__, addr << 2);
@@ -77,8 +79,9 @@ static void aspeed_sbc_reset(DeviceState *dev)
memset(s->regs, 0, sizeof(s->regs));
- /* Set secure boot enabled, and boot from emmc/spi */
- s->regs[R_STATUS] = 1 << 6 | 1 << 5;
+ /* Set secure boot enabled with RSA4096_SHA256 and enable eMMC ABR */
+ s->regs[R_STATUS] = 0x000044C6;
+ s->regs[R_QSR] = 0x07C07C89;
}
static void aspeed_sbc_realize(DeviceState *dev, Error **errp)