sculpt: add MNT Pocket Reform

Fix genodelabs/genode#5360.
This commit is contained in:
Josef Söntgen 2024-10-11 13:30:14 +02:00 committed by Christian Helmuth
parent fa267ecbb3
commit 8d76eebf93
2 changed files with 24 additions and 7 deletions

View File

@ -15,6 +15,7 @@ proc assert_platform_supported { } {
if {[have_board pc]} return if {[have_board pc]} return
if {[have_board imx8q_evk]} return if {[have_board imx8q_evk]} return
if {[have_board mnt_reform2]} return if {[have_board mnt_reform2]} return
if {[have_board mnt_pocket]} return
if {[have_board linux]} return if {[have_board linux]} return
if {[have_board pinephone]} return if {[have_board pinephone]} return
@ -195,6 +196,21 @@ proc driver_routes { } {
<service name="I2c"> <child name="drivers"/> </service> <service name="I2c"> <child name="drivers"/> </service>
} }
set result(mnt_pocket) {
<service name="ROM" label="fb"> <parent label="imx8mq_fb"/> </service>
<service name="ROM" label="fb.dtb"> <parent label="imx8mq_fb-mnt_pocket.dtb"/> </service>
<service name="ROM" label="mmc"> <parent label="imx8mq_sd_card"/> </service>
<service name="ROM" label="mmc.dtb"> <parent label="imx8mq_sd_card-mnt_pocket.dtb"/> </service>
<service name="ROM" label="nic"> <parent label="stmmac_nic"/> </service>
<service name="ROM" label="nic.dtb"> <parent label="stmmac_nic-mnt_pocket.dtb"/> </service>
<service name="ROM" label="usb"> <parent label="imx8m_usb_host"/> </service>
<service name="ROM" label="usb.dtb"> <parent label="imx8m_usb_host-mnt_pocket.dtb"/> </service>
<service name="ROM" label="wifi.dtb"> <parent label="wifi-mnt_pocket.dtb"/> </service>
<service name="ROM" label="wifi.lib.so"> <parent label="imx8mp_qcacld2_wifi.lib.so"/> </service>
<service name="ROM" label="wifi_firmware.tar"> <parent label="imx8mp_qcacld2_wifi_firmware.tar"/> </service>
<service name="I2c"> <child name="drivers"/> </service>
}
set result(imx8q_evk) { set result(imx8q_evk) {
<service name="ROM" label="nic"> <parent label="fec_nic"/> </service> <service name="ROM" label="nic"> <parent label="fec_nic"/> </service>
<service name="ROM" label="nic.dtb"> <parent label="fec_nic-imx8q_evk.dtb"/> </service> <service name="ROM" label="nic.dtb"> <parent label="fec_nic-imx8q_evk.dtb"/> </service>

View File

@ -88,6 +88,7 @@ struct Sculpt::Main : Input_event_handler,
Build_info::from_xml(Attached_rom_dataspace(_env, "build_info").xml()); Build_info::from_xml(Attached_rom_dataspace(_env, "build_info").xml());
bool const _mnt_reform = (_build_info.board == "mnt_reform2"); bool const _mnt_reform = (_build_info.board == "mnt_reform2");
bool const _mnt_pocket = (_build_info.board == "mnt_pocket");
Registry<Child_state> _child_states { }; Registry<Child_state> _child_states { };
@ -279,13 +280,13 @@ struct Sculpt::Main : Input_event_handler,
**********************/ **********************/
Board_info::Soc _soc { Board_info::Soc _soc {
.fb = _mnt_reform, .fb = _mnt_reform || _mnt_pocket,
.touch = false, .touch = false,
.wifi = false, /* initialized via PCI */ .wifi = _mnt_pocket, /* initialized via PCI on Reform */
.usb = _mnt_reform, .usb = _mnt_reform || _mnt_pocket,
.mmc = _mnt_reform, .mmc = _mnt_reform || _mnt_pocket,
.modem = false, .modem = false,
.nic = _mnt_reform, .nic = _mnt_reform || _mnt_pocket,
}; };
Drivers _drivers { _env, _child_states, *this, *this }; Drivers _drivers { _env, _child_states, *this, *this };
@ -293,10 +294,10 @@ struct Sculpt::Main : Input_event_handler,
Drivers::Resumed _resumed = _drivers.resumed(); Drivers::Resumed _resumed = _drivers.resumed();
Board_info::Options _driver_options { Board_info::Options _driver_options {
.display = _mnt_reform, .display = _mnt_reform || _mnt_pocket,
.usb_net = false, .usb_net = false,
.nic = false, .nic = false,
.wifi = false, .wifi = _mnt_pocket,
.suppress {}, .suppress {},
.suspending = false, .suspending = false,
}; };