/qemu/hw/i386/ |
H A D | pc_sysfw.c | 117 for (i = 0; i < ARRAY_SIZE(pcms->flash); i++) { in pc_system_flash_cleanup_unused() 118 if (!qdev_is_realized(DEVICE(pcms->flash[i]))) { in pc_system_flash_cleanup_unused() 122 object_unparent(OBJECT(pcms->flash[i])); in pc_system_flash_cleanup_unused() 123 pcms->flash[i] = NULL; in pc_system_flash_cleanup_unused() 157 for (i = 0; i < ARRAY_SIZE(pcms->flash); i++) { in pc_system_flash_map() 160 system_flash = pcms->flash[i]; in pc_system_flash_map() 219 BlockBackend *pflash_blk[ARRAY_SIZE(pcms->flash)]; in pc_system_firmware_init() 227 for (i = 0; i < ARRAY_SIZE(pcms->flash); i++) { in pc_system_firmware_init() 228 pflash_cfi01_legacy_drive(pcms->flash[i], in pc_system_firmware_init() 230 pflash_blk[i] = pflash_cfi01_get_blk(pcms->flash[i]); in pc_system_firmware_init() [all …]
|
/qemu/hw/xtensa/ |
H A D | xtfpga.c | 61 const XtfpgaFlashDesc *flash; member 179 board->flash->size / board->flash->sector_size); in xtfpga_flash_init() 231 PFlashCFI01 *flash = NULL; in xtfpga_init() local 447 if (flash) { in xtfpga_init() 452 if (board->flash->size - board->flash->boot_base < size) { in xtfpga_init() 453 size = board->flash->size - board->flash->boot_base; in xtfpga_init() 488 .flash = &lx60_flash, in xtfpga_lx60_init() 498 .flash = &lx60_flash, in xtfpga_lx60_nommu_init() 514 .flash = &lx200_flash, in xtfpga_lx200_init() 524 .flash = &lx200_flash, in xtfpga_lx200_nommu_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() 513 s->flash = g_new0(NPCM7xxFIUFlash, s->cs_count); in npcm7xx_fiu_realize() 524 NPCM7xxFIUFlash *flash = &s->flash[i]; in npcm7xx_fiu_realize() local 525 flash->fiu = s; in npcm7xx_fiu_realize() 526 memory_region_init_io(&flash->direct_access, OBJECT(s), in npcm7xx_fiu_realize() 527 &npcm7xx_fiu_flash_ops, &s->flash[i], "flash", in npcm7xx_fiu_realize() 529 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),
|
H A D | tc6393xb.c | 130 DeviceState *flash; member 356 return nand_getio(s->flash); in tc6393xb_nand_readb() 377 nand_setio(s->flash, value); in tc6393xb_nand_writeb() 383 nand_setpins(s->flash, in tc6393xb_nand_writeb() 553 s->flash = nand_init(nand ? blk_by_legacy_dinfo(nand) : NULL, in tc6393xb_init()
|
/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 | 107 To boot the machine from the flash image, use an MTD drive : 116 * ``execute-in-place`` which emulates the boot from the CE0 flash 130 To use other flash models, for instance a different FMC chip and a 137 When more flexibility is needed to define the flash devices, to use 138 different flash models or define all flash devices (up to 8), the 140 flash devices.
|
H A D | collie.rst | 9 * NOR flash
|
/qemu/hw/arm/ |
H A D | sbsa-ref.c | 111 PFlashCFI01 *flash[2]; member 315 sms->flash[0] = sbsa_flash_create1(sms, "sbsa.flash0", "pflash0"); in sbsa_flash_create() 316 sms->flash[1] = sbsa_flash_create1(sms, "sbsa.flash1", "pflash1"); in sbsa_flash_create() 319 static void sbsa_flash_map1(PFlashCFI01 *flash, in sbsa_flash_map1() argument 323 DeviceState *dev = DEVICE(flash); in sbsa_flash_map1() 348 sbsa_flash_map1(sms->flash[0], flashbase, flashsize, in sbsa_flash_map() 350 sbsa_flash_map1(sms->flash[1], flashbase + flashsize, flashsize, in sbsa_flash_map() 363 for (i = 0; i < ARRAY_SIZE(sms->flash); i++) { in sbsa_firmware_init() 364 pflash_cfi01_legacy_drive(sms->flash[i], in sbsa_firmware_init() 370 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 | 108 MemoryRegion *flash = g_new(MemoryRegion, 1); in sx1_init() local 134 memory_region_init_rom(flash, NULL, "omap_sx1.flash0-0", flash_size, in sx1_init() 136 memory_region_add_subregion(address_space, OMAP_CS0_BASE, flash); in sx1_init()
|
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 | 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 | palm.c | 236 MemoryRegion *flash = g_new(MemoryRegion, 1); in palmte_init() local 252 memory_region_init_rom(flash, NULL, "palmte.flash", flash_size, in palmte_init() 254 memory_region_add_subregion(address_space_mem, OMAP_CS0_BASE, flash); in palmte_init()
|
H A D | stm32f405_soc.c | 121 memory_region_init_rom(&s->flash, OBJECT(dev_soc), "STM32F405.flash", in stm32f405_soc_realize() 128 "STM32F405.flash.alias", &s->flash, 0, in stm32f405_soc_realize() 131 memory_region_add_subregion(system_memory, FLASH_BASE_ADDRESS, &s->flash); in stm32f405_soc_realize()
|
/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
|
H A D | virt.rst | 18 * CFI parallel NOR flash memory 56 Using flash devices 59 By default, the first flash device (pflash0) is expected to contain 61 second flash device (pflash1) available to store configuration data. 74 the first flash device (pflash0) by additionally passing ``-bios
|
/qemu/hw/loongarch/ |
H A D | virt.c | 100 lvms->flash[0] = virt_flash_create1(lvms, "virt.flash0", "pflash0"); in virt_flash_create() 104 static void virt_flash_map1(PFlashCFI01 *flash, in virt_flash_map1() argument 108 DeviceState *dev = DEVICE(flash); in virt_flash_map1() 112 blk = pflash_cfi01_get_blk(flash); in virt_flash_map1() 130 PFlashCFI01 *flash0 = lvms->flash[0]; in virt_flash_map() 131 PFlashCFI01 *flash1 = lvms->flash[1]; in virt_flash_map() 244 flash_mem = pflash_cfi01_get_memory(lvms->flash[0]); in fdt_add_flash_node() 248 flash_mem = pflash_cfi01_get_memory(lvms->flash[1]); in fdt_add_flash_node() 898 for (i = 0; i < ARRAY_SIZE(lvms->flash); i++) { in virt_firmware_init() 899 pflash_cfi01_legacy_drive(lvms->flash[i], in virt_firmware_init() [all …]
|
/qemu/pc-bios/ |
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
|
/qemu/include/hw/ssi/ |
H A D | npcm7xx_fiu.h | 63 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
|