Introduce `CONFIG_RISCV_GP_PURPOSE` choice to make sure that only one of `CONFIG_RISCV_GP` or `CONFIG_RISCV_CURRENT_VIA_GP` can be enabled, instead of relying of dependencies. To do that, introduce a new `CONFIG_RISCV_SOC_HAS_GP_RELATIVE_ADDRESSING` that can be selected by SoC when it implemented global pointer (GP) initialization for relative addressing in its linker. `CONFIG_RISCV_GP` will be the default choice when `CONFIG_RISCV_SOC_HAS_GP_RELATIVE_ADDRESSING=y` Signed-off-by: Yong Cong Sin <ycsin@meta.com> Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
28 lines
535 B
Text
28 lines
535 B
Text
# Copyright (c) 2020-2021 Microchip Technology Inc
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
if SOC_SERIES_POLARFIRE
|
|
|
|
rsource "Kconfig.defconfig.polarfire*"
|
|
|
|
# MPFS should be configured so that the mtimer clock is 1MHz independent of the CPU clock...
|
|
|
|
config SYS_CLOCK_HW_CYCLES_PER_SEC
|
|
default 1000000
|
|
|
|
config RISCV_SOC_INTERRUPT_INIT
|
|
default y
|
|
|
|
config 2ND_LVL_ISR_TBL_OFFSET
|
|
default 13
|
|
|
|
config 2ND_LVL_INTR_00_OFFSET
|
|
default 11
|
|
|
|
config MAX_IRQ_PER_AGGREGATOR
|
|
default 186
|
|
|
|
config NUM_IRQS
|
|
default 186
|
|
|
|
endif # SOC_SERIES_POLARFIRE
|