Basic support for the AXP209 found in board with A10 and A20 SoC.
It prints in dmesg what is the source of power (AC, USB, Battery) and shutdown the SoC at shutdown
Details
Details
- Reviewers
andrew - Group Reviewers
Contributor Reviews (src) - Commits
- rS295634: Add support for the AXP209 Power System Management IC. This allows boards
Apply I2C patch (review D4846)
Apply patch and build kernel
Verify that the board correctly shutdown when 'shutdown -p now'
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
sys/arm/allwinner/axp209.c | ||
---|---|---|
124–126 ↗ | (On Diff #12357) | This should move to the attach function. |
130 ↗ | (On Diff #12357) | You should return BUS_PROBE_DEFAULT here. |
137 ↗ | (On Diff #12357) | This looks like odd indentation |
143 ↗ | (On Diff #12357) | What are these magic values? |
146 ↗ | (On Diff #12357) | I think this should be under bootverbose. |
sys/arm/allwinner/files.allwinner | ||
17 ↗ | (On Diff #12357) | the sorting on this file is a little off |
Comment Actions
Only printf messages when in bootverbose.
Get our i2c addr in attach instead of probe.
Explain the bit logic to find the power source.
Comment Actions
Rename driver to axp209_pmu
As driver name ends with number it is not really pretty to have axp2090 in dmesg.
Comment Actions
Update diff because of recent -HEAD change.
Also add axp209 to A10 kernel config file.