crust-firmware / crust

SCP (power management) firmware for sunxi SoCs
Other
150 stars 34 forks source link

Allwinner D1 #217

Open sarahspock opened 10 months ago

sarahspock commented 10 months ago

Feature Request

Allwinner D1 Support

I would like advanced power management on Risc-v Allwinner D1 so that I can use Linux phone with it . This s what ships with the clockwork pi upmc

smaeul commented 10 months ago

Allwinner D1 already has CPU suspend support implemented in OpenSBI. Some additional firmware might still be required for DRAM suspend, since that code must run out of SRAM, but it may be possible to integrate that with OpenSBI as well. So crust may not be needed on D1.

If crust does need to be ported, then it would implement RPMI (RISC-V's SCMI copycat) instead of SCPI. And it would need to run on the HiFi4 DSP, so it would need to be ported to the Xtensa architecture first.

sarahspock commented 10 months ago

Hi thank you for responding. Do you know if the OpenSBI comes with most distros or alternatively is a firmware that ships with the kernel (sorry not super knowledgable here)? I noticed that the device has pretty decent battery life already . I dont think DRAM suspend works though.

smaeul commented 10 months ago

Yes, OpenSBI is part of the system firmware, and gets shipped with U-Boot, so it is used by every distro.