# SPDX-License-Identifier: GPL-2.0-only
#
# Allwinner sunXi SoC drivers
#
config SUNXI_SRAM
	bool "Allwinner SRAM controller"
	default ARCH_SUNXI
	select REGMAP_MMIO
	help
	  Say y here to enable the SRAM controller support. This
	  device is responsible on mapping the SRAM in the sunXi SoCs
	  whether to the CPU/DMA, or to the devices.

config GPU_PM_DOMAINS
	tristate "Allwinner gpu power domain"
	depends on PM
	depends on ARCH_SUN50IW10
	select PM_GENERIC_DOMAINS
	select PM_GENERIC_DOMAINS_OF
	help
	 Say y here to enable power domain support.
	 In order to meet high performance and low power requirements, a power
	 management unit is designed or saving power when gpu in low power
	 mode. The PPU is dedicated for managing the power of the GPU.

	 If unsure, say N.

config SUNXI_SID
	tristate "Allwinner sunxi sid support"
	default n
	help
	 Say y here to enable the sunxi sid support.

config SUNXI_RISCV_SUSPEND
	tristate "Allwinner sunxi riscv suspend support"
	default n
	select HARDIRQS_SW_RESEND
	select ARCH_SUSPEND_POSSIBLE

config PM_TRACE_NVMEM
	bool "trace pm suspend use nvmem"
	default n
	depends on ARM || ARM64
	select PM_TRACE


