OpenOCD
non_cfi.c File Reference
Include dependency graph for non_cfi.c:

Go to the source code of this file.

Macros

#define ERASE_REGION(num, size)   (((size/256) << 16) | (num-1))
 
#define KB   1024
 
#define MB   (1024*1024)
 

Functions

void cfi_fixup_non_cfi (struct flash_bank *bank)
 

Variables

static const struct non_cfi non_cfi_flashes []
 

Macro Definition Documentation

◆ ERASE_REGION

#define ERASE_REGION (   num,
  size 
)    (((size/256) << 16) | (num-1))

Definition at line 20 of file non_cfi.c.

◆ KB

#define KB   1024

Definition at line 18 of file non_cfi.c.

◆ MB

#define MB   (1024*1024)

Definition at line 19 of file non_cfi.c.

Function Documentation

◆ cfi_fixup_non_cfi()

void cfi_fixup_non_cfi ( struct flash_bank bank)

Definition at line 458 of file non_cfi.c.

References cfi_spansion_pri_ext::_reversed_geometry, cfi_spansion_pri_ext::_unlock1, cfi_spansion_pri_ext::_unlock2, cfi_flash_bank::alt_addr, cfi_flash_bank::alt_ext, cfi_flash_bank::alt_id, bank, cfi_spansion_pri_ext::blk_prot, cfi_spansion_pri_ext::blk_prot_unprot, cfi_flash_bank::block_erase_timeout_max, cfi_flash_bank::block_erase_timeout_typ, cfi_flash_bank::buf_write_timeout_max, cfi_flash_bank::buf_write_timeout_typ, cfi_spansion_pri_ext::burst_mode, cfi_flash_bank::chip_erase_timeout_max, cfi_flash_bank::chip_erase_timeout_typ, cfi_flash_bank::dev_size, non_cfi::dev_size, cfi_flash_bank::device_id, cfi_flash_bank::erase_region_info, non_cfi::erase_region_info, cfi_spansion_pri_ext::erase_suspend, non_cfi::id, cfi_flash_bank::interface_desc, non_cfi::interface_desc, LOG_ERROR, cfi_spansion_pri_ext::major_version, cfi_flash_bank::manufacturer, mask, cfi_flash_bank::max_buf_write_size, non_cfi::max_buf_write_size, non_cfi::mfr, cfi_spansion_pri_ext::minor_version, non_cfi_flashes, cfi_flash_bank::not_cfi, NULL, cfi_flash_bank::num_erase_regions, non_cfi::num_erase_regions, cfi_spansion_pri_ext::page_mode, cfi_spansion_pri_ext::pri, cfi_flash_bank::pri_addr, cfi_flash_bank::pri_ext, cfi_flash_bank::pri_id, non_cfi::pri_id, cfi_flash_bank::qry, cfi_spansion_pri_ext::silicon_revision, cfi_spansion_pri_ext::simultaneous_ops, cfi_flash_bank::status_poll_mask, non_cfi::status_poll_mask, cfi_spansion_pri_ext::tmp_blk_unprotected, cfi_spansion_pri_ext::top_bottom, cfi_flash_bank::vcc_max, cfi_flash_bank::vcc_min, cfi_flash_bank::vpp_max, cfi_spansion_pri_ext::vpp_max, cfi_flash_bank::vpp_min, cfi_spansion_pri_ext::vpp_min, cfi_flash_bank::word_write_timeout_max, cfi_flash_bank::word_write_timeout_typ, and cfi_flash_bank::x16_as_x8.

Referenced by cfi_probe().

Variable Documentation

◆ non_cfi_flashes

const struct non_cfi non_cfi_flashes[]
static

Definition at line 1 of file non_cfi.c.

Referenced by cfi_fixup_non_cfi().