mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-10-22 23:23:03 +02:00
i.MX93: drivers: soc: imx: lpm: ports to updated se kernel driver
ports to the updated se kernel driver. Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com> Acked-by: Jason Liu <jason.hui.liu@nxp.com>
This commit is contained in:
parent
89391c3b3d
commit
1cb1ded9c9
|
@ -6,6 +6,7 @@
|
|||
#include <linux/arm-smccc.h>
|
||||
#include <linux/clk.h>
|
||||
#include <linux/device.h>
|
||||
#include <linux/firmware/imx/se_api.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/mutex.h>
|
||||
#include <linux/of_device.h>
|
||||
|
@ -14,8 +15,6 @@
|
|||
#include <linux/suspend.h>
|
||||
#include <linux/mfd/syscon.h>
|
||||
#include <linux/regmap.h>
|
||||
#include <linux/firmware/imx/ele_base_msg.h>
|
||||
#include <linux/firmware/imx/se_fw_inc.h>
|
||||
|
||||
#define FSL_SIP_DDR_DVFS 0xc2000004
|
||||
#define DDR_DFS_GET_FSP_COUNT 0x10
|
||||
|
@ -163,9 +162,9 @@ static void sys_freq_scaling(enum mode_type new_mode)
|
|||
|
||||
if (new_mode == OD_MODE) {
|
||||
/* increase the voltage first */
|
||||
ele_voltage_change_req(se_dev, true);
|
||||
imx_se_voltage_change_req(se_dev, true);
|
||||
regulator_set_voltage_tol(soc_reg, VDD_SOC_OD_VOLTAGE, 0);
|
||||
ele_voltage_change_req(se_dev, false);
|
||||
imx_se_voltage_change_req(se_dev, false);
|
||||
|
||||
/* Increase the NIC_AXI first */
|
||||
clk_set_parent(path[NIC_AXI].clk, clks[SYS_PLL_PFD0].clk);
|
||||
|
@ -270,12 +269,12 @@ static void sys_freq_scaling(enum mode_type new_mode)
|
|||
scaling_dram_freq(new_mode == LD_MODE ? 0x1 : 0x2);
|
||||
|
||||
if (!no_od_mode)
|
||||
ele_voltage_change_req(se_dev, true);
|
||||
imx_se_voltage_change_req(se_dev, true);
|
||||
|
||||
regulator_set_voltage_tol(soc_reg, VDD_SOC_LD_VOLTAGE, 0);
|
||||
|
||||
if (!no_od_mode)
|
||||
ele_voltage_change_req(se_dev, false);
|
||||
imx_se_voltage_change_req(se_dev, false);
|
||||
|
||||
pr_info("System switching to LD/SWFFC mode...\n");
|
||||
}
|
||||
|
@ -475,7 +474,7 @@ static int imx93_lpm_probe(struct platform_device *pdev)
|
|||
if (IS_ERR(soc_reg))
|
||||
return PTR_ERR(soc_reg);
|
||||
|
||||
se_dev = get_se_dev("se-fw2");
|
||||
se_dev = imx_get_se_data_info(SOC_ID_OF_IMX93, 0);
|
||||
if (!se_dev) {
|
||||
dev_err(&pdev->dev, "get se-fw2 failed\n");
|
||||
return -ENODEV;
|
||||
|
|
Loading…
Reference in New Issue
Block a user