[RFC PATCH 0/2] HSM implementation for Allwinner D1

Samuel Holland samuel at sholland.org
Thu May 5 23:57:19 PDT 2022


This series adds a minimal working HSM implementation for the Allwinner
D1 SoC. It works with the Linux sbi_cpuidle driver. Even with canned
values for entry/exit latency, I am seeing 30-45 mW reduction in power
usage at idle.

Since this is the first HSM driver submission, there is no example to
follow. I have some questions in my commit message, and some extra
commentary in the code to explain what is going on. Comments welcome!

Regards,
Samuel


Samuel Holland (2):
  lib: sbi_hsm: Call a device hook during hart resume
  platform: Add HSM implementation for Allwinner D1

 include/sbi/sbi_hsm.h        |   8 ++
 lib/sbi/sbi_hsm.c            |   8 ++
 platform/generic/objects.mk  |   1 +
 platform/generic/platform.c  |   2 +
 platform/generic/sun20i_d1.c | 225 +++++++++++++++++++++++++++++++++++
 5 files changed, 244 insertions(+)
 create mode 100644 platform/generic/sun20i_d1.c

-- 
2.35.1




More information about the opensbi mailing list