[U-Boot] [PATCH 0/2] sunxi: power: Add AXP806 and AXP808 support

Rask Ingemann Lambertsen rask at formelder.dk
Sun Feb 26 18:59:47 UTC 2017


The X-Powers AXP806 and AXP808 PMICs are usually found on boards featuring
the Allwinner A80 ARM SoC. The so far supported features are the same on the
two chips. A lack of data sheets to compare makes it impossible to know for
sure what the differences are, but at least two of the power-up voltages
(bldo2 and dcdce) differ.

Patch 1 adds support for the regulators and also sets up the master/slave
mode addressing to match the way it is wired on the board. This is necessary
for the PMIC to respond to register accesses and hopefully solves the AXP806
problems for the Linux 4.9 and 4.10 kernels on Cubieboard4 and A80 Optimus
boards, where the AXP806 is wired for slave mode addressing.

Patch 2 goes on top of "ARM: sunxi: Add defconfig for Sunchip CX-A99". It
updates the defconfig for the Sunchip CX-A99 board. Now that the CPU core
voltage can be controlled, the board is configured for 1200 MHz at 1020 mV,
which is the maximum according to the vendor's sys_config.fex file, instead
of the previous 1008 MHz at 900 mV.

Rask Ingemann Lambertsen (2):
  sunxi: power: Add AXP806 and AXP808 support
  sunxi: defconfig: Sunchip CX-A99: Raise CPU voltage and clock frequency

 arch/arm/include/asm/arch-sunxi/pmic_bus.h |   4 +
 arch/arm/mach-sunxi/Makefile               |   1 +
 arch/arm/mach-sunxi/pmic_bus.c             | 107 ++++++++++---
 board/sunxi/board.c                        |  20 +++
 configs/Sunchip_CX-A99_defconfig           |   2 +
 drivers/power/Kconfig                      | 226 +++++++++++++++++++++++++++-
 drivers/power/Makefile                     |   1 +
 drivers/power/axp806.c                     | 231 +++++++++++++++++++++++++++++
 include/axp806.h                           |  50 +++++++
 include/axp_pmic.h                         |  13 ++
 10 files changed, 625 insertions(+), 30 deletions(-)
 create mode 100644 drivers/power/axp806.c
 create mode 100644 include/axp806.h

-- 
2.10.2


More information about the U-Boot mailing list