Elyes HAOUAS | f7b2fe6 | 2020-05-07 12:38:15 +0200 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
Jonathan Neuschäfer | 55b4645 | 2018-04-19 16:23:54 +0200 | [diff] [blame] | 2 | |
| 3 | config SOC_SIFIVE_FU540 |
| 4 | bool |
Ronald G. Minnich | 0535804 | 2018-12-19 17:52:43 -0800 | [diff] [blame] | 5 | select ARCH_RISCV_RV64 |
| 6 | select ARCH_RISCV_S |
| 7 | select ARCH_RISCV_U |
| 8 | select ARCH_RISCV_PMP |
Jonathan Neuschäfer | 55b4645 | 2018-04-19 16:23:54 +0200 | [diff] [blame] | 9 | select ARCH_BOOTBLOCK_RISCV |
| 10 | select ARCH_VERSTAGE_RISCV |
| 11 | select ARCH_ROMSTAGE_RISCV |
| 12 | select ARCH_RAMSTAGE_RISCV |
Jonathan Neuschäfer | 55b4645 | 2018-04-19 16:23:54 +0200 | [diff] [blame] | 13 | select DRIVERS_UART_SIFIVE |
Philipp Hug | 199b75f | 2018-09-13 18:11:56 +0200 | [diff] [blame] | 14 | select RISCV_USE_ARCH_TIMER |
Philipp Hug | 7524400 | 2018-07-07 21:34:31 +0200 | [diff] [blame] | 15 | select UART_OVERRIDE_REFCLK |
Patrick Rudolph | d434e8b | 2019-07-07 13:15:30 +0200 | [diff] [blame] | 16 | select RISCV_HAS_OPENSBI |
Philipp Hug | 199b75f | 2018-09-13 18:11:56 +0200 | [diff] [blame] | 17 | |
Jonathan Neuschäfer | 55b4645 | 2018-04-19 16:23:54 +0200 | [diff] [blame] | 18 | if SOC_SIFIVE_FU540 |
| 19 | |
Furquan Shaikh | 46514c2 | 2020-06-11 11:59:07 -0700 | [diff] [blame] | 20 | config MEMLAYOUT_LD_FILE |
| 21 | string |
| 22 | default "src/soc/sifive/fu540/memlayout.ld" |
| 23 | |
Xiang Wang | 5fed693 | 2018-07-12 14:56:05 +0800 | [diff] [blame] | 24 | config RISCV_ARCH |
| 25 | string |
| 26 | default "rv64imac" |
| 27 | |
| 28 | config RISCV_ABI |
| 29 | string |
| 30 | default "lp64" |
| 31 | |
| 32 | config RISCV_CODEMODEL |
| 33 | string |
| 34 | default "medany" |
| 35 | |
Philipp Hug | 968a23d | 2018-12-01 18:17:18 +0100 | [diff] [blame] | 36 | config MAX_CPUS |
Xiang Wang | 7c9540e | 2018-10-11 17:30:37 +0800 | [diff] [blame] | 37 | int |
| 38 | default 5 |
| 39 | |
| 40 | config RISCV_WORKING_HARTID |
| 41 | int |
| 42 | default 0 |
| 43 | |
Patrick Rudolph | d434e8b | 2019-07-07 13:15:30 +0200 | [diff] [blame] | 44 | config OPENSBI_PLATFORM |
| 45 | string |
| 46 | default "sifive/fu540" |
| 47 | |
| 48 | config OPENSBI_TEXT_START |
| 49 | hex |
| 50 | default 0x80000000 |
Jonathan Neuschäfer | 55b4645 | 2018-04-19 16:23:54 +0200 | [diff] [blame] | 51 | endif |