Go to the source code of this file.
|
| FLASH_BANK_COMMAND_HANDLER (lpc288x_flash_bank_command) |
|
static int | lpc288x_erase (struct flash_bank *bank, unsigned int first, unsigned int last) |
|
static void | lpc288x_load_timer (int erase, struct target *target) |
|
static int | lpc288x_probe (struct flash_bank *bank) |
|
static int | lpc288x_protect (struct flash_bank *bank, int set, unsigned int first, unsigned int last) |
|
static int | lpc288x_protect_check (struct flash_bank *bank) |
|
static int | lpc288x_read_part_info (struct flash_bank *bank) |
|
static void | lpc288x_set_flash_clk (struct flash_bank *bank) |
|
static uint32_t | lpc288x_system_ready (struct flash_bank *bank) |
|
static uint32_t | lpc288x_wait_status_busy (struct flash_bank *bank, int timeout) |
|
static int | lpc288x_write (struct flash_bank *bank, const uint8_t *buffer, uint32_t offset, uint32_t count) |
|
◆ DBGU_CIDR
#define DBGU_CIDR 0x8000507C |
◆ F_CLK_TIME
◆ F_CTRL
#define F_CTRL 0x80102000 /* Flash control register R/W 0x5 */ |
◆ F_INT_CLR
#define F_INT_CLR 0x80102FE8 /* Clear interrupt status bits WO */ |
◆ F_INT_SET
#define F_INT_SET 0x80102FEC /* Set interrupt status bits WO - */ |
◆ F_INT_STAT
#define F_INT_STAT 0x80102FE0 /* Interrupt status bits RO 0 */ |
◆ F_INTEN
#define F_INTEN 0x80102FE4 /* Interrupt enable bits RO 0 */ |
◆ F_INTEN_CLR
#define F_INTEN_CLR 0x80102FD8 /* Clear interrupt enable bits WO - */ |
◆ F_INTEN_SET
#define F_INTEN_SET 0x80102FDC /* Set interrupt enable bits WO - */ |
◆ F_PROG_TIME
#define F_PROG_TIME 0x80102008 /* Flash program time register R/W 0 */ |
◆ F_STAT
#define F_STAT 0x80102004 /* Flash status register RO 0x45 */ |
◆ F_WAIT
#define F_WAIT 0x80102010 /* Flash read wait state register R/W 0xC004 */ |
◆ FC_CLR_BUF
#define FC_CLR_BUF 0x4000 |
◆ FC_CS
◆ FC_FUNC
◆ FC_LOAD_REQ
#define FC_LOAD_REQ 0x8000 |
◆ FC_PROG_REQ
#define FC_PROG_REQ 0x1000 |
◆ FC_PROTECT
#define FC_PROTECT 0x0080 |
◆ FC_RD_LATCH
#define FC_RD_LATCH 0x0020 |
◆ FC_RSSL
◆ FC_SET_DATA
#define FC_SET_DATA 0x0400 |
◆ FC_WEN
◆ FCT_CLK_DIV_MASK
#define FCT_CLK_DIV_MASK 0x0FFF |
◆ FLASH_INIT
◆ FLASH_PAGE_SIZE
#define FLASH_PAGE_SIZE 512 |
◆ FLASH_PD
◆ FPT_ENABLE
#define FPT_ENABLE 0x8000 |
◆ FPT_TIME_MASK
#define FPT_TIME_MASK 0x7FFF |
◆ FS_DONE
◆ FS_ERR
◆ FS_PROGGNT
#define FS_PROGGNT 0x0002 |
◆ FS_RDY
◆ FW_SET_MASK
#define FW_SET_MASK 0xC000 |
◆ FW_WAIT_STATES_MASK
#define FW_WAIT_STATES_MASK 0x00FF |
◆ LOAD_TIMER_ERASE
#define LOAD_TIMER_ERASE 0 |
◆ LOAD_TIMER_WRITE
#define LOAD_TIMER_WRITE 1 |
◆ FLASH_BANK_COMMAND_HANDLER()
FLASH_BANK_COMMAND_HANDLER |
( |
lpc288x_flash_bank_command |
| ) |
|
◆ lpc288x_erase()
static int lpc288x_erase |
( |
struct flash_bank * |
bank, |
|
|
unsigned int |
first, |
|
|
unsigned int |
last |
|
) |
| |
|
static |
◆ lpc288x_load_timer()
static void lpc288x_load_timer |
( |
int |
erase, |
|
|
struct target * |
target |
|
) |
| |
|
static |
◆ lpc288x_probe()
static int lpc288x_probe |
( |
struct flash_bank * |
bank | ) |
|
|
static |
◆ lpc288x_protect()
static int lpc288x_protect |
( |
struct flash_bank * |
bank, |
|
|
int |
set, |
|
|
unsigned int |
first, |
|
|
unsigned int |
last |
|
) |
| |
|
static |
◆ lpc288x_protect_check()
static int lpc288x_protect_check |
( |
struct flash_bank * |
bank | ) |
|
|
static |
◆ lpc288x_read_part_info()
static int lpc288x_read_part_info |
( |
struct flash_bank * |
bank | ) |
|
|
static |
◆ lpc288x_set_flash_clk()
static void lpc288x_set_flash_clk |
( |
struct flash_bank * |
bank | ) |
|
|
static |
◆ lpc288x_system_ready()
static uint32_t lpc288x_system_ready |
( |
struct flash_bank * |
bank | ) |
|
|
static |
◆ lpc288x_wait_status_busy()
static uint32_t lpc288x_wait_status_busy |
( |
struct flash_bank * |
bank, |
|
|
int |
timeout |
|
) |
| |
|
static |
◆ lpc288x_write()
static int lpc288x_write |
( |
struct flash_bank * |
bank, |
|
|
const uint8_t * |
buffer, |
|
|
uint32_t |
offset, |
|
|
uint32_t |
count |
|
) |
| |
|
static |
◆ lpc288x_flash
Initial value:= {
.name = "lpc288x",
.flash_bank_command = lpc288x_flash_bank_command,
}
int default_flash_blank_check(struct flash_bank *bank)
Provides default erased-bank check handling.
int default_flash_read(struct flash_bank *bank, uint8_t *buffer, uint32_t offset, uint32_t count)
Provides default read implementation for flash memory.
void default_flash_free_driver_priv(struct flash_bank *bank)
Deallocates bank->driver_priv.
static int lpc288x_erase(struct flash_bank *bank, unsigned int first, unsigned int last)
static int lpc288x_protect_check(struct flash_bank *bank)
static int lpc288x_probe(struct flash_bank *bank)
static int lpc288x_write(struct flash_bank *bank, const uint8_t *buffer, uint32_t offset, uint32_t count)
static int lpc288x_protect(struct flash_bank *bank, int set, unsigned int first, unsigned int last)
Definition at line 367 of file lpc288x.c.