# SPDX-License-Identifier: GPL-2.0

if SOC_SIFIVE || SOC_STARFIVE

config SIFIVE_L2
	bool "Sifive L2 Cache controller"
	help
	  Support for the L2 cache controller on SiFive platforms.

config SIFIVE_L2_FLUSH
	bool "Support Level 2 Cache Controller Flush operation of SiFive Soc"

if SIFIVE_L2_FLUSH

config SIFIVE_L2_FLUSH_START
	hex "Level 2 Cache Flush operation start"
	default 0x80000000

config SIFIVE_L2_FLUSH_SIZE
	hex "Level 2 Cache Flush operation size"
	default 0x800000000

endif # SIFIVE_L2_FLUSH

config SIFIVE_L2_IRQ_DISABLE
	bool "Disable Level 2 Cache Controller interrupts"
	default y if SOC_STARFIVE

endif
