SUSPEND: enable supspend function.
authorHong Guo <hong.guo@amlogic.com>
Thu, 8 Mar 2018 05:32:10 +0000 (13:32 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Fri, 9 Mar 2018 06:34:42 +0000 (22:34 -0800)
PD#156734: suspend: enable supspend function.

Change-Id: I20d62c97147298617cc3c11b3a0ff878bff5f034
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
arch/arm64/boot/dts/amlogic/mesonaxg.dtsi
arch/arm64/boot/dts/amlogic/mesong12a.dtsi
drivers/amlogic/pm/gx_pm.c

index 97fb351..f28d8e5 100644 (file)
                compatible = "amlogic, pm";
                device_name = "aml_pm";
                status = "okay";
-               reg = <0x0 0xff80023c 0x0 0x4>;
+               reg = <0x0 0xff8000a8 0x0 0x4
+                       0x0 0xff80023c 0x0 0x4>;
        };
 
 
index 370b5ab..f1818f1 100644 (file)
 
        meson_suspend:pm {
                compatible = "amlogic, pm";
-               status = "disabled";
+               status = "okay";
                device_name = "aml_pm";
-               reg = <0x0 0xff80023c 0x0 0x4>;
+               reg = <0x0 0xff8000a8 0x0 0x4
+                       0x0 0xff80023c 0x0 0x4>;
        };
 
        secmon {
index f4589be..817b861 100644 (file)
@@ -243,7 +243,6 @@ static int __init meson_pm_probe(struct platform_device *pdev)
 
        debug_reg = of_iomap(pdev->dev.of_node, 0);
        exit_reg = of_iomap(pdev->dev.of_node, 1);
-       writel(0x0, debug_reg);
        device_create_file(&pdev->dev, &dev_attr_suspend_reason);
        device_create_file(&pdev->dev, &dev_attr_time_out);
        device_rename(&pdev->dev, "aml_pm");