]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/riscv: microchip_pfsoc: Map EMMC/SD mux register
authorBin Meng <bin.meng@windriver.com>
Mon, 22 Mar 2021 07:52:47 +0000 (15:52 +0800)
committerAlistair Francis <alistair.francis@wdc.com>
Tue, 23 Mar 2021 01:54:40 +0000 (21:54 -0400)
commitd6150ace2bccfee6b5f7bb555ca749739b02f687
treef62902867ba92d81fc7ca92a2478607679635613
parentaac8e46e9da6e6ad048d858ecb033c953753f31a
hw/riscv: microchip_pfsoc: Map EMMC/SD mux register

Since HSS commit c20a89f8dcac, the Icicle Kit reference design has
been updated to use a register mapped at 0x4f000000 instead of a
GPIO to control whether eMMC or SD card is to be used. With this
support the same HSS image can be used for both eMMC and SD card
boot flow, while previously two different board configurations were
used. This is undocumented but one can take a look at the HSS code
HSS_MMCInit() in services/mmc/mmc_api.c.

With this commit, HSS image built from 2020.12 release boots again.

Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 20210322075248.136255-1-bmeng.cn@gmail.com
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
hw/riscv/microchip_pfsoc.c
include/hw/riscv/microchip_pfsoc.h