xref: /openbmc/linux/drivers/soc/litex/Kconfig (revision 4f70d150)
1# SPDX-License_Identifier: GPL-2.0
2
3menu "Enable LiteX SoC Builder specific drivers"
4
5config LITEX
6	bool
7
8config LITEX_SOC_CONTROLLER
9	tristate "Enable LiteX SoC Controller driver"
10	depends on OF || COMPILE_TEST
11	select LITEX
12	help
13	  This option enables the SoC Controller Driver which verifies
14	  LiteX CSR access and provides common litex_[read|write]*
15	  accessors.
16	  All drivers that use functions from litex.h must depend on
17	  LITEX.
18
19config LITEX_SUBREG_SIZE
20	int "Size of a LiteX CSR subregister, in bytes"
21	depends on LITEX
22	range 1 4
23	default 4
24	help
25	LiteX MMIO registers (referred to as Configuration and Status
26	registers, or CSRs) are spread across adjacent 8- or 32-bit
27	subregisters, located at 32-bit aligned MMIO addresses. Use
28	this to select the appropriate size (1 or 4 bytes) matching
29	your particular LiteX build.
30
31endmenu
32