mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
8a0d5f2f51
The Andes PLMT driver directly accesses the mtime MMIO region, indicating its intended use in the M-mode boot stage. However, since U-Boot proper (S-mode) also uses the PLMT driver, we need to specifically mark the region as readable through PMPCFGx (or S/U-mode read-only shared data region for Smepmp) in OpenSBI. Granting permission for this case doesn't make sense. Instead, we should use the generic RISC-V timer driver to read the mtime through the TIME CSR. Therefore, we add the SPL_ANDES_PLMT_TIMER config, which ensures that the PLMT driver is linked exclusively against M-mode U-Boot or U-Boot SPL binaries. Signed-off-by: Yu Chien Peter Lin <peterlin@andestech.com> Reviewed-by: Samuel Holland <samuel@sholland.org>
37 lines
1.6 KiB
Makefile
37 lines
1.6 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
# Copyright (C) 2015 Thomas Chou <thomas@wytron.com.tw>
|
|
|
|
obj-y += timer-uclass.o
|
|
obj-$(CONFIG_ALTERA_TIMER) += altera_timer.o
|
|
obj-$(CONFIG_$(SPL_)ANDES_PLMT_TIMER) += andes_plmt_timer.o
|
|
obj-$(CONFIG_ARC_TIMER) += arc_timer.o
|
|
obj-$(CONFIG_ARM_TWD_TIMER) += arm_twd_timer.o
|
|
obj-$(CONFIG_AST_TIMER) += ast_timer.o
|
|
obj-$(CONFIG_ATCPIT100_TIMER) += atcpit100_timer.o
|
|
obj-$(CONFIG_$(SPL_)ATMEL_PIT_TIMER) += atmel_pit_timer.o
|
|
obj-$(CONFIG_$(SPL_)ATMEL_TCB_TIMER) += atmel_tcb_timer.o
|
|
obj-$(CONFIG_CADENCE_TTC_TIMER) += cadence-ttc.o
|
|
obj-$(CONFIG_DESIGNWARE_APB_TIMER) += dw-apb-timer.o
|
|
obj-$(CONFIG_FTTMR010_TIMER) += fttmr010_timer.o
|
|
obj-$(CONFIG_GXP_TIMER) += gxp-timer.o
|
|
obj-$(CONFIG_MPC83XX_TIMER) += mpc83xx_timer.o
|
|
obj-$(CONFIG_NOMADIK_MTU_TIMER) += nomadik-mtu-timer.o
|
|
obj-$(CONFIG_NPCM_TIMER) += npcm-timer.o
|
|
obj-$(CONFIG_OMAP_TIMER) += omap-timer.o
|
|
obj-$(CONFIG_ORION_TIMER) += orion-timer.o
|
|
obj-$(CONFIG_RENESAS_OSTM_TIMER) += ostm_timer.o
|
|
obj-$(CONFIG_RISCV_TIMER) += riscv_timer.o
|
|
obj-$(CONFIG_ROCKCHIP_TIMER) += rockchip_timer.o
|
|
obj-$(CONFIG_SANDBOX_TIMER) += sandbox_timer.o
|
|
obj-$(CONFIG_SP804_TIMER) += sp804_timer.o
|
|
obj-$(CONFIG_$(SPL_)RISCV_ACLINT) += riscv_aclint_timer.o
|
|
obj-$(CONFIG_ARM_GLOBAL_TIMER) += arm_global_timer.o
|
|
obj-$(CONFIG_STM32_TIMER) += stm32_timer.o
|
|
obj-$(CONFIG_TEGRA_TIMER) += tegra-timer.o
|
|
obj-$(CONFIG_X86_TSC_TIMER) += tsc_timer.o
|
|
obj-$(CONFIG_MTK_TIMER) += mtk_timer.o
|
|
obj-$(CONFIG_MCHP_PIT64B_TIMER) += mchp-pit64b-timer.o
|
|
obj-$(CONFIG_IMX_GPT_TIMER) += imx-gpt-timer.o
|
|
obj-$(CONFIG_XILINX_TIMER) += xilinx-timer.o
|
|
obj-$(CONFIG_STARFIVE_TIMER) += starfive-timer.o
|