ARM: aspeed: Add secure boot controller support
This reads out the status of the secure boot controller and exposes it
in sysfs.
An example on a AST2600A3 QEMU model:
# grep . /sys/bus/soc/devices/soc0/*
/sys/bus/soc/devices/soc0/abr_image:0
/sys/bus/soc/devices/soc0/family:AST2600
/sys/bus/soc/devices/soc0/low_security_key:0
/sys/bus/soc/devices/soc0/machine:Rainier 2U
/sys/bus/soc/devices/soc0/otp_protected:0
/sys/bus/soc/devices/soc0/revision:A3
/sys/bus/soc/devices/soc0/secure_boot:1
/sys/bus/soc/devices/soc0/serial_number:
888844441234abcd
/sys/bus/soc/devices/soc0/soc_id:
05030303
/sys/bus/soc/devices/soc0/uart_boot:1
On boot the state of the system according to the secure boot controller
will be printed:
[ 0.037634] AST2600 secure boot enabled
or
[ 0.037935] AST2600 secure boot disabled
Signed-off-by: Joel Stanley <joel@jms.id.au>
Reviewed-by: Ryan Chen <ryan_chen@aspeedtech.com>
Link: https://lore.kernel.org/r/20211117035106.321454-4-joel@jms.id.au
Signed-off-by: Joel Stanley <joel@jms.id.au>