PD#156734: suspend: enable supspend function.
Change-Id: I20d62c97147298617cc3c11b3a0ff878bff5f034
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
compatible = "amlogic, pm";
device_name = "aml_pm";
status = "okay";
- reg = <0x0 0xff80023c 0x0 0x4>;
+ reg = <0x0 0xff8000a8 0x0 0x4
+ 0x0 0xff80023c 0x0 0x4>;
};
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 {
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");