Home
last modified time | relevance | path

Searched hist:"740 bc3a7" (Results 1 – 1 of 1) sorted by relevance

/openbmc/qemu/hw/misc/
H A Daspeed_scu.c740bc3a7 Tue Sep 01 07:21:50 CDT 2020 Cédric Le Goater <clg@kaod.org> aspeed/scu: Fix valid access size on AST2400

The read access size of the SCU registers can be 1/2/4 bytes and write
is 4 bytes and all Aspeed models would need a .valid.accepts() handler.

For the moment, set the min access size to 1 byte to cover both read
and write operations on the AST2400 but keep the min access size of
the other SoCs to 4 bytes as this is an unusual access size.

This fixes support for some old firmware doing 2 bytes reads on the
AST2400 SoC.

Reported-by: Erik Smit <erik.lucas.smit@gmail.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Message-Id: <20200819100956.2216690-5-clg@kaod.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>