# SPDX-License-Identifier: GPL-2.0+
#
# Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com>
# Copyright (C) 2025, Yao Zi <ziyao@disroot.org>

config THEAD_TH1520
	bool
	select ARCH_EARLY_INIT_R
	select SYS_CACHE_SHIFT_6
	select SUPPORT_SPL
	select BINMAN if SPL
	select SYS_CACHE_THEAD_CMO
	select CLK_THEAD
	select PINCTRL_TH1520
	imply CPU
	imply CPU_RISCV
	imply RISCV_TIMER if (RISCV_SMODE || SPL_RISCV_SMODE)
	imply RISCV_ACLINT if RISCV_MMODE
	imply SPL_RISCV_ACLINT if SPL_RISCV_MMODE
	imply CMD_CPU
	imply SPL_CPU
	imply SPL_OPENSBI
	imply SPL_LOAD_FIT
	imply OF_UPSTREAM
