From 7ba31d44478603a0fc77394e7908268ed6af5566 Mon Sep 17 00:00:00 2001 From: Stefan Kalkowski Date: Fri, 21 Aug 2020 17:51:48 +0200 Subject: [PATCH] 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 --- repos/os/src/drivers/platform/imx8mq/ccm.cc | 6 ++++++ repos/os/src/drivers/platform/imx8mq/gpc.h | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/repos/os/src/drivers/platform/imx8mq/ccm.cc b/repos/os/src/drivers/platform/imx8mq/ccm.cc index dd40728ec7..881afbeabd 100644 --- a/repos/os/src/drivers/platform/imx8mq/ccm.cc +++ b/repos/os/src/drivers/platform/imx8mq/ccm.cc @@ -297,6 +297,11 @@ void Driver::Ccm::Gate::disable() { write(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 } diff --git a/repos/os/src/drivers/platform/imx8mq/gpc.h b/repos/os/src/drivers/platform/imx8mq/gpc.h index 94efecb3b1..cb0ef5ffee 100644 --- a/repos/os/src/drivers/platform/imx8mq/gpc.h +++ b/repos/os/src/drivers/platform/imx8mq/gpc.h @@ -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 }; };