xref: /openbmc/u-boot/arch/arm/mach-socfpga/Kconfig (revision 6183b295)
1if ARCH_SOCFPGA
2
3config SPL_LIBCOMMON_SUPPORT
4	default y
5
6config SPL_LIBDISK_SUPPORT
7	default y
8
9config SPL_LIBGENERIC_SUPPORT
10	default y
11
12config SPL_MMC_SUPPORT
13	default y if DM_MMC
14
15config SPL_NAND_SUPPORT
16	default y if SPL_NAND_DENALI
17
18config SPL_SERIAL_SUPPORT
19	default y
20
21config SPL_SPI_FLASH_SUPPORT
22	default y if SPL_SPI_SUPPORT
23
24config SPL_SPI_SUPPORT
25	default y if DM_SPI
26
27config SPL_WATCHDOG_SUPPORT
28	default y
29
30config SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE
31	default y
32
33config SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION_TYPE
34	default 0xa2
35
36config TARGET_SOCFPGA_ARRIA5
37	bool
38	select TARGET_SOCFPGA_GEN5
39
40config TARGET_SOCFPGA_ARRIA10
41	bool
42	select SPL_BOARD_INIT if SPL
43
44config TARGET_SOCFPGA_CYCLONE5
45	bool
46	select TARGET_SOCFPGA_GEN5
47
48config TARGET_SOCFPGA_GEN5
49	bool
50	select ALTERA_SDRAM
51
52choice
53	prompt "Altera SOCFPGA board select"
54	optional
55
56config TARGET_SOCFPGA_ARRIA10_SOCDK
57	bool "Altera SOCFPGA SoCDK (Arria 10)"
58	select TARGET_SOCFPGA_ARRIA10
59
60config TARGET_SOCFPGA_ARRIA5_SOCDK
61	bool "Altera SOCFPGA SoCDK (Arria V)"
62	select TARGET_SOCFPGA_ARRIA5
63
64config TARGET_SOCFPGA_CYCLONE5_SOCDK
65	bool "Altera SOCFPGA SoCDK (Cyclone V)"
66	select TARGET_SOCFPGA_CYCLONE5
67
68config TARGET_SOCFPGA_ARIES_MCVEVK
69	bool "Aries MCVEVK (Cyclone V)"
70	select TARGET_SOCFPGA_CYCLONE5
71
72config TARGET_SOCFPGA_EBV_SOCRATES
73	bool "EBV SoCrates (Cyclone V)"
74	select TARGET_SOCFPGA_CYCLONE5
75
76config TARGET_SOCFPGA_IS1
77	bool "IS1 (Cyclone V)"
78	select TARGET_SOCFPGA_CYCLONE5
79
80config TARGET_SOCFPGA_SAMTEC_VINING_FPGA
81	bool "samtec VIN|ING FPGA (Cyclone V)"
82	select BOARD_LATE_INIT
83	select TARGET_SOCFPGA_CYCLONE5
84
85config TARGET_SOCFPGA_SR1500
86	bool "SR1500 (Cyclone V)"
87	select TARGET_SOCFPGA_CYCLONE5
88
89config TARGET_SOCFPGA_TERASIC_DE0_NANO
90	bool "Terasic DE0-Nano-Atlas (Cyclone V)"
91	select TARGET_SOCFPGA_CYCLONE5
92
93config TARGET_SOCFPGA_TERASIC_DE10_NANO
94	bool "Terasic DE10-Nano (Cyclone V)"
95	select TARGET_SOCFPGA_CYCLONE5
96
97config TARGET_SOCFPGA_TERASIC_DE1_SOC
98	bool "Terasic DE1-SoC (Cyclone V)"
99	select TARGET_SOCFPGA_CYCLONE5
100
101config TARGET_SOCFPGA_TERASIC_SOCKIT
102	bool "Terasic SoCkit (Cyclone V)"
103	select TARGET_SOCFPGA_CYCLONE5
104
105endchoice
106
107config SYS_BOARD
108	default "arria5-socdk" if TARGET_SOCFPGA_ARRIA5_SOCDK
109	default "arria10-socdk" if TARGET_SOCFPGA_ARRIA10_SOCDK
110	default "cyclone5-socdk" if TARGET_SOCFPGA_CYCLONE5_SOCDK
111	default "de0-nano-soc" if TARGET_SOCFPGA_TERASIC_DE0_NANO
112	default "de1-soc" if TARGET_SOCFPGA_TERASIC_DE1_SOC
113	default "de10-nano" if TARGET_SOCFPGA_TERASIC_DE10_NANO
114	default "is1" if TARGET_SOCFPGA_IS1
115	default "mcvevk" if TARGET_SOCFPGA_ARIES_MCVEVK
116	default "sockit" if TARGET_SOCFPGA_TERASIC_SOCKIT
117	default "socrates" if TARGET_SOCFPGA_EBV_SOCRATES
118	default "sr1500" if TARGET_SOCFPGA_SR1500
119	default "vining_fpga" if TARGET_SOCFPGA_SAMTEC_VINING_FPGA
120
121config SYS_VENDOR
122	default "altera" if TARGET_SOCFPGA_ARRIA5_SOCDK
123	default "altera" if TARGET_SOCFPGA_ARRIA10_SOCDK
124	default "altera" if TARGET_SOCFPGA_CYCLONE5_SOCDK
125	default "aries" if TARGET_SOCFPGA_ARIES_MCVEVK
126	default "ebv" if TARGET_SOCFPGA_EBV_SOCRATES
127	default "samtec" if TARGET_SOCFPGA_SAMTEC_VINING_FPGA
128	default "terasic" if TARGET_SOCFPGA_TERASIC_DE0_NANO
129	default "terasic" if TARGET_SOCFPGA_TERASIC_DE1_SOC
130	default "terasic" if TARGET_SOCFPGA_TERASIC_DE10_NANO
131	default "terasic" if TARGET_SOCFPGA_TERASIC_SOCKIT
132
133config SYS_SOC
134	default "socfpga"
135
136config SYS_CONFIG_NAME
137	default "socfpga_arria5_socdk" if TARGET_SOCFPGA_ARRIA5_SOCDK
138	default "socfpga_arria10_socdk" if TARGET_SOCFPGA_ARRIA10_SOCDK
139	default "socfpga_cyclone5_socdk" if TARGET_SOCFPGA_CYCLONE5_SOCDK
140	default "socfpga_de0_nano_soc" if TARGET_SOCFPGA_TERASIC_DE0_NANO
141	default "socfpga_de1_soc" if TARGET_SOCFPGA_TERASIC_DE1_SOC
142	default "socfpga_de10_nano" if TARGET_SOCFPGA_TERASIC_DE10_NANO
143	default "socfpga_is1" if TARGET_SOCFPGA_IS1
144	default "socfpga_mcvevk" if TARGET_SOCFPGA_ARIES_MCVEVK
145	default "socfpga_sockit" if TARGET_SOCFPGA_TERASIC_SOCKIT
146	default "socfpga_socrates" if TARGET_SOCFPGA_EBV_SOCRATES
147	default "socfpga_sr1500" if TARGET_SOCFPGA_SR1500
148	default "socfpga_vining_fpga" if TARGET_SOCFPGA_SAMTEC_VINING_FPGA
149
150endif
151