[Openpvrsgx-devgroup] [PATCH 4/4] pvr-drv: Add macros for am4

Tony Lindgren tony at atomide.com
Fri Nov 15 02:05:13 CET 2019


Add macros for am4.

Signed-off-by: Tony Lindgren <tony at atomide.com>
---
 drivers/staging/pvr/pvr-drv.c |  1 +
 drivers/staging/pvr/pvr-drv.h | 10 ++++++++++
 2 files changed, 11 insertions(+)

diff --git a/drivers/staging/pvr/pvr-drv.c b/drivers/staging/pvr/pvr-drv.c
--- a/drivers/staging/pvr/pvr-drv.c
+++ b/drivers/staging/pvr/pvr-drv.c
@@ -226,6 +226,7 @@ static const struct of_device_id pvr_ids[] = {
 	OMAP3630_SGX530_125("ti,omap3-sgx530-125", &pvr_omap3)
 	AM3517_SGX530_125("ti,am3517-sgx530-125", &pvr_omap3)
 	AM335X_SGX530_125("ti,am3352-sgx530-125", &pvr_omap3)
+	AM4_SGX530_125("ti,am4-sgx530-125", &pvr_omap3)
 	OMAP4_SGX540_120("ti,omap4-sgx540-120", &pvr_omap4)
 	OMAP4470_SGX544_112("ti,omap4-sgx544-112", &pvr_omap4470)
 	OMAP5_SGX544_116("ti,omap5-sgx544-116", &pvr_omap5)
diff --git a/drivers/staging/pvr/pvr-drv.h b/drivers/staging/pvr/pvr-drv.h
--- a/drivers/staging/pvr/pvr-drv.h
+++ b/drivers/staging/pvr/pvr-drv.h
@@ -85,6 +85,16 @@ void PVRSRVDriverShutdown(struct platform_device *pdev);
 #define AM335X_SGX530_125(comp, dat)
 #endif
 
+#ifdef ti_am4_sgx530_125
+#define AM4_SGX530_125(comp, dat)	\
+	{				\
+		.compatible = comp,	\
+		.data = dat,		\
+	},
+#else
+#define AM4_SGX530_125(comp, dat)
+#endif
+
 #ifdef ti_omap4_sgx540_120
 #define OMAP4_SGX540_120(comp, dat)	\
 	{				\
-- 
2.23.0


More information about the openpvrsgx-devgroup mailing list