diff options
Diffstat (limited to 'arch/arm/boards/qemu-virt/board.c')
-rw-r--r-- | arch/arm/boards/qemu-virt/board.c | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/arch/arm/boards/qemu-virt/board.c b/arch/arm/boards/qemu-virt/board.c deleted file mode 100644 index 1333687918..0000000000 --- a/arch/arm/boards/qemu-virt/board.c +++ /dev/null @@ -1,52 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later -/* - * Copyright (C) 2020 Pengutronix e.K. - * - */ -#include <common.h> -#include <init.h> -#include <of.h> -#include <deep-probe.h> -#include <asm/system_info.h> - -#ifdef CONFIG_64BIT -#define MACHINE "virt64" -#else -#define MACHINE "virt" -#endif - -extern char __dtb_overlay_of_flash_start[]; - -static int virt_probe(struct device_d *dev) -{ - const char *hostname = MACHINE; - struct device_node *overlay; - - if (cpu_is_cortex_a7()) - hostname = "virt-a7"; - else if (cpu_is_cortex_a15()) - hostname = "virt-a15"; - - barebox_set_model("ARM QEMU " MACHINE); - barebox_set_hostname(hostname); - - overlay = of_unflatten_dtb(__dtb_overlay_of_flash_start, INT_MAX); - of_overlay_apply_tree(dev->device_node, overlay); - /* of_probe() will happen later at of_populate_initcall */ - - return 0; -} - -static const struct of_device_id virt_of_match[] = { - { .compatible = "linux,dummy-virt" }, - { /* Sentinel */}, -}; -BAREBOX_DEEP_PROBE_ENABLE(virt_of_match); - -static struct driver_d virt_board_driver = { - .name = "board-qemu-virt", - .probe = virt_probe, - .of_compatible = virt_of_match, -}; - -postcore_platform_driver(virt_board_driver); |