summaryrefslogtreecommitdiffstats
path: root/arch/riscv/Kconfig
blob: 16c3eecce6f860e04c50cbfc763c2c8186274b68 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
config RISCV
	def_bool y
	select GENERIC_FIND_NEXT_BIT
	select HAVE_CONFIGURABLE_MEMORY_LAYOUT
	select HAVE_CONFIGURABLE_TEXT_BASE
	select GPIOLIB
	select OFTREE
	select COMMON_CLK
	select COMMON_CLK_OF_PROVIDER
	select CLKDEV_LOOKUP

config ARCH_TEXT_BASE
	hex
	default 0x0

menu "Machine selection"

choice
	prompt "System type"
	default MACH_ERIZO

config MACH_ERIZO
	bool "erizo family"
	select HAS_DEBUG_LL
	select HAS_NMON

endchoice

choice
	prompt "Base ISA"
	default ARCH_RV32I

config ARCH_RV32I
	bool "RV32I"
	select CPU_SUPPORTS_32BIT_KERNEL
	select GENERIC_LIB_ASHLDI3
	select GENERIC_LIB_ASHRDI3
	select GENERIC_LIB_LSHRDI3

endchoice

config CPU_SUPPORTS_32BIT_KERNEL
	bool

choice
	prompt "barebox code model"
	default 32BIT

config 32BIT
	bool "32-bit barebox"
	depends on CPU_SUPPORTS_32BIT_KERNEL
	help
	  Select this option to build a 32-bit barebox.

endchoice

config BUILTIN_DTB
	bool "link a DTB into the barebox image"
	depends on OFTREE

config BUILTIN_DTB_NAME
	string "DTB to build into the barebox image"
	depends on BUILTIN_DTB

source "arch/riscv/mach-erizo/Kconfig"

endmenu

menu "RISC-V specific settings"

config HAS_NMON
	bool

config NMON
	bool "nmon"
	depends on HAS_NMON
	depends on DEBUG_LL
	help
	  Say yes here to add the nmon to pbl.
	  nmon -- nano-monitor program for the RISC-V processors.
	  It can operate with NO working RAM, using only
	  the processor registers.

config NMON_HELP
	bool "nmon help message"
	depends on NMON
	help
	  Say yes here to get the nmon commands message on
	  every nmon start.

endmenu