mirror of
https://github.com/armbian/linux.git
synced 2026-01-06 10:13:00 -08:00
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:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user