summaryrefslogtreecommitdiff
path: root/drivers/soc/litex/Kconfig
blob: e7011d665b1519d0708103f2888114c0c88e3f33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# SPDX-License_Identifier: GPL-2.0

menu "Enable LiteX SoC Builder specific drivers"

config LITEX
	bool

config LITEX_SOC_CONTROLLER
	tristate "Enable LiteX SoC Controller driver"
	depends on OF || COMPILE_TEST
	depends on HAS_IOMEM
	select LITEX
	help
	  This option enables the SoC Controller Driver which verifies
	  LiteX CSR access and provides common litex_[read|write]*
	  accessors.
	  All drivers that use functions from litex.h must depend on
	  LITEX.

config LITEX_SUBREG_SIZE
	int "Size of a LiteX CSR subregister, in bytes"
	depends on LITEX
	range 1 4
	default 4
	help
	LiteX MMIO registers (referred to as Configuration and Status
	registers, or CSRs) are spread across adjacent 8- or 32-bit
	subregisters, located at 32-bit aligned MMIO addresses. Use
	this to select the appropriate size (1 or 4 bytes) matching
	your particular LiteX build.

endmenu