pmc: syscon@0x1fe27000 {
compatible = "syscon";
reg = <0x0 0x1fe27000 0x0 0x58>;
};
reboot {
compatible ="syscon-reboot";
regmap = <&pmc>;
offset = <0x30>;
mask = <0x1>;
};
poweroff {
compatible ="syscon-poweroff";
regmap = <&pmc>;
offset = <0x14>;
mask = <0x3c00>;
value = <0x3c00>;
};
dts 描述参考如上
工作流程是对 PM1_CNT : Power Management 1 Control Register 寄存器进行置位,使其进入 s5 状态, acpi 里面 s5 是关机
pmc: syscon@0x1fe27000 {
compatible = "syscon";
reg = <0x0 0x1fe27000 0x0 0x58>;
};
reboot {
compatible ="syscon-reboot";
regmap = <&pmc>;
offset = <0x30>;
mask = <0x1>;
};
poweroff {
compatible ="syscon-poweroff";
regmap = <&pmc>;
offset = <0x14>;
mask = <0x3c00>;
value = <0x3c00>;
};
dts 描述参考如上
工作流程是对 PM1_CNT : Power Management 1 Control Register 寄存器进行置位,使其进入 s5 状态, acpi 里面 s5 是关机
1
举报