Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement CPPC in ACPI #50

Open
mariobalanica opened this issue Jul 26, 2023 · 0 comments
Open

Implement CPPC in ACPI #50

mariobalanica opened this issue Jul 26, 2023 · 0 comments
Labels
devinfo/acpi ACPI-related request type/enhancement New feature or request

Comments

@mariobalanica
Copy link
Collaborator

This is quite tricky to achieve as it needs to control the PMIC and voltage regulators behind SPI and I2C respectively.

Since doing this entirely in AML is crazy, all OSes that wish to support CPPC would also need to have I2C and SPI bus drivers, and most importantly bind to the ACPI device + also handle accesses from AML via the standard I2cSerialBus, SpiSerialBus resources.

Not great.

Fortunately, Rockchip have started open sourcing their ATF implementation, giving us the opportunity to abstract all of the power stuff there behind an SMC call. Much better :)

RK3588 has a Cortex-M0 MCU too, but that is likely already running some other power management code.

@mariobalanica mariobalanica added type/enhancement New feature or request devinfo/acpi ACPI-related request labels Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devinfo/acpi ACPI-related request type/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant