162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
262306a36Sopenharmony_ci
362306a36Sopenharmony_ciif ARCH_APPLE || COMPILE_TEST
462306a36Sopenharmony_ci
562306a36Sopenharmony_cimenu "Apple SoC drivers"
662306a36Sopenharmony_ci
762306a36Sopenharmony_ciconfig APPLE_PMGR_PWRSTATE
862306a36Sopenharmony_ci	bool "Apple SoC PMGR power state control"
962306a36Sopenharmony_ci	depends on PM
1062306a36Sopenharmony_ci	select REGMAP
1162306a36Sopenharmony_ci	select MFD_SYSCON
1262306a36Sopenharmony_ci	select PM_GENERIC_DOMAINS
1362306a36Sopenharmony_ci	select RESET_CONTROLLER
1462306a36Sopenharmony_ci	default ARCH_APPLE
1562306a36Sopenharmony_ci	help
1662306a36Sopenharmony_ci	  The PMGR block in Apple SoCs provides high-level power state
1762306a36Sopenharmony_ci	  controls for SoC devices. This driver manages them through the
1862306a36Sopenharmony_ci	  generic power domain framework, and also provides reset support.
1962306a36Sopenharmony_ci
2062306a36Sopenharmony_ciconfig APPLE_RTKIT
2162306a36Sopenharmony_ci	tristate "Apple RTKit co-processor IPC protocol"
2262306a36Sopenharmony_ci	depends on MAILBOX
2362306a36Sopenharmony_ci	depends on ARCH_APPLE || COMPILE_TEST
2462306a36Sopenharmony_ci	default ARCH_APPLE
2562306a36Sopenharmony_ci	help
2662306a36Sopenharmony_ci	  Apple SoCs such as the M1 come with various co-processors running
2762306a36Sopenharmony_ci	  their proprietary RTKit operating system. This option enables support
2862306a36Sopenharmony_ci	  for the protocol library used to communicate with those. It is used
2962306a36Sopenharmony_ci	  by various client drivers.
3062306a36Sopenharmony_ci
3162306a36Sopenharmony_ci	  Say 'y' here if you have an Apple SoC.
3262306a36Sopenharmony_ci
3362306a36Sopenharmony_ciconfig APPLE_SART
3462306a36Sopenharmony_ci	tristate "Apple SART DMA address filter"
3562306a36Sopenharmony_ci	depends on ARCH_APPLE || COMPILE_TEST
3662306a36Sopenharmony_ci	default ARCH_APPLE
3762306a36Sopenharmony_ci	help
3862306a36Sopenharmony_ci	  Apple SART is a simple DMA address filter used on Apple SoCs such
3962306a36Sopenharmony_ci	  as the M1. It is usually required for the NVMe coprocessor which does
4062306a36Sopenharmony_ci	  not use a proper IOMMU.
4162306a36Sopenharmony_ci
4262306a36Sopenharmony_ci	  Say 'y' here if you have an Apple SoC.
4362306a36Sopenharmony_ci
4462306a36Sopenharmony_ciendmenu
4562306a36Sopenharmony_ci
4662306a36Sopenharmony_ciendif
47