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 depends on HAS_IOMEM 12 select LITEX 13 help 14 This option enables the SoC Controller Driver which verifies 15 LiteX CSR access and provides common litex_[read|write]* 16 accessors. 17 All drivers that use functions from litex.h must depend on 18 LITEX. 19 20config LITEX_SUBREG_SIZE 21 int "Size of a LiteX CSR subregister, in bytes" 22 depends on LITEX 23 range 1 4 24 default 4 25 help 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. 31 32endmenu 33