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)
Jan 13 2024, 5:52 PM
Unknown Object (File)
Jan 13 2024, 11:28 AM
Unknown Object (File)
Dec 22 2023, 10:34 PM
Unknown Object (File)
Dec 5 2023, 9:25 AM
Unknown Object (File)
Nov 20 2023, 4:26 AM
Unknown Object (File)
Nov 10 2023, 12:28 PM
Unknown Object (File)
Nov 8 2023, 9:14 PM
Unknown Object (File)
Oct 11 2023, 3:14 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 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.