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

Go to the source code of this file.

Data Structures

struct  nuc910_nand_controller
 

Functions

 NAND_DEVICE_COMMAND_HANDLER (nuc910_nand_device_command)
 
static int nuc910_nand_address (struct nand_device *nand, uint8_t address)
 
static int nuc910_nand_command (struct nand_device *nand, uint8_t command)
 
static int nuc910_nand_init (struct nand_device *nand)
 
static int nuc910_nand_read (struct nand_device *nand, void *data)
 
static int nuc910_nand_read_block_data (struct nand_device *nand, uint8_t *data, int data_size)
 
static int nuc910_nand_ready (struct nand_device *nand, int timeout)
 
static int nuc910_nand_reset (struct nand_device *nand)
 
static int nuc910_nand_write (struct nand_device *nand, uint16_t data)
 
static int nuc910_nand_write_block_data (struct nand_device *nand, uint8_t *data, int data_size)
 
static int validate_target_state (struct nand_device *nand)
 

Variables

struct nand_flash_controller nuc910_nand_controller
 

Function Documentation

◆ NAND_DEVICE_COMMAND_HANDLER()

NAND_DEVICE_COMMAND_HANDLER ( nuc910_nand_device_command  )

Definition at line 157 of file nuc910.c.

References ERROR_NAND_DEVICE_INVALID, ERROR_OK, and LOG_ERROR.

◆ nuc910_nand_address()

static int nuc910_nand_address ( struct nand_device nand,
uint8_t  address 
)
static

◆ nuc910_nand_command()

static int nuc910_nand_command ( struct nand_device nand,
uint8_t  command 
)
static

Definition at line 37 of file nuc910.c.

References ERROR_OK, NUC910_SMCMD, nand_device::target, target_write_u8(), and validate_target_state().

Referenced by nuc910_nand_reset().

◆ nuc910_nand_init()

static int nuc910_nand_init ( struct nand_device nand)
static

Definition at line 171 of file nuc910.c.

◆ nuc910_nand_read()

static int nuc910_nand_read ( struct nand_device nand,
void *  data 
)
static

◆ nuc910_nand_read_block_data()

static int nuc910_nand_read_block_data ( struct nand_device nand,
uint8_t *  data,
int  data_size 
)
static

◆ nuc910_nand_ready()

static int nuc910_nand_ready ( struct nand_device nand,
int  timeout 
)
static

◆ nuc910_nand_reset()

static int nuc910_nand_reset ( struct nand_device nand)
static

Definition at line 137 of file nuc910.c.

References NAND_CMD_RESET, and nuc910_nand_command().

◆ nuc910_nand_write()

static int nuc910_nand_write ( struct nand_device nand,
uint16_t  data 
)
static

◆ nuc910_nand_write_block_data()

static int nuc910_nand_write_block_data ( struct nand_device nand,
uint8_t *  data,
int  data_size 
)
static

◆ validate_target_state()

Variable Documentation

◆ nuc910_nand_controller

Initial value:
= {
.name = "nuc910",
.command = nuc910_nand_command,
.address = nuc910_nand_address,
.read_data = nuc910_nand_read,
.write_data = nuc910_nand_write,
.write_block_data = nuc910_nand_write_block_data,
.read_block_data = nuc910_nand_read_block_data,
.nand_ready = nuc910_nand_ready,
.nand_device_command = nuc910_nand_device_command,
}
static int nuc910_nand_read_block_data(struct nand_device *nand, uint8_t *data, int data_size)
Definition: nuc910.c:89
static int nuc910_nand_write_block_data(struct nand_device *nand, uint8_t *data, int data_size)
Definition: nuc910.c:113
static int nuc910_nand_command(struct nand_device *nand, uint8_t command)
Definition: nuc910.c:37
static int nuc910_nand_ready(struct nand_device *nand, int timeout)
Definition: nuc910.c:142
static int nuc910_nand_init(struct nand_device *nand)
Definition: nuc910.c:171
static int nuc910_nand_reset(struct nand_device *nand)
Definition: nuc910.c:137
static int nuc910_nand_read(struct nand_device *nand, void *data)
Definition: nuc910.c:63
static int nuc910_nand_write(struct nand_device *nand, uint16_t data)
Definition: nuc910.c:76
static int nuc910_nand_address(struct nand_device *nand, uint8_t address)
Definition: nuc910.c:50

Definition at line 171 of file nuc910.c.