浏览代码

msm-mmrm: Add Kalama mmrm platform data

Add Kalama mmrm platform data.

Change-Id: I55228b60ab3eec909c070ab20edbf4125318409c
Signed-off-by: mbao <[email protected]>
mbao 3 年之前
父节点
当前提交
3249416536
共有 1 个文件被更改,包括 12 次插入9 次删除
  1. 12 9
      driver/src/mmrm_internal.c

+ 12 - 9
driver/src/mmrm_internal.c

@@ -9,7 +9,7 @@
 #include "mmrm_internal.h"
 #include "mmrm_debug.h"
 
-static struct mmrm_common_data waipio_common_data[] = {
+static struct mmrm_common_data common_pt_data[] = {
 	{
 		.key = "qcom,mmrm_clk_threshold",
 		.value = 9000,
@@ -22,7 +22,7 @@ static struct mmrm_common_data waipio_common_data[] = {
 
 /*throttle client list is as per fdd & resource availability*/
 
-static struct mmrm_throttle_clients_data waipio_throttle_clients_data[] = {
+static struct mmrm_throttle_clients_data common_pt_throttle_clients_data[] = {
 	{
 		.domain = MMRM_CLIENT_DOMAIN_DISPLAY,
 		.id = 0x3d,
@@ -45,17 +45,21 @@ static struct mmrm_throttle_clients_data waipio_throttle_clients_data[] = {
 	},
 };
 
-static struct mmrm_platform_data waipio_data = {
-	.common_data = waipio_common_data,
-	.common_data_length = ARRAY_SIZE(waipio_common_data),
-	.throttle_clk_clients_data = waipio_throttle_clients_data,
-	.throttle_clk_clients_data_length = ARRAY_SIZE(waipio_throttle_clients_data),
+static struct mmrm_platform_data commom_pt_platform_data = {
+	.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),
 };
 
 static const struct of_device_id mmrm_dt_match[] = {
 	{
 		.compatible = "qcom,waipio-mmrm",
-		.data = &waipio_data,
+		.data = &commom_pt_platform_data,
+	},
+	{
+		.compatible = "qcom,kalama-mmrm",
+		.data = &commom_pt_platform_data,
 	},
 	{},
 };
@@ -95,7 +99,6 @@ int mmrm_init(struct mmrm_driver_data *drv_data)
 		d_mpr_e("%s: init clk mgr failed\n", __func__);
 		goto err_init_clk_mgr;
 	}
-
 	return rc;
 
 err_init_clk_mgr: