This commit reflects a difference between FE310-G000 and FE310-G002 SoCs, since only the latter supports PMP. The result of that is the split of the HiFive1 board into two separate targets, since the HWMv2 right now assumes that board revisions share the same SoC. Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
26 lines
532 B
Plaintext
26 lines
532 B
Plaintext
# Copyright (c) 2017 Jean-Paul Etienne <fractalclone@gmail.com>
|
|
# Copyright (c) 2024 Antmicro <www.antmicro.com>
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
if SOC_SERIES_SIFIVE_FREEDOM_FE300
|
|
|
|
config SYS_CLOCK_HW_CYCLES_PER_SEC
|
|
default $(dt_node_int_prop_int,/clocks/core-clk,clock-frequency)
|
|
|
|
config RISCV_SOC_INTERRUPT_INIT
|
|
default y
|
|
|
|
config 2ND_LVL_ISR_TBL_OFFSET
|
|
default 12
|
|
|
|
config 2ND_LVL_INTR_00_OFFSET
|
|
default 11
|
|
|
|
config MAX_IRQ_PER_AGGREGATOR
|
|
default 52
|
|
|
|
config NUM_IRQS
|
|
default 64
|
|
|
|
endif # SOC_SERIES_SIFIVE_FREEDOM_FE300
|