hw/arm/aspeed: Add Fuji machine type
commitfebbe308bf9477767ca92e8ed5f265b0001fcef9
authorPeter Delevoryas <pdel@fb.com>
Mon, 20 Sep 2021 06:50:59 +0000 (20 08:50 +0200)
committerCédric Le Goater <clg@kaod.org>
Mon, 20 Sep 2021 06:50:59 +0000 (20 08:50 +0200)
treeb0f0b17eb7410d3583f51ccf3178ae0a025f9099
parent5d63d0c76c403d7fafc9e83e419b2059278ed396
hw/arm/aspeed: Add Fuji machine type

This adds a new machine type "fuji-bmc" based on the following device tree:

https://github.com/torvalds/linux/blob/40cb6373b46/arch/arm/boot/dts/aspeed-bmc-facebook-fuji.dts

Most of the i2c devices are not there, they're added here:

https://github.com/facebook/openbmc/blob/fb2ed12002fb/meta-facebook/meta-fuji/recipes-utils/openbmc-utils/files/setup_i2c.sh

I tested this by building a Fuji image from Facebook's OpenBMC repo,
booting, and ssh'ing from host-to-guest.

Signed-off-by: Peter Delevoryas <pdel@fb.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
[ clg: On 32-bit hosts, lower RAM to 1G because of 2047 MB limit ]
Message-Id: <20210906133124.3674661-1-pdel@fb.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
hw/arm/aspeed.c