hw/vmapple/cfg: Introduce vmapple cfg region
authorAlexander Graf <graf@amazon.com>
Wed, 14 Jun 2023 22:57:32 +0000 (22:57 +0000)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 4 Mar 2025 13:45:34 +0000 (14:45 +0100)
commit33b54462067331c75fe180f809d50efe9659895a
tree21ab42fabe8a3559fd3f095525f08d9651608343
parent0179bb3c48cfb915da64305b3cfbc110766d4078
hw/vmapple/cfg: Introduce vmapple cfg region

Instead of device tree or other more standardized means, VMApple passes
platform configuration to the first stage boot loader in a binary encoded
format that resides at a dedicated RAM region in physical address space.

This patch models this configuration space as a qdev device which we can
then map at the fixed location in the address space. That way, we can
influence and annotate all configuration fields easily.

Signed-off-by: Alexander Graf <graf@amazon.com>
Signed-off-by: Phil Dennis-Jordan <phil@philjordan.eu>
Reviewed-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Tested-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Message-ID: <20241223221645.29911-12-phil@philjordan.eu>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/vmapple/Kconfig
hw/vmapple/cfg.c [new file with mode: 0644]
hw/vmapple/meson.build
include/hw/vmapple/vmapple.h