mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-26 23:41:50 +00:00
riscv: cpu: jh7110: fallback to generic cleanup_before_linux()
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>
This commit is contained in:
parent
334980f4cf
commit
faf237d1b4
2 changed files with 0 additions and 24 deletions
|
@ -5,6 +5,5 @@
|
||||||
ifeq ($(CONFIG_XPL_BUILD),y)
|
ifeq ($(CONFIG_XPL_BUILD),y)
|
||||||
obj-y += spl.o
|
obj-y += spl.o
|
||||||
else
|
else
|
||||||
obj-y += cpu.o
|
|
||||||
obj-y += dram.o
|
obj-y += dram.o
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -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;
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue