menuconfig SUNXI_POWER
	bool "Sunxi power device support"
if SUNXI_POWER

config SUNXI_PMU
	bool "Sunxi pmu support"
	---help---
	Select this to enable support for PMU
config SUNXI_BMU
	bool "Sunxi bmu support"
	---help---
	Select this to enable support for BMU
config SUNXI_PMU_EXT
	bool "Sunxi pmu_ext support"
	---help---
	Select this to enable support for PMU_EXT
config SUNXI_PMU_GENERAL
	bool "Sunxi pmu_general support"
	---help---
	Select this to enable support for CONFIG_SUNXI_PMU_GENERAL
config SUNXI_BMU_EXT
	bool "Sunxi bmu_ext support"
	---help---
	Select this to enable support for BMU_EXT

config SUNXI_TRY_POWER_SPLY
	bool "try power sply"
	depends on SUNXI_PMU
	---help---
	Try to find for example axp806_power_sply

config AXPNULL_POWER
	bool "axpdummy support board without a pmic"
	depends on SUNXI_PMU
	---help---
	Select this for boards which do not use a PMIC.

config SUNXI_AXP152_POWER
	bool "pmu axp152 pmic support"
	depends on SUNXI_PMU
	select AXP_PMIC_BUS
	select CMD_POWEROFF
	---help---
	Say y here to enable support for the axp152 pmic found on some
	sun50iw9p1 PMU dev board

config AXP152_SUNXI_I2C_SLAVE
	hex "AXP152 I2C Slave"
	depends on R_I2C0_ENABLE && SUNXI_AXP152_POWER
	default 0
	help
	 Sunxi AXP152 I2C Slave

config AXP221_POWER_SUNXI
	bool "pmu axp221 pmic support"
	depends on SUNXI_PMU
	select AXP_PMIC_BUS
	select CMD_POWEROFF
	---help---
	Say y here to enable support for the axp221 pmic found on some
	sun8iw11p1 PMU dev board

config AXP221_SUNXI_I2C_SLAVE
	hex "AXP221 I2C Slave"
	depends on R_I2C0_ENABLE && AXP221_POWER
	default 0
	help
	 Sunxi AXP221 I2C Slave

config AXP81X_POWER
	bool "pmu axp81X pmic support"
	depends on SUNXI_PMU
	select AXP_PMIC_BUS
	select CMD_POWEROFF
	---help---
	Say y here to enable support for the axp81X pmic found on some
	sun50iw10p1 PMU/PMU dev board

config AXP81X_SUNXI_I2C_SLAVE
	hex "AXP81X I2C Slave"
	depends on R_I2C0_ENABLE && AXP81X_POWER
	default 0
	help
	 Sunxi AXP81X I2C Slave

config AXP2101_POWER
	bool "pmu/bmu axp2101 pmic support"
	depends on SUNXI_PMU
	select AXP_PMIC_BUS
	select CMD_POWEROFF
	---help---
	Say y here to enable support for the axp21 pmic found on some
	sun8iw19p1 PMU/BMU dev board

config AXP2101_SUNXI_I2C_SLAVE
	hex "AXP2101 I2C Slave"
	depends on AXP2101_POWER
	default 0
	help
	 Sunxi AXP2101 I2C Slave

config AXP2202_POWER
	bool "pmu/bmu axp2202 pmic support"
	depends on SUNXI_PMU
	select AXP_PMIC_BUS
	select CMD_POWEROFF
	---help---
	Say y here to enable support for the axp2202 pmic found on some
	sun50iw10p1 PMU/BMU dev board

config AXP2202_SUNXI_I2C_SLAVE
	hex "AXP2202 I2C Slave"
	depends on R_I2C0_ENABLE && AXP2202_POWER
	default 0
	help
	 Sunxi AXP2202 I2C Slave

config AXP858_POWER
	bool "pmu axp858 pmic support"
	depends on SUNXI_PMU
	select AXP_PMIC_BUS
	select CMD_POWEROFF
	---help---
	Say y here to enable support for the axp858 pmic found on some
	A50 PMU dev board

config AXP858_SUNXI_I2C_SLAVE
	hex "AXP858 I2C Slave"
	depends on R_I2C0_ENABLE && AXP858_POWER
	default 0
	help
	 Sunxi AXP858 I2C Slave

config AXP806_POWER
	bool "pmu axp806 pmic support"
	depends on SUNXI_PMU
	select AXP_PMIC_BUS
	select CMD_POWEROFF
	---help---
	Say y here to enable support for the axp81X pmic found on some
	sun50iw9p1 PMU dev board

config AXP806_SUNXI_I2C_SLAVE
	hex "AXP806 I2C Slave"
	depends on R_I2C0_ENABLE && AXP806_POWER
	default 0
	help
	 Sunxi AXP806 I2C Slave

config AXP1530_POWER
	bool "pmu axp1530 pmic support"
	depends on SUNXI_PMU
	select AXP_PMIC_BUS
	select CMD_POWEROFF
	---help---
	Say y here to enable support for the axp1530 pmic found on some
	sun50iw9p1 PMU dev board

