aspeed: fby35: Add a bootrom for the BMC
commit9cd8c41d7a41b12f36e921ba03057cb9a688d396
authorCédric Le Goater <clg@kaod.org>
Thu, 14 Jul 2022 14:24:38 +0000 (14 16:24 +0200)
committerCédric Le Goater <clg@kaod.org>
Thu, 14 Jul 2022 14:24:38 +0000 (14 16:24 +0200)
tree27ed78d294510fd7ba624c8b23a54a95eeda1804
parent778e14cc5cd589d45b5f8884b029d463c20226bc
aspeed: fby35: Add a bootrom for the BMC

The BMC boots from the first flash device by fetching instructions
from the flash contents. Add an alias region on 0x0 for this
purpose. There are currently performance issues with this method (TBs
being flushed too often), so as a faster alternative, install the
flash contents as a ROM in the BMC memory space.

See commit 1a15311a12fa ("hw/arm/aspeed: add a 'execute-in-place'
property to boot directly from CE0")

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Peter Delevoryas <peter@pjd.dev>
[ clg: blk_pread() fixes ]
Message-Id: <20220705191400.41632-8-peter@pjd.dev>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
hw/arm/fby35.c