Page MenuHomeFreeBSD

Expose AXP803 related sensors values via sysctl
ClosedPublic

Authored by ganbold on Feb 11 2019, 12:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 23 2024, 8:58 PM
Unknown Object (File)
Nov 23 2024, 3:08 AM
Unknown Object (File)
Nov 22 2024, 6:31 PM
Unknown Object (File)
Nov 22 2024, 12:59 PM
Unknown Object (File)
Nov 6 2024, 10:22 AM
Unknown Object (File)
Nov 6 2024, 12:59 AM
Unknown Object (File)
Nov 6 2024, 12:59 AM
Unknown Object (File)
Nov 2 2024, 6:43 PM
Subscribers

Details

Summary

Add sensors support for AXP803/AXP813. Sensor values such as
battery charging, charge state, voltage, charging current, discharging current,
battery capacity etc. can be obtained via sysctl.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 22433

Event Timeline

sys/arm/allwinner/axp81x.c
649

has_battery and has_fuel_gauge is always true. Don't think those variable are necessary.

677

Does AXP813 and AXP803 differs in battery management?
I remember that there is a few subtle different between them but I can't remember what.
If not just adding one config would be enough.

This revision is now accepted and ready to land.Feb 11 2019, 2:23 PM
This revision was automatically updated to reflect the committed changes.