config AXP1530_SUNXI_I2C_SLAVE
	hex "AXP1530 I2C Slave"
	depends on AXP1530_POWER
	depends on R_I2C0_ENABLE || I2C0_ENABLE
	default 0
	help
	 Sunxi AXP1530 I2C Slave

config AXP8191_POWER
	bool "pmu/bmu axp8191 pmic support"
	depends on SUNXI_PMU
	select AXP_PMIC_BUS
	select CMD_POWEROFF
	---help---
	Say y here to enable support for the axp8191 pmic found on some
	sun55iw3p1 PMU dev board

config AXP8191_SUNXI_I2C_SLAVE
	hex "AXP8191 I2C Slave"
	depends on R_I2C0_ENABLE && AXP8191_POWER
	default 0
	help
	 Sunxi AXP8191 I2C Slave

config AXP515_POWER
	bool "bmu axp515 pmic support"
	depends on SUNXI_BMU
	select AXP_PMIC_BUS
	select CMD_POWEROFF
	---help---
	Say y here to enable support for the axp515 pmic found on some
	A50 BMU dev board

config AXP515_SUNXI_I2C_SLAVE
	hex "AXP515 I2C Slave"
	depends on R_I2C0_ENABLE && AXP515_POWER
	default 0
	help
	 Sunxi AXP515 I2C Slave

config AXP517_POWER
	bool "bmu axp517 pmic support"
	depends on SUNXI_BMU
	select AXP_PMIC_BUS
	select CMD_POWEROFF
	---help---
	Say y here to enable support for the axp517 pmic found on some
	A50 BMU dev board

config AXP517_SUNXI_I2C_SLAVE
	hex "AXP517 I2C Slave"
	depends on R_I2C0_ENABLE && AXP517_POWER
	default 0
	help
	 Sunxi AXP517 I2C Slave

config AXP2601_POWER
	bool "bmu axp2601 pmic support"
	depends on SUNXI_BMU
	select AXP_PMIC_BUS
	select CMD_POWEROFF
	---help---
	Say y here to enable support for the single axp2601 pmic

config AXP2601_SUNXI_I2C_SLAVE
	hex "AXP2601 I2C Slave"
	depends on R_I2C0_ENABLE && AXP2601_POWER
	default 0
	help
	 Sunxi AXP2601 I2C Slave

config TCS4838_POWER
	bool "pmu tcs4838 pmic support"
	depends on SUNXI_PMU
	select AXP_PMIC_BUS
	select CMD_POWEROFF
	---help---
	Say y here to enable support for the tcs4838 pmic found on some
	sun50iw10p1 PMU dev board, with axp2202

config SY8827G_POWER
	bool "pmu sy8827g pmic support"
	depends on SUNXI_PMU
	select AXP_PMIC_BUS
	select CMD_POWEROFF
	---help---
	Say y here to enable support for the sy8827g pmic found on some
	sun50iw10p1 PMU dev board, with axp2202

config OCP2131_POWER
	bool "pmu ocp2131 pmic support"
	depends on SUNXI_PMU_GENERAL
	select AXP_PMIC_BUS
	select CMD_POWEROFF
	---help---
	Say y here to enable support for the ocp2131 pmic

config OCP2131_SUNXI_I2C_SLAVE
	hex "OCP2131 I2C Slave"
	depends on OCP2131_POWER
	default 0
	help
	 Sunxi OCP2131 I2C Slave

config AW37501_POWER
	bool "pmu aw37501 pmic support"
	depends on SUNXI_PMU_GENERAL
	select AXP_PMIC_BUS
	select CMD_POWEROFF
	---help---
	Say y here to enable support for the aw37501 pmic

config AW37501_SUNXI_I2C_SLAVE
	hex "AW37501 I2C Slave"
	depends on AW37501_POWER
	default 0
	help
	 Sunxi AW37501 I2C Slave

config ETA6973_POWER
	bool "bmu eta6973 pmic support"
	depends on SUNXI_BMU_EXT
	select AXP_PMIC_BUS
	select CMD_POWEROFF
	---help---
	Say y here to enable support for the eta6973 pmic found on some
	sun55iw3p1 PMU dev board, with axp2202

config ETA6973_SUNXI_I2C_SLAVE
	hex "ETA6973 I2C Slave"
	depends on R_I2C0_ENABLE && ETA6973_POWER
	default 0
	help
	 Sunxi ETA6973 I2C Slave

config AXP519_POWER
	bool "bmu axp519 pmic support"
	depends on SUNXI_BMU_EXT
	select AXP_PMIC_BUS
	select CMD_POWEROFF
	---help---
	Say y here to enable support for the axp519 & axp2601 pmic found on some
	sun55iw3p1 PMU dev board, with axp2202

config AXP519_SUNXI_I2C_SLAVE
	hex "AXP519 I2C Slave"
	depends on R_I2C0_ENABLE && AXP519_POWER
	default 0
	help
	 Sunxi AXP519 I2C Slave

config SUNXI_UBOOT_POWER_OFF
	bool "Sunxi uboot power off"
	---help---
	Select this to enable support for uboot power off

config SUNXI_GPIO_NOT_CTRL_BY_POWER
	default y if SUNXI_GPIO_POWER_VOL_MODE
	bool "Sunxi gpio function not control by power manager"
	---help---
	Select this to disable power manager control gpio

endif

