OSDN Git Service

aspeed: sbc: Allow per-machine settings
authorJoel Stanley <joel@jms.id.au>
Thu, 14 Jul 2022 14:24:38 +0000 (16:24 +0200)
committerCédric Le Goater <clg@kaod.org>
Thu, 14 Jul 2022 14:24:38 +0000 (16:24 +0200)
commit54ee564132bdbd1346a241dde5d51f0a1d1a1c7b
tree3c62ab5d7dc86b97445925d6a05699c961468f14
parent08c9f7eec7002dac2da52c8265eb319aba381c86
aspeed: sbc: Allow per-machine settings

In order to correctly report secure boot running firmware the values
of certain registers must be set.

We don't yet have documentation from ASPEED on what they mean. The
meaning is inferred from u-boot's use of them.

Introduce properties so the settings can be configured per-machine.

Reviewed-by: Peter Delevoryas <pdel@fb.com>
Tested-by: Peter Delevoryas <pdel@fb.com>
Signed-off-by: Joel Stanley <joel@jms.id.au>
Message-Id: <20220628154740.1117349-4-clg@kaod.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
hw/misc/aspeed_sbc.c
include/hw/misc/aspeed_sbc.h