summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2022-10-17 15:49:29 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2022-10-18 10:56:29 +0200
commit924101c81d6ec2f1b351a073f2c96eec65295b17 (patch)
treee7fa42372a365823f00998415345e26bddb1ec00 /include
parent9011bf7b7fe8109b39e458c7522c544062a8bcff (diff)
downloadbarebox-924101c81d6ec2f1b351a073f2c96eec65295b17.tar.gz
barebox-924101c81d6ec2f1b351a073f2c96eec65295b17.tar.xz
ARM: i.MX8MP: add feature controller support for Plus
Plus has lots of peripherals that need be disabled, depending on fusebox settings. Some of these are already described in the upstream device tree, so reference them in the barebox DT and add the necessary glue for disabling them like we already do on i.MX8MM/N. We omit CPU fusing for now. These are handled by tester3 and would need a bit more rework. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20221017134929.622022-4-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/dt-bindings/features/imx8m.h4
-rw-r--r--include/soc/imx8m/featctrl.h3
2 files changed, 6 insertions, 1 deletions
diff --git a/include/dt-bindings/features/imx8m.h b/include/dt-bindings/features/imx8m.h
index 8de69ba28b..e1ed40413c 100644
--- a/include/dt-bindings/features/imx8m.h
+++ b/include/dt-bindings/features/imx8m.h
@@ -8,7 +8,9 @@
#define IMX8M_FEAT_CPU_QUAD 2
#define IMX8M_FEAT_VPU 3
#define IMX8M_FEAT_GPU 4
+#define IMX8M_FEAT_MIPI_DSI 5
+#define IMX8M_FEAT_ISP 6
-#define IMX8M_FEAT_END 5
+#define IMX8M_FEAT_END 7
#endif
diff --git a/include/soc/imx8m/featctrl.h b/include/soc/imx8m/featctrl.h
index af94995a91..b3eb1a56a5 100644
--- a/include/soc/imx8m/featctrl.h
+++ b/include/soc/imx8m/featctrl.h
@@ -9,6 +9,9 @@
struct imx8m_featctrl_data {
u32 vpu_bitmask;
u32 gpu_bitmask;
+ u32 mipi_dsi_bitmask;
+ u32 isp_bitmask;
+ bool check_cpus;
};
#ifdef CONFIG_IMX8M_FEATCTRL