1 # SPDX-License_Identifier: GPL-2.0
3 menu "Enable LiteX SoC Builder specific drivers"
8 config LITEX_SOC_CONTROLLER
9 tristate "Enable LiteX SoC Controller driver"
10 depends on OF || COMPILE_TEST
14 This option enables the SoC Controller Driver which verifies
15 LiteX CSR access and provides common litex_[read|write]*
17 All drivers that use functions from litex.h must depend on
20 config LITEX_SUBREG_SIZE
21 int "Size of a LiteX CSR subregister, in bytes"
26 LiteX MMIO registers (referred to as Configuration and Status
27 registers, or CSRs) are spread across adjacent 8- or 32-bit
28 subregisters, located at 32-bit aligned MMIO addresses. Use
29 this to select the appropriate size (1 or 4 bytes) matching
30 your particular LiteX build.