sculpt_manager: allow decoupling fb from first cpu

This commit allows for expressing the intent to start the fb driver
on a different CPU.

Issue #5378.
This commit is contained in:
Josef Söntgen 2024-11-15 11:02:17 +01:00 committed by Christian Helmuth
parent f72fdf77ed
commit fe008e0884
3 changed files with 8 additions and 1 deletions

View File

@ -210,6 +210,8 @@ struct Sculpt::Main : Input_event_handler,
.mmc = false, .mmc = false,
.modem = false, /* depends on presence of battery */ .modem = false, /* depends on presence of battery */
.nic = false, .nic = false,
.fb_on_dedicated_cpu = false
}; };
Drivers _drivers { _env, _child_states, *this, *this }; Drivers _drivers { _env, _child_states, *this, *this };

View File

@ -301,6 +301,8 @@ struct Sculpt::Main : Input_event_handler,
.mmc = _mnt_reform || _mnt_pocket, .mmc = _mnt_reform || _mnt_pocket,
.modem = false, .modem = false,
.nic = _mnt_reform || _mnt_pocket, .nic = _mnt_reform || _mnt_pocket,
.fb_on_dedicated_cpu = false
}; };
Drivers _drivers { _env, _child_states, *this, *this }; Drivers _drivers { _env, _child_states, *this, *this };

View File

@ -95,11 +95,14 @@ struct Sculpt::Board_info
{ {
bool fb, touch, wifi, usb, mmc, modem, nic; bool fb, touch, wifi, usb, mmc, modem, nic;
bool fb_on_dedicated_cpu;
bool operator != (Soc const &other) const bool operator != (Soc const &other) const
{ {
return (fb != other.fb) || (touch != other.touch) return (fb != other.fb) || (touch != other.touch)
|| (wifi != other.wifi) || (usb != other.usb) || (wifi != other.wifi) || (usb != other.usb)
|| (mmc != other.mmc) || (modem != other.modem); || (mmc != other.mmc) || (modem != other.modem)
|| (fb_on_dedicated_cpu != other.fb_on_dedicated_cpu);
} }
} soc; } soc;