PM / devfreq: adjust opp-table by board IR-Drop

Change-Id: I94280b3f4a122961c0201cf9f8fbf5dc34058581
Signed-off-by: Liang Chen <cl@rock-chips.com>
This commit is contained in:
Liang Chen
2018-03-15 15:20:00 +08:00
committed by Tao Huang
parent 3ccca07e3f
commit 1641eb4fc2
2 changed files with 3 additions and 0 deletions

View File

@@ -2761,6 +2761,7 @@ static int rockchip_dmcfreq_probe(struct platform_device *pdev)
dev_err(dev, "Invalid operating-points in device tree.\n");
return -EINVAL;
}
rockchip_adjust_opp_by_irdrop(dev);
if (rockchip_dmcfreq_init_freq_table(dev, devp))
return -EFAULT;

View File

@@ -84,6 +84,7 @@
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 13, 0))
#include <linux/pm_opp.h>
#include <soc/rockchip/rockchip_opp_select.h>
#else
#include <linux/opp.h>
#endif
@@ -3059,6 +3060,7 @@ static int power_control_init(struct platform_device *pdev)
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0)) \
|| defined(LSK_OPPV2_BACKPORT)
err = dev_pm_opp_of_add_table(kbdev->dev);
rockchip_adjust_opp_by_irdrop(kbdev->dev);
#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 7, 0))
err = of_init_opp_table(kbdev->dev);
#else