瀏覽代碼

mmrm-driver: Add mmrm support for cliffs

Add mmrm support for cliffs.

Change-Id: I1433e8593476779d9d2bd2b34013c06824f1d212
Signed-off-by: Vedang Nagar <[email protected]>
Vedang Nagar 1 年之前
父節點
當前提交
a8b459b86e
共有 1 個文件被更改,包括 41 次插入7 次删除
  1. 41 7
      driver/src/mmrm_internal.c

+ 41 - 7
driver/src/mmrm_internal.c

@@ -19,7 +19,7 @@ static struct mmrm_common_data common_pt_data[] = {
 
 /*throttle client list is as per fdd & resource availability*/
 
-static struct mmrm_throttle_clients_data common_pt_throttle_clients_data[] = {
+static struct mmrm_throttle_clients_data common_pt_throttle_clients_data_pineapple[] = {
 	{
 		.domain = MMRM_CLIENT_DOMAIN_DISPLAY,
 		.id = 0x3e,
@@ -42,25 +42,59 @@ static struct mmrm_throttle_clients_data common_pt_throttle_clients_data[] = {
 	},
 };
 
-static struct mmrm_platform_data commom_pt_platform_data = {
+static struct mmrm_throttle_clients_data common_pt_throttle_clients_data_cliffs[] = {
+	{
+		.domain = MMRM_CLIENT_DOMAIN_DISPLAY,
+		.id = 0x3e,
+	},
+	{
+		.domain = MMRM_CLIENT_DOMAIN_VIDEO,
+		.id = 0x03,
+	},
+	{
+		.domain = MMRM_CLIENT_DOMAIN_CAMERA,
+		.id = 0x62,
+	},
+	{
+		.domain = MMRM_CLIENT_DOMAIN_CVP,
+		.id = 0x0a,
+	},
+	{
+		.domain = MMRM_CLIENT_DOMAIN_CAMERA,
+		.id = 0x17,
+	},
+};
+
+static struct mmrm_platform_data commom_pt_platform_data_pineapple = {
 	.common_data = common_pt_data,
 	.common_data_length = ARRAY_SIZE(common_pt_data),
-	.throttle_clk_clients_data = common_pt_throttle_clients_data,
-	.throttle_clk_clients_data_length = ARRAY_SIZE(common_pt_throttle_clients_data),
+	.throttle_clk_clients_data = common_pt_throttle_clients_data_pineapple,
+	.throttle_clk_clients_data_length = ARRAY_SIZE(common_pt_throttle_clients_data_pineapple),
+};
+
+static struct mmrm_platform_data commom_pt_platform_data_cliffs = {
+	.common_data = common_pt_data,
+	.common_data_length = ARRAY_SIZE(common_pt_data),
+	.throttle_clk_clients_data = common_pt_throttle_clients_data_cliffs,
+	.throttle_clk_clients_data_length = ARRAY_SIZE(common_pt_throttle_clients_data_cliffs),
 };
 
 static const struct of_device_id mmrm_dt_match[] = {
 	{
 		.compatible = "qcom,waipio-mmrm",
-		.data = &commom_pt_platform_data,
+		.data = &commom_pt_platform_data_pineapple,
 	},
 	{
 		.compatible = "qcom,kalama-mmrm",
-		.data = &commom_pt_platform_data,
+		.data = &commom_pt_platform_data_pineapple,
 	},
 	{
 		.compatible = "qcom,pineapple-mmrm",
-		.data = &commom_pt_platform_data,
+		.data = &commom_pt_platform_data_pineapple,
+	},
+	{
+		.compatible = "qcom,cliffs-mmrm",
+		.data = &commom_pt_platform_data_cliffs,
 	},
 	{},
 };