Lines Matching +full:- +full:- +full:disable +full:- +full:fdt

6  * SPDX-License-Identifier: GPL-2.0-or-later
17 #include "qemu/error-report.h"
36 * (see https://datasheets.raspberrypi.com/bcm2711/bcm2711-peripherals.pdf
39 static int raspi_add_memory_node(void *fdt, hwaddr mem_base, hwaddr mem_len) in raspi_add_memory_node() argument
45 acells = qemu_fdt_getprop_cell(fdt, "/", "#address-cells", in raspi_add_memory_node()
47 scells = qemu_fdt_getprop_cell(fdt, "/", "#size-cells", in raspi_add_memory_node()
50 fprintf(stderr, "dtb file invalid (#address-cells or #size-cells 0)\n"); in raspi_add_memory_node()
51 ret = -1; in raspi_add_memory_node()
53 qemu_fdt_add_subnode(fdt, nodename); in raspi_add_memory_node()
54 qemu_fdt_setprop_string(fdt, nodename, "device_type", "memory"); in raspi_add_memory_node()
55 ret = qemu_fdt_setprop_sized_cells(fdt, nodename, "reg", in raspi_add_memory_node()
64 static void raspi4_modify_dtb(const struct arm_boot_info *info, void *fdt) in raspi4_modify_dtb() argument
68 /* Temporarily disable following devices until they are implemented */ in raspi4_modify_dtb()
70 "brcm,bcm2711-pcie", in raspi4_modify_dtb()
71 "brcm,bcm2711-rng200", in raspi4_modify_dtb()
72 "brcm,bcm2711-thermal", in raspi4_modify_dtb()
73 "brcm,bcm2711-genet-v5", in raspi4_modify_dtb()
79 int offset = fdt_node_offset_by_compatible(fdt, -1, dev_str); in raspi4_modify_dtb()
81 if (!fdt_nop_node(fdt, offset)) { in raspi4_modify_dtb()
87 ram_size = board_ram_size(info->board_id); in raspi4_modify_dtb()
89 if (info->ram_size > UPPER_RAM_BASE) { in raspi4_modify_dtb()
90 raspi_add_memory_node(fdt, UPPER_RAM_BASE, ram_size - UPPER_RAM_BASE); in raspi4_modify_dtb()
99 BCM2838State *soc = &s->soc; in raspi4b_machine_init()
101 s_base->binfo.modify_dtb = raspi4_modify_dtb; in raspi4b_machine_init()
102 s_base->binfo.board_id = mc->board_rev; in raspi4b_machine_init()
105 board_soc_type(mc->board_rev)); in raspi4b_machine_init()
107 raspi_base_machine_init(machine, &soc->parent_obj); in raspi4b_machine_init()
116 rmc->board_rev = 0xa03111; /* Revision 1.1, 1 Gb RAM */ in raspi4b_machine_class_init()
118 rmc->board_rev = 0xb03115; /* Revision 1.5, 2 Gb RAM */ in raspi4b_machine_class_init()
120 raspi_machine_class_common_init(mc, rmc->board_rev); in raspi4b_machine_class_init()
121 mc->init = raspi4b_machine_init; in raspi4b_machine_class_init()