#
# Copyright (C) 2020 MediaTek Inc. All rights reserved.
# Author: Weijie Gao <weijie.gao@mediatek.com>
#
# SPDX-License-Identifier: GPL-2.0
#

config MTK_SPI_NAND
	tristate "MediaTek SPI NAND flash controller driver"
	depends on !MTD_SPI_NAND
	help
	  This option enables access to SPI-NAND flashes through the
	  MediaTek SPI NAND Flash Controller

config MTK_SPI_NAND_MTD
	tristate "MTD support for MediaTek SPI NAND flash controller"
	depends on DM_MTD
	depends on MTK_SPI_NAND
	help
	  This option enables access to SPI-NAND flashes through the
	  MTD interface of MediaTek SPI NAND Flash Controller

config SPL_MTK_SPI_NAND
	tristate "SPL support for MediaTek SPI NAND flash controller"
	depends on MTK_SPI_NAND
	help
	  This option enables access to SPI-NAND flashes in the SPL stage
