riscv: cpu: jh7110: fallback to generic cleanup_before_linux()
authorYao Zi <ziyao@disroot.org>
Thu, 23 Jan 2025 09:11:35 +0000 (09:11 +0000)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Mon, 3 Feb 2025 07:26:06 +0000 (15:26 +0800)
JH7110 SoC requires no specific handling before entering Linux kernel.
Let's drop the specific implementation to avoid duplication.

Signed-off-by: Yao Zi <ziyao@disroot.org>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
arch/riscv/cpu/jh7110/Makefile
arch/riscv/cpu/jh7110/cpu.c [deleted file]

index 0939c10..4f91aaf 100644 (file)
@@ -5,6 +5,5 @@
 ifeq ($(CONFIG_XPL_BUILD),y)
 obj-y += spl.o
 else
-obj-y += cpu.o
 obj-y += dram.o
 endif
diff --git a/arch/riscv/cpu/jh7110/cpu.c b/arch/riscv/cpu/jh7110/cpu.c
deleted file mode 100644 (file)
index 1d7c026..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * Copyright (C) 2022 StarFive Technology Co., Ltd.
- * Author: Yanhong Wang <yanhong.wang@starfivetech.com>
- */
-
-#include <asm/cache.h>
-#include <irq_func.h>
-
-/*
- * cleanup_before_linux() is called just before we call linux
- * it prepares the processor for linux
- *
- * we disable interrupt and caches.
- */
-int cleanup_before_linux(void)
-{
-       disable_interrupts();
-
-       cache_flush();
-
-       return 0;
-}