Lines Matching +full:cortex +full:- +full:m4

2  * B-L475E-IOT01A Discovery Kit machine
3 * (B-L475E-IOT01A IoT Node)
5 * Copyright (c) 2023-2024 Arnaud Minier <arnaud.minier@telecom-paris.fr>
6 * Copyright (c) 2023-2024 Inès Varhol <ines.varhol@telecom-paris.fr>
8 * SPDX-License-Identifier: GPL-2.0-or-later
11 * See the COPYING file in the top-level directory.
21 * Discovery kit for IoT node, multi-channel communication with STM32L4.
22 * https://www.st.com/en/evaluation-tools/b-l475e-iot01a.html#documentation
28 #include "hw/qdev-properties.h"
29 #include "qemu/error-report.h"
31 #include "hw/core/split-irq.h"
36 /* B-L475E-IOT01A implementation is inspired from netduinoplus2 and arduino */
62 #define TYPE_B_L475E_IOT01A MACHINE_TYPE_NAME("b-l475e-iot01a")
80 object_initialize_child(OBJECT(machine), "soc", &s->soc, in bl475e_init()
82 sysbus_realize(SYS_BUS_DEVICE(&s->soc), &error_fatal); in bl475e_init()
84 sc = STM32L4X5_SOC_GET_CLASS(&s->soc); in bl475e_init()
85 armv7m_load_kernel(ARM_CPU(first_cpu), machine->kernel_filename, 0, in bl475e_init()
86 sc->flash_size); in bl475e_init()
90 &s->dm163, TYPE_DM163); in bl475e_init()
91 dev = DEVICE(&s->dm163); in bl475e_init()
95 object_initialize_child(OBJECT(machine), "gpio-out-splitters[*]", in bl475e_init()
96 &s->gpio_splitters[i], TYPE_SPLIT_IRQ); in bl475e_init()
97 gpio_out_splitter = DEVICE(&s->gpio_splitters[i]); in bl475e_init()
98 qdev_prop_set_uint32(gpio_out_splitter, "num-lines", 2); in bl475e_init()
102 qdev_get_gpio_in(DEVICE(&s->soc), dm163_input[i])); in bl475e_init()
107 qdev_connect_gpio_out(DEVICE(&s->soc.gpio[gpio]), pin, in bl475e_init()
117 ARM_CPU_TYPE_NAME("cortex-m4"), in bl475e_machine_init()
120 mc->desc = "B-L475E-IOT01A Discovery Kit (Cortex-M4)"; in bl475e_machine_init()
121 mc->init = bl475e_init; in bl475e_machine_init()
122 mc->valid_cpu_types = machine_valid_cpu_types; in bl475e_machine_init()
124 /* SRAM pre-allocated as part of the SoC instantiation */ in bl475e_machine_init()
125 mc->default_ram_size = 0; in bl475e_machine_init()