mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-05 20:54:31 +00:00
36bf446b64
Move these two functions into the irq_funcs.h header file. Also move interrupt_handler_t as this is used by the irq_install_handler() function. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
36 lines
731 B
C
36 lines
731 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com>
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <dm.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;
|
|
}
|
|
|
|
/* To enumerate devices on the /soc/ node, create a "simple-bus" driver */
|
|
static const struct udevice_id riscv_virtio_soc_ids[] = {
|
|
{ .compatible = "riscv-virtio-soc" },
|
|
{ }
|
|
};
|
|
|
|
U_BOOT_DRIVER(riscv_virtio_soc) = {
|
|
.name = "riscv_virtio_soc",
|
|
.id = UCLASS_SIMPLE_BUS,
|
|
.of_match = riscv_virtio_soc_ids,
|
|
.flags = DM_FLAG_PRE_RELOC,
|
|
};
|