commit | ed8d3bd11a97345a1045ec8c60ee2d1e12040795 | [log] [tgz] |
---|---|---|
author | Marek BehĂșn <kabel@kernel.org> | Thu Apr 04 09:50:53 2024 +0200 |
committer | Stefan Roese <sr@denx.de> | Thu Apr 04 10:45:27 2024 +0200 |
tree | 5caf52640cd74b1145ab977c5f9a037c064090fd | |
parent | 8983f0a5165698db95a1561311d65daa8b972f96 [diff] |
arm: mvebu: turris_omnia: Update MCU status and features reading Refactor MCU status word and MCU firmware features reading to make it simpler to use. Try reading 32 bits of features, if that fails, read 16 bits. Older MCU firmware supports only 16-bit wide features, and if more bytes are read, either 0xff is sent or I2C transaction fails. Handle both cases. Signed-off-by: Marek BehĂșn <kabel@kernel.org> Reviewed-by: Stefan Roese <sr@denx.de>