OpenOCD
|
Go to the source code of this file.
Functions | |
int | nand_build_bbt (struct nand_device *nand, int first, int last) |
void | nand_device_add (struct nand_device *c) |
int | nand_erase (struct nand_device *nand, int first_block, int last_block) |
int | nand_probe (struct nand_device *nand) |
int | nand_read_page (struct nand_device *nand, uint32_t page, uint8_t *data, uint32_t data_size, uint8_t *oob, uint32_t oob_size) |
int | nand_write_page (struct nand_device *nand, uint32_t page, uint8_t *data, uint32_t data_size, uint8_t *oob, uint32_t oob_size) |
int nand_build_bbt | ( | struct nand_device * | nand, |
int | first, | ||
int | last | ||
) |
Definition at line 215 of file flash/nand/core.c.
References nand_device::blocks, nand_device::device, nand_device::erase_size, ERROR_OK, nand_block::is_bad, LOG_WARNING, NAND_BUSWIDTH_16, nand_read_page(), NULL, nand_device::num_blocks, nand_info::options, and nand_device::page_size.
Referenced by COMMAND_HANDLER(), and nand_erase().
void nand_device_add | ( | struct nand_device * | c | ) |
Definition at line 20 of file flash/nand/core.c.
References nand_devices, and nand_device::next.
Referenced by COMMAND_HELPER().
int nand_erase | ( | struct nand_device * | nand, |
int | first_block, | ||
int | last_block | ||
) |
Definition at line 502 of file flash/nand/core.c.
References nand_flash_controller::address, nand_device::address_cycles, nand_device::blocks, nand_flash_controller::command, nand_device::controller, nand_device::device, nand_device::erase_size, ERROR_COMMAND_SYNTAX_ERROR, ERROR_NAND_DEVICE_NOT_PROBED, ERROR_NAND_OPERATION_FAILED, ERROR_NAND_OPERATION_TIMEOUT, ERROR_OK, nand_block::is_bad, nand_block::is_erased, LOG_ERROR, nand_build_bbt(), NAND_CMD_ERASE1, NAND_CMD_ERASE2, nand_poll_ready(), nand_read_status(), nand_flash_controller::nand_ready, nand_device::num_blocks, nand_device::page_size, and status.
Referenced by COMMAND_HANDLER().
int nand_probe | ( | struct nand_device * | nand | ) |
Definition at line 291 of file flash/nand/core.c.
References nand_flash_controller::address, nand_device::address_cycles, nand_device::blocks, nand_device::bus_width, nand_info::chip_size, nand_flash_controller::command, nand_device::controller, nand_device::device, nand_device::erase_size, nand_info::erase_size, ERROR_NAND_OPERATION_FAILED, ERROR_NAND_OPERATION_NOT_SUPPORTED, ERROR_OK, nand_manufacturer::id, nand_flash_controller::init, nand_block::is_bad, nand_block::is_erased, LOG_DEBUG, LOG_ERROR, nand_device::manufacturer, nand_manufacturer::name, nand_info::name, NAND_BUSWIDTH_16, NAND_CMD_READID, NAND_CMD_RESET, nand_flash_ids, nand_manuf_ids, NULL, nand_device::num_blocks, nand_block::offset, nand_info::options, nand_device::page_size, nand_info::page_size, nand_flash_controller::read_data, nand_flash_controller::reset, and nand_block::size.
Referenced by COMMAND_HANDLER().
int nand_read_page | ( | struct nand_device * | nand, |
uint32_t | page, | ||
uint8_t * | data, | ||
uint32_t | data_size, | ||
uint8_t * | oob, | ||
uint32_t | oob_size | ||
) |
Definition at line 680 of file flash/nand/core.c.
References nand_device::controller, nand_device::device, ERROR_NAND_DEVICE_NOT_PROBED, nand_read_page_raw(), nand_flash_controller::read_page, and nand_device::use_raw.
Referenced by COMMAND_HANDLER(), and nand_build_bbt().
int nand_write_page | ( | struct nand_device * | nand, |
uint32_t | page, | ||
uint8_t * | data, | ||
uint32_t | data_size, | ||
uint8_t * | oob, | ||
uint32_t | oob_size | ||
) |
Definition at line 661 of file flash/nand/core.c.
References nand_device::blocks, nand_device::controller, nand_device::device, nand_device::erase_size, ERROR_NAND_DEVICE_NOT_PROBED, nand_block::is_erased, nand_write_page_raw(), nand_device::page_size, nand_device::use_raw, and nand_flash_controller::write_page.
Referenced by COMMAND_HANDLER().