On 1/10/22 18:51, Alex Bennée wrote: > Currently we are only targeting the official RaspberryPi Pico although > I suspect most RP2040 based boards will look broadly the same. > > Signed-off-by: Alex Bennée <alex.ben...@linaro.org> > --- > configs/devices/arm-softmmu/default.mak | 1 + > hw/arm/raspi_pico.c | 77 +++++++++++++++++++++++++ > hw/arm/Kconfig | 3 + > hw/arm/meson.build | 1 + > 4 files changed, 82 insertions(+) > create mode 100644 hw/arm/raspi_pico.c
> +static void pipico_machine_class_init(ObjectClass *oc, void *data) > +{ > + MachineClass *mc = MACHINE_CLASS(oc); > + > + mc->desc = g_strdup_printf("Raspberry Pi Pico"); > + mc->init = pipico_machine_init; > + mc->block_default_type = IF_PFLASH; > + mc->no_parallel = 1; > + mc->no_floppy = 1; > + mc->no_cdrom = 1; :) Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org> > + mc->no_sdcard = 1; > + mc->min_cpus = 2; > + mc->default_cpus = 2; > + mc->max_cpus = 2; > +};