mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
PM / devfreq: rockchip_bus: add support for rk3568
Add support for rk3568 and init opp-table with rockchip_init_opp_table() so that rockchip_bus can support pvtm and leakage. Change-Id: Ief17dba8264906f987d4dac93b2e7344c98bc8fa Signed-off-by: Liang Chen <cl@rock-chips.com>
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#include <linux/rockchip/rockchip_sip.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/string.h>
|
||||
#include <soc/rockchip/rockchip_opp_select.h>
|
||||
|
||||
#define CLUSTER0 0
|
||||
#define CLUSTER1 1
|
||||
@@ -163,7 +164,7 @@ static int rockchip_bus_power_control_init(struct rockchip_bus *bus)
|
||||
return PTR_ERR(bus->regulator);
|
||||
}
|
||||
|
||||
ret = dev_pm_opp_of_add_table(dev);
|
||||
ret = rockchip_init_opp_table(dev, NULL, "leakage", "pvtm");
|
||||
if (ret < 0) {
|
||||
dev_err(dev, "failed to get OPP table\n");
|
||||
return ret;
|
||||
@@ -446,6 +447,7 @@ static const struct of_device_id rockchip_busfreq_of_match[] = {
|
||||
{ .compatible = "rockchip,rk3288-bus", },
|
||||
{ .compatible = "rockchip,rk3368-bus", },
|
||||
{ .compatible = "rockchip,rk3399-bus", },
|
||||
{ .compatible = "rockchip,rk3568-bus", },
|
||||
{ .compatible = "rockchip,rv1126-bus", },
|
||||
{ },
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user