Lines Matching full:flash
37 #include "hw/block/flash.h"
107 PFlashCFI01 *flash[2]; member
294 * Create a single flash device. We use the same parameters as in sbsa_flash_create1()
295 * the flash devices on the Versatile Express board. in sbsa_flash_create1()
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()
341 * Map two flash devices to fill the SBSA_FLASH space in the memmap. in sbsa_flash_map()
343 * of the system, and the first flash device should be made visible only in sbsa_flash_map()
344 * there. The second flash device is visible to both secure and nonsecure. in sbsa_flash_map()
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()
380 error_report("The contents of the first flash device may be " in sbsa_firmware_init()
393 mr = sysbus_mmio_get_region(SYS_BUS_DEVICE(sms->flash[0]), 0); in sbsa_firmware_init()