Home
last modified time | relevance | path

Searched refs:flash_map (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/arch/mips/cavium-octeon/
H A Dflash_setup.c21 static struct map_info flash_map; variable
97 flash_map.name = "phys_mapped_flash"; in octeon_flash_probe()
98 flash_map.phys = region_cfg.s.base << 16; in octeon_flash_probe()
99 flash_map.size = 0x1fc00000 - flash_map.phys; in octeon_flash_probe()
101 flash_map.bankwidth = region_cfg.s.width + 1; in octeon_flash_probe()
102 flash_map.virt = ioremap(flash_map.phys, flash_map.size); in octeon_flash_probe()
104 "0x%08llx\n", flash_map.size >> 20, flash_map.phys); in octeon_flash_probe()
106 flash_map.read = octeon_flash_map_read; in octeon_flash_probe()
107 flash_map.write = octeon_flash_map_write; in octeon_flash_probe()
109 flash_map.copy_to = octeon_flash_map_copy_to; in octeon_flash_probe()
[all …]
/openbmc/u-boot/drivers/mtd/
H A Dcfi_flash.c209 flash_map(flash_info_t *info, flash_sect_t sect, uint offset) in flash_map() function
293 cp = flash_map(info, 0, offset); in flash_read_uchar()
310 addr = flash_map(info, 0, offset); in flash_read_word()
329 addr = flash_map(info, sect, offset); in flash_read_long()
362 addr = flash_map(info, sect, offset); in flash_write_cmd()
419 addr = flash_map(info, sect, offset); in flash_isequal()
467 addr = flash_map(info, sect, offset); in flash_isset()
500 addr = flash_map(info, sect, offset); in flash_toggle()
1157 dest = flash_map(info, sect, 0); in flash_erase()
1612 src = flash_map(info, 0, FLASH_OFFSET_USER_PROTECTION); in flash_read_user_serial()
[all …]