os: disable initialization of i.MX8MQ platform_drv

This is a temporary workaround to not harm drivers, which aren't
converted yet to request all device resources including power and
clocks from this new platform driver.

Ref #3863
This commit is contained in:
Stefan Kalkowski 2020-08-21 17:51:48 +02:00 committed by Norman Feske
parent 224f5907b2
commit 7ba31d4447
2 changed files with 12 additions and 0 deletions

View File

@ -297,6 +297,11 @@ void Driver::Ccm::Gate::disable() { write<Ccgr>(0x0); }
Driver::Ccm::Ccm(Genode::Env & env) : env(env)
{
//FIXME: add beyond initialization code,
// when all drivers use the new platform driver
// Until now, the disabling of certain clocks will harm
// drivers not claiming it resources from here
#if 0
video_pll1_clk.enable();
/* set VIDEO PLL */
@ -417,4 +422,5 @@ Driver::Ccm::Ccm(Genode::Env & env) : env(env)
/* increase NOC clock for better DDR performance */
noc_clk_root.set_parent("system_pll1_clk");
noc_clk_root.set_rate(800000000);
#endif
}

View File

@ -92,6 +92,11 @@ struct Gpc
Gpc(Genode::Env & env) : env(env)
{
//FIXME: add beyond initialization code,
// when all drivers use the new platform driver
// Until now, the disabling of power domains will harm
// drivers not claiming it resources from here
#if 0
for (unsigned domain = MIPI; domain <= PCIE_2; domain++) {
Genode::Pd_session::Managing_system_state state;
state.r[0] = SIP_SERVICE_FUNC;
@ -99,5 +104,6 @@ struct Gpc
state.r[2] = domain;
state.r[3] = OFF;
}
#endif
};
};