On my Rock64 neither EFI nor PSCI shutdown actually power off the board.
RK805 does the job.
Details
- Reviewers
manu peterj bz - Commits
- rGcc0b35259aed: rk805: add system poweroff support
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
sys/arm64/rockchip/rk805.c | ||
---|---|---|
859 | I just copied the predominant style in the file. | |
861 | Both should mean the same in this context. | |
868 | But this is printed (if printed at all) on a separate line. | |
939 | Yes. See the summary / commit message. |
sys/arm64/rockchip/rk805.c | ||
---|---|---|
861 | Except all the other power-off functions in the system say 'power off' because 'shutdown' often means 'while(1);' or similar loop at the end, at least historically. | |
868 | true. You can ignore this. | |
939 | Add add that here explicitly. It's important enough to not be buried in the commit message, I'd think. |
address reviews for rk805 poweroff support
Also, rename the shutdown function to poweroff so that it is not
confused with the device_shutdown method.
Always print the "powering off" message (liberate from bootverbose).
If the code still runs after issuing the power-off command then it
failed regardless of whether we had any errors or not.