Page MenuHomeFreeBSD

Expose AXP803 related sensors values via sysctl
ClosedPublic

Authored by ganbold on Feb 11 2019, 12:57 PM.
Tags
None
Referenced Files
F168699236: D19145.id53776.diff
Sat, Aug 29, 5:03 PM
F168637159: D19145.diff
Sat, Aug 29, 9:19 AM
F168554799: D19145.diff
Sat, Aug 29, 12:19 AM
F168521938: D19145.id53776.diff
Fri, Aug 28, 8:00 PM
Unknown Object (File)
Sun, Aug 23, 11:36 PM
Unknown Object (File)
Fri, Aug 21, 7:12 AM
Unknown Object (File)
Mon, Aug 10, 10:53 AM
Unknown Object (File)
Mon, Aug 10, 10:52 AM
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 22430

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.