/qemu/hw/i386/ |
H A D | pc_sysfw.c | 104 pcms->flash[0] = pc_pflash_create(pcms, "system.flash0", in pc_system_flash_create() 106 pcms->flash[1] = pc_pflash_create(pcms, "system.flash1", in pc_system_flash_create() 118 for (i = 0; i < ARRAY_SIZE(pcms->flash); i++) { in pc_system_flash_cleanup_unused() 119 if (!qdev_is_realized(DEVICE(pcms->flash[i]))) { in pc_system_flash_cleanup_unused() 123 object_unparent(OBJECT(pcms->flash[i])); in pc_system_flash_cleanup_unused() 124 pcms->flash[i] = NULL; in pc_system_flash_cleanup_unused() 158 for (i = 0; i < ARRAY_SIZE(pcms->flash); i++) { in pc_system_flash_map() 161 system_flash = pcms->flash[i]; in pc_system_flash_map() 220 BlockBackend *pflash_blk[ARRAY_SIZE(pcms->flash)]; in pc_system_firmware_init() 228 for (i = 0; i < ARRAY_SIZE(pcms->flash); i++) { in pc_system_firmware_init() [all …]
|
/qemu/hw/xtensa/ |
H A D | xtfpga.c | 62 const XtfpgaFlashDesc *flash; member 180 board->flash->size / board->flash->sector_size); in xtfpga_flash_init() 181 qdev_prop_set_uint64(dev, "sector-length", board->flash->sector_size); in xtfpga_flash_init() 187 memory_region_add_subregion(address_space, board->flash->base, in xtfpga_flash_init() 232 PFlashCFI01 *flash = NULL; in xtfpga_init() local 314 flash = xtfpga_flash_init(system_io, board, dinfo, TARGET_BIG_ENDIAN); in xtfpga_init() 451 if (flash) { in xtfpga_init() 452 MemoryRegion *flash_mr = pflash_cfi01_get_memory(flash); in xtfpga_init() 456 if (board->flash->size - board->flash->boot_base < size) { in xtfpga_init() 457 size = board->flash->size - board->flash->boot_base; in xtfpga_init() [all …]
|
/qemu/hw/nvram/ |
H A D | nrf51_nvm.c | 234 memory_region_flush_rom_device(&s->flash, value, in io_write() 247 memory_region_flush_rom_device(&s->flash, 0, s->flash_size); in io_write() 300 memory_region_flush_rom_device(&s->flash, offset, size); in flash_write() 340 if (!memory_region_init_rom_device(&s->flash, OBJECT(dev), &flash_ops, s, in nrf51_nvm_realize() 345 s->storage = memory_region_get_ram_ptr(&s->flash); in nrf51_nvm_realize() 346 sysbus_init_mmio(SYS_BUS_DEVICE(dev), &s->flash); in nrf51_nvm_realize()
|
/qemu/hw/ssi/ |
H A D | npcm7xx_fiu.c | 107 NPCM7xxFIUFlash *flash) in npcm7xx_fiu_cs_index() argument 109 int index = flash - fiu->flash; in npcm7xx_fiu_cs_index() 524 s->flash = g_new0(NPCM7xxFIUFlash, s->cs_count); in npcm7xx_fiu_realize() 535 NPCM7xxFIUFlash *flash = &s->flash[i]; in npcm7xx_fiu_realize() local 536 flash->fiu = s; in npcm7xx_fiu_realize() 537 memory_region_init_io(&flash->direct_access, OBJECT(s), in npcm7xx_fiu_realize() 538 &npcm7xx_fiu_flash_ops, &s->flash[i], "flash", in npcm7xx_fiu_realize() 540 sysbus_init_mmio(sbd, &flash->direct_access); in npcm7xx_fiu_realize()
|
/qemu/hw/display/ |
H A D | ssd0303.c | 60 int flash; member 125 s->flash = 0; in ssd0303_send() 128 s->flash = 1; in ssd0303_send() 245 if (s->flash) { in ssd0303_update_display() 289 VMSTATE_INT32(flash, ssd0303_state),
|
/qemu/hw/arm/ |
H A D | npcm8xx_boards.c | 60 DeviceState *flash; in npcm8xx_connect_flash() local 63 flash = qdev_new(flash_type); in npcm8xx_connect_flash() 65 qdev_prop_set_drive(flash, "drive", blk_by_legacy_dinfo(dinfo)); in npcm8xx_connect_flash() 67 qdev_realize_and_unref(flash, BUS(fiu->spi), &error_fatal); in npcm8xx_connect_flash() 69 flash_cs = qdev_get_gpio_in_named(flash, SSI_GPIO_CS, 0); in npcm8xx_connect_flash()
|
H A D | sbsa-ref.c | 107 PFlashCFI01 *flash[2]; member 316 sms->flash[0] = sbsa_flash_create1(sms, "sbsa.flash0", "pflash0"); in sbsa_flash_create() 317 sms->flash[1] = sbsa_flash_create1(sms, "sbsa.flash1", "pflash1"); in sbsa_flash_create() 320 static void sbsa_flash_map1(PFlashCFI01 *flash, in sbsa_flash_map1() argument 324 DeviceState *dev = DEVICE(flash); in sbsa_flash_map1() 349 sbsa_flash_map1(sms->flash[0], flashbase, flashsize, in sbsa_flash_map() 351 sbsa_flash_map1(sms->flash[1], flashbase + flashsize, flashsize, in sbsa_flash_map() 364 for (i = 0; i < ARRAY_SIZE(sms->flash); i++) { in sbsa_firmware_init() 365 pflash_cfi01_legacy_drive(sms->flash[i], in sbsa_firmware_init() 371 pflash_blk0 = pflash_cfi01_get_blk(sms->flash[0]); in sbsa_firmware_init() [all …]
|
H A D | stm32f100_soc.c | 103 memory_region_init_rom(&s->flash, OBJECT(dev_soc), "STM32F100.flash", in stm32f100_soc_realize() 106 "STM32F100.flash.alias", &s->flash, 0, FLASH_SIZE); in stm32f100_soc_realize() 107 memory_region_add_subregion(system_memory, FLASH_BASE_ADDRESS, &s->flash); in stm32f100_soc_realize()
|
H A D | omap_sx1.c | 104 MemoryRegion *flash = g_new(MemoryRegion, 1); in sx1_init() local 130 memory_region_init_rom(flash, NULL, "omap_sx1.flash0-0", flash_size, in sx1_init() 132 memory_region_add_subregion(address_space, OMAP_CS0_BASE, flash); in sx1_init()
|
H A D | stm32f205_soc.c | 116 memory_region_init_rom(&s->flash, OBJECT(dev_soc), "STM32F205.flash", in stm32f205_soc_realize() 119 "STM32F205.flash.alias", &s->flash, 0, FLASH_SIZE); in stm32f205_soc_realize() 121 memory_region_add_subregion(system_memory, FLASH_BASE_ADDRESS, &s->flash); in stm32f205_soc_realize()
|
H A D | npcm7xx_boards.c | 83 DeviceState *flash; in npcm7xx_connect_flash() local 86 flash = qdev_new(flash_type); in npcm7xx_connect_flash() 88 qdev_prop_set_drive(flash, "drive", blk_by_legacy_dinfo(dinfo)); in npcm7xx_connect_flash() 90 qdev_realize_and_unref(flash, BUS(fiu->spi), &error_fatal); in npcm7xx_connect_flash() 92 flash_cs = qdev_get_gpio_in_named(flash, SSI_GPIO_CS, 0); in npcm7xx_connect_flash()
|
H A D | stm32f405_soc.c | 124 memory_region_init_rom(&s->flash, OBJECT(dev_soc), "STM32F405.flash", in stm32f405_soc_realize() 131 "STM32F405.flash.alias", &s->flash, 0, in stm32f405_soc_realize() 134 memory_region_add_subregion(system_memory, FLASH_BASE_ADDRESS, &s->flash); in stm32f405_soc_realize()
|
/qemu/docs/system/arm/ |
H A D | mps2.rst | 8 FPGA again, can handle 4GB of RAM and has a USB controller and QSPI flash). 45 - AN524 remapping of low memory to either BRAM or to QSPI flash is 51 - QEMU does not model the QSPI flash in MPS3 boards as real QSPI 52 flash, but only as simple ROM, so attempting to rewrite the flash 57 - AN536 does not support enabling or disabling the flash and ATCM
|
H A D | aspeed.rst | 115 Booting from a flash image 118 The machine options specific to Aspeed to boot from a flash image are : 120 * ``execute-in-place`` which emulates the boot from the CE0 flash 129 To boot the machine from the flash image, use an MTD drive : 136 To use other flash models, for instance a different FMC chip and a 143 When more flexibility is needed to define the flash devices, to use 144 different flash models or define all flash devices (up to 8), the 146 flash devices. 198 boot the ``rainier-bmc`` machine from a flash device (default being 202 the flash device with ``boot-emmc=false`` and let the machine use an [all …]
|
H A D | collie.rst | 9 * NOR flash
|
H A D | musicpal.rst | 9 - 32 MB RAM, 256 KB SRAM, 8 MB flash.
|
/qemu/docs/system/riscv/ |
H A D | sifive_u.rst | 25 * 1 ISSI 25WP256 flash 83 - start-in-flash 85 When given, QEMU's ROM codes jump to QSPI memory-mapped flash directly. 108 msel=6 means FSBL and SSBL are both on the QSPI flash. msel=11 means FSBL 226 To start U-Boot using the ``sifive_u`` machine, prepare an SPI flash image, or 255 SPI flash image has slightly different partition offsets, and the size has to 256 be 32 MiB to match the ISSI 25WP256 flash on the real board: 298 Changing msel= value to 6, allows booting U-Boot from the SPI flash: 315 case: ZSBL (in QEMU) loads U-Boot SPL from SD card or SPI flash to L2LIM, 320 without the needs of preparing the SPI flash or SD card images, an alternate
|
/qemu/hw/loongarch/ |
H A D | virt.c | 90 lvms->flash[0] = virt_flash_create1(lvms, "virt.flash0", "pflash0"); in virt_flash_create() 91 lvms->flash[1] = virt_flash_create1(lvms, "virt.flash1", "pflash1"); in virt_flash_create() 94 static void virt_flash_map1(PFlashCFI01 *flash, in virt_flash_map1() argument 98 DeviceState *dev = DEVICE(flash); in virt_flash_map1() 102 blk = pflash_cfi01_get_blk(flash); in virt_flash_map1() 120 PFlashCFI01 *flash0 = lvms->flash[0]; in virt_flash_map() 121 PFlashCFI01 *flash1 = lvms->flash[1]; in virt_flash_map() 466 for (i = 0; i < ARRAY_SIZE(lvms->flash); i++) { in virt_firmware_init() 467 pflash_cfi01_legacy_drive(lvms->flash[i], in virt_firmware_init() 473 pflash_blk0 = pflash_cfi01_get_blk(lvms->flash[0]); in virt_firmware_init() [all …]
|
/qemu/pc-bios/dtb/ |
H A D | petalogix-ml605.dts | 243 flash@86000000 { 247 compatible = "xlnx,axi-emc-1.01.a\0cfi-flash"; 302 xlnx,tpacc-ps-flash-0 = < 0x61a8 >; 303 xlnx,tpacc-ps-flash-1 = < 0x61a8 >; 304 xlnx,tpacc-ps-flash-2 = < 0x61a8 >; 305 xlnx,tpacc-ps-flash-3 = < 0x61a8 >;
|
/qemu/include/hw/arm/ |
H A D | stm32f100_soc.h | 54 MemoryRegion flash; member
|
H A D | nrf51_soc.h | 43 MemoryRegion flash; member
|
H A D | stm32f205_soc.h | 65 MemoryRegion flash; member
|
/qemu/include/hw/ssi/ |
H A D | npcm7xx_fiu.h | 64 NPCM7xxFIUFlash *flash; member
|
/qemu/include/hw/nvram/ |
H A D | nrf51_nvm.h | 54 MemoryRegion flash; member
|
/qemu/hw/avr/ |
H A D | atmega.h | 41 MemoryRegion flash; member
|