OpenOCD
|
Go to the source code of this file.
Macros | |
#define | PRC_PHYCNT_EXDS BIT(21) |
#define | PRC_PHYCNT_OCTA_AA BIT(22) |
#define | PRC_PHYCNT_OCTA_SA BIT(23) |
#define | RPC_CMNCR 0x0000 /* R/W */ |
#define | RPC_CMNCR_BSZ(val) (((val) & 0x3) << 0) |
#define | RPC_CMNCR_IO0FV(val) (((val) & 0x3) << 8) |
#define | RPC_CMNCR_IO2FV(val) (((val) & 0x3) << 12) |
#define | RPC_CMNCR_IO3FV(val) (((val) & 0x3) << 14) |
#define | RPC_CMNCR_IOFV_HIZ |
#define | RPC_CMNCR_MD BIT(31) |
#define | RPC_CMNCR_MOIIO0(val) (((val) & 0x3) << 16) |
#define | RPC_CMNCR_MOIIO1(val) (((val) & 0x3) << 18) |
#define | RPC_CMNCR_MOIIO2(val) (((val) & 0x3) << 20) |
#define | RPC_CMNCR_MOIIO3(val) (((val) & 0x3) << 22) |
#define | RPC_CMNCR_MOIIO_HIZ |
#define | RPC_CMNSR 0x0048 /* R */ |
#define | RPC_CMNSR_SSLF BIT(1) |
#define | RPC_CMNSR_TEND BIT(0) |
#define | RPC_DRCMR 0x0010 /* R/W */ |
#define | RPC_DRCMR_CMD(c) (((c) & 0xFF) << 16) |
#define | RPC_DRCMR_OCMD(c) (((c) & 0xFF) << 0) |
#define | RPC_DRCR 0x000C /* R/W */ |
#define | RPC_DRCR_RBE BIT(8) |
#define | RPC_DRCR_RBURST(v) (((v) & 0x1F) << 16) |
#define | RPC_DRCR_RCF BIT(9) |
#define | RPC_DRCR_SSLE BIT(0) |
#define | RPC_DRCR_SSLN BIT(24) |
#define | RPC_DRDMCR 0x0058 /* R/W */ |
#define | RPC_DRDMCR_DMCYC(v) (((v) & 0xF) << 0) |
#define | RPC_DRDRENR 0x005C /* R/W */ |
#define | RPC_DRDRENR_ADDRE BIT(8) |
#define | RPC_DRDRENR_DRDRE BIT(0) |
#define | RPC_DRDRENR_HYPE (0x5 << 12) |
#define | RPC_DRDRENR_OPDRE BIT(4) |
#define | RPC_DREAR 0x0014 /* R/W */ |
#define | RPC_DREAR_EAC(v) (((v) & 0x7) << 0) |
#define | RPC_DREAR_EAV(v) (((v) & 0xFF) << 16) |
#define | RPC_DRENR 0x001C /* R/W */ |
#define | RPC_DRENR_ADB(o) (((o) & 0x3) << 24) |
#define | RPC_DRENR_ADE(v) (((v) & 0xF) << 8) |
#define | RPC_DRENR_CDB(o) (uint32_t)((((o) & 0x3) << 30)) |
#define | RPC_DRENR_CDE BIT(14) |
#define | RPC_DRENR_DME BIT(15) |
#define | RPC_DRENR_OCDB(o) (((o) & 0x3) << 28) |
#define | RPC_DRENR_OCDE BIT(12) |
#define | RPC_DRENR_OPDB(o) (((o) & 0x3) << 20) |
#define | RPC_DRENR_OPDE(v) (((v) & 0xF) << 4) |
#define | RPC_DRENR_SPIDB(o) (((o) & 0x3) << 16) |
#define | RPC_DROPR 0x0018 /* R/W */ |
#define | RPC_DROPR_OPD0(o) (((o) & 0xFF) << 0) |
#define | RPC_DROPR_OPD1(o) (((o) & 0xFF) << 8) |
#define | RPC_DROPR_OPD2(o) (((o) & 0xFF) << 16) |
#define | RPC_DROPR_OPD3(o) (((o) & 0xFF) << 24) |
#define | RPC_PHYCNT 0x007C /* R/W */ |
#define | RPC_PHYCNT_CAL BIT(31) |
#define | RPC_PHYCNT_MEM(v) (((v) & 0x3) << 0) |
#define | RPC_PHYCNT_OCT BIT(20) |
#define | RPC_PHYCNT_WBUF BIT(2) |
#define | RPC_PHYCNT_WBUF2 BIT(4) |
#define | RPC_PHYINT 0x0088 /* R/W */ |
#define | RPC_PHYINT_INT BIT(0) |
#define | RPC_PHYINT_INTEN BIT(16) |
#define | RPC_PHYINT_RST BIT(2) |
#define | RPC_PHYINT_RSTEN BIT(18) |
#define | RPC_PHYINT_WP BIT(1) |
#define | RPC_PHYINT_WPEN BIT(17) |
#define | RPC_SMADR 0x0028 /* R/W */ |
#define | RPC_SMCMR 0x0024 /* R/W */ |
#define | RPC_SMCMR_CMD(c) (((c) & 0xFF) << 16) |
#define | RPC_SMCMR_OCMD(c) (((c) & 0xFF) << 0) |
#define | RPC_SMCR 0x0020 /* R/W */ |
#define | RPC_SMCR_SPIE BIT(0) |
#define | RPC_SMCR_SPIRE BIT(2) |
#define | RPC_SMCR_SPIWE BIT(1) |
#define | RPC_SMCR_SSLKP BIT(8) |
#define | RPC_SMDMCR 0x0060 /* R/W */ |
#define | RPC_SMDMCR_DMCYC(v) (((v) & 0xF) << 0) |
#define | RPC_SMDRENR 0x0064 /* R/W */ |
#define | RPC_SMDRENR_ADDRE BIT(8) |
#define | RPC_SMDRENR_HYPE (0x5 << 12) |
#define | RPC_SMDRENR_OPDRE BIT(4) |
#define | RPC_SMDRENR_SPIDRE BIT(0) |
#define | RPC_SMENR 0x0030 /* R/W */ |
#define | RPC_SMENR_ADB(o) (((o) & 0x3) << 24) |
#define | RPC_SMENR_ADE(v) (((v) & 0xF) << 8) |
#define | RPC_SMENR_CDB(o) (((o) & 0x3) << 30) |
#define | RPC_SMENR_CDE BIT(14) |
#define | RPC_SMENR_DME BIT(15) |
#define | RPC_SMENR_OCDB(o) (((o) & 0x3) << 28) |
#define | RPC_SMENR_OCDE BIT(12) |
#define | RPC_SMENR_OPDB(o) (((o) & 0x3) << 20) |
#define | RPC_SMENR_OPDE(v) (((v) & 0xF) << 4) |
#define | RPC_SMENR_SPIDB(o) (((o) & 0x3) << 16) |
#define | RPC_SMENR_SPIDE(v) (((v) & 0xF) << 0) |
#define | RPC_SMOPR 0x002C /* R/W */ |
#define | RPC_SMOPR_OPD0(o) (((o) & 0xFF) << 0) |
#define | RPC_SMOPR_OPD1(o) (((o) & 0xFF) << 8) |
#define | RPC_SMOPR_OPD2(o) (((o) & 0xFF) << 16) |
#define | RPC_SMOPR_OPD3(o) (((o) & 0xFF) << 24) |
#define | RPC_SMRDR0 0x0038 /* R */ |
#define | RPC_SMRDR1 0x003C /* R */ |
#define | RPC_SMWDR0 0x0040 /* R/W */ |
#define | RPC_SMWDR1 0x0044 /* R/W */ |
#define | RPC_SSLDR 0x0004 /* R/W */ |
#define | RPC_SSLDR_SCKDL(d) (((d) & 0x7) << 0) |
#define | RPC_SSLDR_SLNDL(d) (((d) & 0x7) << 8) |
#define | RPC_SSLDR_SPNDL(d) (((d) & 0x7) << 16) |
#define | RPC_WBUF 0x8000 /* R/W size=4/8/16/32/64Bytes */ |
#define | RPC_WBUF_SIZE 0x100 |
Enumerations | |
enum | rpc_hf_size { RPC_HF_SIZE_16BIT = RPC_SMENR_SPIDE(0x8) , RPC_HF_SIZE_32BIT = RPC_SMENR_SPIDE(0xC) , RPC_HF_SIZE_64BIT = RPC_SMENR_SPIDE(0xF) } |
Functions | |
static int | clrsetbits_u32 (struct target *target, uint32_t reg, uint32_t clr, uint32_t set) |
FLASH_BANK_COMMAND_HANDLER (rpchf_flash_bank_command) | |
static int | rpc_hf_mode (struct target *target, bool manual) |
static int | rpc_hf_wait_tend (struct target *target) |
static int | rpc_hf_xfer (struct target *target, target_addr_t addr, uint32_t wdata, uint32_t *rdata, enum rpc_hf_size size, bool write, const uint8_t *wbuf, unsigned int wbuf_size) |
static int | rpchf_read (struct flash_bank *bank, uint8_t *buffer, uint32_t offset, uint32_t count) |
static int | rpchf_spansion_write_words (struct flash_bank *bank, const uint8_t *word, uint32_t wordcount, uint32_t address) |
static int | rpchf_target_read_memory (struct flash_bank *bank, target_addr_t addr, uint32_t count, uint8_t *buffer) |
static int | rpchf_target_write_memory (struct flash_bank *bank, target_addr_t addr, uint32_t count, const uint8_t *buffer) |
static int | rpchf_write (struct flash_bank *bank, const uint8_t *buffer, uint32_t offset, uint32_t count) |
static int | rpchf_write_words (struct flash_bank *bank, const uint8_t *word, uint32_t wordcount, uint32_t address) |
Variables | |
static uint32_t | mem_base = 0x08000000 |
const struct flash_driver | renesas_rpchf_flash |
static uint32_t | rpc_base = 0xee200000 |
#define PRC_PHYCNT_EXDS BIT(21) |
Definition at line 136 of file renesas_rpchf.c.
#define PRC_PHYCNT_OCTA_AA BIT(22) |
Definition at line 134 of file renesas_rpchf.c.
#define PRC_PHYCNT_OCTA_SA BIT(23) |
Definition at line 135 of file renesas_rpchf.c.
#define RPC_CMNCR 0x0000 /* R/W */ |
Definition at line 23 of file renesas_rpchf.c.
#define RPC_CMNCR_BSZ | ( | val | ) | (((val) & 0x3) << 0) |
Definition at line 36 of file renesas_rpchf.c.
#define RPC_CMNCR_IO0FV | ( | val | ) | (((val) & 0x3) << 8) |
Definition at line 31 of file renesas_rpchf.c.
#define RPC_CMNCR_IO2FV | ( | val | ) | (((val) & 0x3) << 12) |
Definition at line 32 of file renesas_rpchf.c.
#define RPC_CMNCR_IO3FV | ( | val | ) | (((val) & 0x3) << 14) |
Definition at line 33 of file renesas_rpchf.c.
#define RPC_CMNCR_IOFV_HIZ |
Definition at line 34 of file renesas_rpchf.c.
#define RPC_CMNCR_MD BIT(31) |
Definition at line 24 of file renesas_rpchf.c.
#define RPC_CMNCR_MOIIO0 | ( | val | ) | (((val) & 0x3) << 16) |
Definition at line 25 of file renesas_rpchf.c.
#define RPC_CMNCR_MOIIO1 | ( | val | ) | (((val) & 0x3) << 18) |
Definition at line 26 of file renesas_rpchf.c.
#define RPC_CMNCR_MOIIO2 | ( | val | ) | (((val) & 0x3) << 20) |
Definition at line 27 of file renesas_rpchf.c.
#define RPC_CMNCR_MOIIO3 | ( | val | ) | (((val) & 0x3) << 22) |
Definition at line 28 of file renesas_rpchf.c.
#define RPC_CMNCR_MOIIO_HIZ |
Definition at line 29 of file renesas_rpchf.c.
#define RPC_CMNSR 0x0048 /* R */ |
Definition at line 110 of file renesas_rpchf.c.
#define RPC_CMNSR_SSLF BIT(1) |
Definition at line 111 of file renesas_rpchf.c.
#define RPC_CMNSR_TEND BIT(0) |
Definition at line 112 of file renesas_rpchf.c.
#define RPC_DRCMR 0x0010 /* R/W */ |
Definition at line 50 of file renesas_rpchf.c.
#define RPC_DRCMR_CMD | ( | c | ) | (((c) & 0xFF) << 16) |
Definition at line 51 of file renesas_rpchf.c.
#define RPC_DRCMR_OCMD | ( | c | ) | (((c) & 0xFF) << 0) |
Definition at line 52 of file renesas_rpchf.c.
#define RPC_DRCR 0x000C /* R/W */ |
Definition at line 43 of file renesas_rpchf.c.
#define RPC_DRCR_RBE BIT(8) |
Definition at line 47 of file renesas_rpchf.c.
#define RPC_DRCR_RBURST | ( | v | ) | (((v) & 0x1F) << 16) |
Definition at line 45 of file renesas_rpchf.c.
#define RPC_DRCR_RCF BIT(9) |
Definition at line 46 of file renesas_rpchf.c.
#define RPC_DRCR_SSLE BIT(0) |
Definition at line 48 of file renesas_rpchf.c.
#define RPC_DRCR_SSLN BIT(24) |
Definition at line 44 of file renesas_rpchf.c.
#define RPC_DRDMCR 0x0058 /* R/W */ |
Definition at line 114 of file renesas_rpchf.c.
#define RPC_DRDMCR_DMCYC | ( | v | ) | (((v) & 0xF) << 0) |
Definition at line 115 of file renesas_rpchf.c.
#define RPC_DRDRENR 0x005C /* R/W */ |
Definition at line 117 of file renesas_rpchf.c.
#define RPC_DRDRENR_ADDRE BIT(8) |
Definition at line 119 of file renesas_rpchf.c.
#define RPC_DRDRENR_DRDRE BIT(0) |
Definition at line 121 of file renesas_rpchf.c.
#define RPC_DRDRENR_HYPE (0x5 << 12) |
Definition at line 118 of file renesas_rpchf.c.
#define RPC_DRDRENR_OPDRE BIT(4) |
Definition at line 120 of file renesas_rpchf.c.
#define RPC_DREAR 0x0014 /* R/W */ |
Definition at line 54 of file renesas_rpchf.c.
#define RPC_DREAR_EAC | ( | v | ) | (((v) & 0x7) << 0) |
Definition at line 56 of file renesas_rpchf.c.
#define RPC_DREAR_EAV | ( | v | ) | (((v) & 0xFF) << 16) |
Definition at line 55 of file renesas_rpchf.c.
#define RPC_DRENR 0x001C /* R/W */ |
Definition at line 64 of file renesas_rpchf.c.
#define RPC_DRENR_ADB | ( | o | ) | (((o) & 0x3) << 24) |
Definition at line 67 of file renesas_rpchf.c.
#define RPC_DRENR_ADE | ( | v | ) | (((v) & 0xF) << 8) |
Definition at line 73 of file renesas_rpchf.c.
#define RPC_DRENR_CDB | ( | o | ) | (uint32_t)((((o) & 0x3) << 30)) |
Definition at line 65 of file renesas_rpchf.c.
#define RPC_DRENR_CDE BIT(14) |
Definition at line 71 of file renesas_rpchf.c.
#define RPC_DRENR_DME BIT(15) |
Definition at line 70 of file renesas_rpchf.c.
#define RPC_DRENR_OCDB | ( | o | ) | (((o) & 0x3) << 28) |
Definition at line 66 of file renesas_rpchf.c.
#define RPC_DRENR_OCDE BIT(12) |
Definition at line 72 of file renesas_rpchf.c.
#define RPC_DRENR_OPDB | ( | o | ) | (((o) & 0x3) << 20) |
Definition at line 68 of file renesas_rpchf.c.
#define RPC_DRENR_OPDE | ( | v | ) | (((v) & 0xF) << 4) |
Definition at line 74 of file renesas_rpchf.c.
#define RPC_DRENR_SPIDB | ( | o | ) | (((o) & 0x3) << 16) |
Definition at line 69 of file renesas_rpchf.c.
#define RPC_DROPR 0x0018 /* R/W */ |
Definition at line 58 of file renesas_rpchf.c.
#define RPC_DROPR_OPD0 | ( | o | ) | (((o) & 0xFF) << 0) |
Definition at line 62 of file renesas_rpchf.c.
#define RPC_DROPR_OPD1 | ( | o | ) | (((o) & 0xFF) << 8) |
Definition at line 61 of file renesas_rpchf.c.
#define RPC_DROPR_OPD2 | ( | o | ) | (((o) & 0xFF) << 16) |
Definition at line 60 of file renesas_rpchf.c.
#define RPC_DROPR_OPD3 | ( | o | ) | (((o) & 0xFF) << 24) |
Definition at line 59 of file renesas_rpchf.c.
#define RPC_PHYCNT 0x007C /* R/W */ |
Definition at line 132 of file renesas_rpchf.c.
#define RPC_PHYCNT_CAL BIT(31) |
Definition at line 133 of file renesas_rpchf.c.
#define RPC_PHYCNT_MEM | ( | v | ) | (((v) & 0x3) << 0) |
Definition at line 140 of file renesas_rpchf.c.
#define RPC_PHYCNT_OCT BIT(20) |
Definition at line 137 of file renesas_rpchf.c.
#define RPC_PHYCNT_WBUF BIT(2) |
Definition at line 139 of file renesas_rpchf.c.
#define RPC_PHYCNT_WBUF2 BIT(4) |
Definition at line 138 of file renesas_rpchf.c.
#define RPC_PHYINT 0x0088 /* R/W */ |
Definition at line 142 of file renesas_rpchf.c.
#define RPC_PHYINT_INT BIT(0) |
Definition at line 148 of file renesas_rpchf.c.
#define RPC_PHYINT_INTEN BIT(16) |
Definition at line 145 of file renesas_rpchf.c.
#define RPC_PHYINT_RST BIT(2) |
Definition at line 146 of file renesas_rpchf.c.
#define RPC_PHYINT_RSTEN BIT(18) |
Definition at line 143 of file renesas_rpchf.c.
#define RPC_PHYINT_WP BIT(1) |
Definition at line 147 of file renesas_rpchf.c.
#define RPC_PHYINT_WPEN BIT(17) |
Definition at line 144 of file renesas_rpchf.c.
#define RPC_SMADR 0x0028 /* R/W */ |
Definition at line 86 of file renesas_rpchf.c.
#define RPC_SMCMR 0x0024 /* R/W */ |
Definition at line 82 of file renesas_rpchf.c.
#define RPC_SMCMR_CMD | ( | c | ) | (((c) & 0xFF) << 16) |
Definition at line 83 of file renesas_rpchf.c.
#define RPC_SMCMR_OCMD | ( | c | ) | (((c) & 0xFF) << 0) |
Definition at line 84 of file renesas_rpchf.c.
#define RPC_SMCR 0x0020 /* R/W */ |
Definition at line 76 of file renesas_rpchf.c.
#define RPC_SMCR_SPIE BIT(0) |
Definition at line 80 of file renesas_rpchf.c.
#define RPC_SMCR_SPIRE BIT(2) |
Definition at line 78 of file renesas_rpchf.c.
#define RPC_SMCR_SPIWE BIT(1) |
Definition at line 79 of file renesas_rpchf.c.
#define RPC_SMCR_SSLKP BIT(8) |
Definition at line 77 of file renesas_rpchf.c.
#define RPC_SMDMCR 0x0060 /* R/W */ |
Definition at line 123 of file renesas_rpchf.c.
#define RPC_SMDMCR_DMCYC | ( | v | ) | (((v) & 0xF) << 0) |
Definition at line 124 of file renesas_rpchf.c.
#define RPC_SMDRENR 0x0064 /* R/W */ |
Definition at line 126 of file renesas_rpchf.c.
#define RPC_SMDRENR_ADDRE BIT(8) |
Definition at line 128 of file renesas_rpchf.c.
#define RPC_SMDRENR_HYPE (0x5 << 12) |
Definition at line 127 of file renesas_rpchf.c.
#define RPC_SMDRENR_OPDRE BIT(4) |
Definition at line 129 of file renesas_rpchf.c.
#define RPC_SMDRENR_SPIDRE BIT(0) |
Definition at line 130 of file renesas_rpchf.c.
#define RPC_SMENR 0x0030 /* R/W */ |
Definition at line 93 of file renesas_rpchf.c.
#define RPC_SMENR_ADB | ( | o | ) | (((o) & 0x3) << 24) |
Definition at line 96 of file renesas_rpchf.c.
#define RPC_SMENR_ADE | ( | v | ) | (((v) & 0xF) << 8) |
Definition at line 102 of file renesas_rpchf.c.
#define RPC_SMENR_CDB | ( | o | ) | (((o) & 0x3) << 30) |
Definition at line 94 of file renesas_rpchf.c.
#define RPC_SMENR_CDE BIT(14) |
Definition at line 100 of file renesas_rpchf.c.
#define RPC_SMENR_DME BIT(15) |
Definition at line 99 of file renesas_rpchf.c.
#define RPC_SMENR_OCDB | ( | o | ) | (((o) & 0x3) << 28) |
Definition at line 95 of file renesas_rpchf.c.
#define RPC_SMENR_OCDE BIT(12) |
Definition at line 101 of file renesas_rpchf.c.
#define RPC_SMENR_OPDB | ( | o | ) | (((o) & 0x3) << 20) |
Definition at line 97 of file renesas_rpchf.c.
#define RPC_SMENR_OPDE | ( | v | ) | (((v) & 0xF) << 4) |
Definition at line 103 of file renesas_rpchf.c.
#define RPC_SMENR_SPIDB | ( | o | ) | (((o) & 0x3) << 16) |
Definition at line 98 of file renesas_rpchf.c.
#define RPC_SMENR_SPIDE | ( | v | ) | (((v) & 0xF) << 0) |
Definition at line 104 of file renesas_rpchf.c.
#define RPC_SMOPR 0x002C /* R/W */ |
Definition at line 87 of file renesas_rpchf.c.
#define RPC_SMOPR_OPD0 | ( | o | ) | (((o) & 0xFF) << 0) |
Definition at line 88 of file renesas_rpchf.c.
#define RPC_SMOPR_OPD1 | ( | o | ) | (((o) & 0xFF) << 8) |
Definition at line 89 of file renesas_rpchf.c.
#define RPC_SMOPR_OPD2 | ( | o | ) | (((o) & 0xFF) << 16) |
Definition at line 90 of file renesas_rpchf.c.
#define RPC_SMOPR_OPD3 | ( | o | ) | (((o) & 0xFF) << 24) |
Definition at line 91 of file renesas_rpchf.c.
#define RPC_SMRDR0 0x0038 /* R */ |
Definition at line 106 of file renesas_rpchf.c.
#define RPC_SMRDR1 0x003C /* R */ |
Definition at line 107 of file renesas_rpchf.c.
#define RPC_SMWDR0 0x0040 /* R/W */ |
Definition at line 108 of file renesas_rpchf.c.
#define RPC_SMWDR1 0x0044 /* R/W */ |
Definition at line 109 of file renesas_rpchf.c.
#define RPC_SSLDR 0x0004 /* R/W */ |
Definition at line 38 of file renesas_rpchf.c.
#define RPC_SSLDR_SCKDL | ( | d | ) | (((d) & 0x7) << 0) |
Definition at line 41 of file renesas_rpchf.c.
#define RPC_SSLDR_SLNDL | ( | d | ) | (((d) & 0x7) << 8) |
Definition at line 40 of file renesas_rpchf.c.
#define RPC_SSLDR_SPNDL | ( | d | ) | (((d) & 0x7) << 16) |
Definition at line 39 of file renesas_rpchf.c.
#define RPC_WBUF 0x8000 /* R/W size=4/8/16/32/64Bytes */ |
Definition at line 150 of file renesas_rpchf.c.
#define RPC_WBUF_SIZE 0x100 |
Definition at line 151 of file renesas_rpchf.c.
enum rpc_hf_size |
Enumerator | |
---|---|
RPC_HF_SIZE_16BIT | |
RPC_HF_SIZE_32BIT | |
RPC_HF_SIZE_64BIT |
Definition at line 156 of file renesas_rpchf.c.
|
static |
Definition at line 186 of file renesas_rpchf.c.
References ERROR_OK, target_read_u32(), and target_write_u32().
Referenced by rpc_hf_mode(), and rpc_hf_xfer().
FLASH_BANK_COMMAND_HANDLER | ( | rpchf_flash_bank_command | ) |
Definition at line 415 of file renesas_rpchf.c.
References bank, cfi_flash_bank_cmd(), CMD_ARGC, CMD_ARGV, ERROR_OK, cfi_flash_bank::read_mem, rpchf_target_read_memory(), rpchf_target_write_memory(), and cfi_flash_bank::write_mem.
|
static |
Definition at line 202 of file renesas_rpchf.c.
References clrsetbits_u32(), ERROR_OK, LOG_ERROR, rpc_base, RPC_CMNCR, RPC_CMNCR_BSZ, RPC_CMNCR_IOFV_HIZ, RPC_CMNCR_MD, RPC_CMNCR_MOIIO_HIZ, RPC_DRCMR, RPC_DRCMR_CMD, RPC_DRCR, RPC_DRCR_RBE, RPC_DRCR_RBURST, RPC_DRCR_RCF, RPC_DRDMCR, RPC_DRDMCR_DMCYC, RPC_DRDRENR, RPC_DRDRENR_ADDRE, RPC_DRDRENR_DRDRE, RPC_DRDRENR_HYPE, RPC_DRENR, RPC_DRENR_ADB, RPC_DRENR_ADE, RPC_DRENR_CDB, RPC_DRENR_CDE, RPC_DRENR_OCDB, RPC_DRENR_OCDE, RPC_DRENR_SPIDB, rpc_hf_wait_tend(), RPC_PHYCNT, RPC_PHYCNT_CAL, RPC_PHYCNT_MEM, RPC_PHYCNT_WBUF, RPC_PHYCNT_WBUF2, target_read_u32(), and target_write_u32().
Referenced by rpc_hf_xfer().
|
static |
Definition at line 162 of file renesas_rpchf.c.
References alive_sleep(), ERROR_FAIL, ERROR_OK, ERROR_TIMEOUT_REACHED, LOG_ERROR, rpc_base, RPC_CMNSR, RPC_CMNSR_TEND, target_read_u32(), and timeval_ms().
Referenced by rpc_hf_mode(), and rpc_hf_xfer().
|
static |
Definition at line 263 of file renesas_rpchf.c.
References addr, buf_bswap32(), clrsetbits_u32(), ERROR_OK, LOG_ERROR, rpc_base, RPC_CMNCR, RPC_CMNCR_BSZ, RPC_CMNCR_IOFV_HIZ, RPC_CMNCR_MD, RPC_CMNCR_MOIIO_HIZ, RPC_DRCR, rpc_hf_mode(), rpc_hf_wait_tend(), RPC_PHYCNT, RPC_SMADR, RPC_SMCMR, RPC_SMCMR_CMD, RPC_SMCR, RPC_SMCR_SPIE, RPC_SMCR_SPIRE, RPC_SMCR_SPIWE, RPC_SMDMCR, RPC_SMDMCR_DMCYC, RPC_SMDRENR, RPC_SMDRENR_ADDRE, RPC_SMDRENR_HYPE, RPC_SMDRENR_SPIDRE, RPC_SMENR, RPC_SMENR_ADB, RPC_SMENR_ADE, RPC_SMENR_CDB, RPC_SMENR_CDE, RPC_SMENR_DME, RPC_SMENR_OCDB, RPC_SMENR_OCDE, RPC_SMENR_OPDB, RPC_SMENR_SPIDB, RPC_SMOPR, RPC_SMRDR0, RPC_SMWDR0, RPC_WBUF, size, target_read_u32(), target_write_memory(), and target_write_u32().
Referenced by rpchf_spansion_write_words(), rpchf_target_read_memory(), and rpchf_target_write_memory().
|
static |
Definition at line 611 of file renesas_rpchf.c.
|
static |
Definition at line 431 of file renesas_rpchf.c.
References cfi_spansion_pri_ext::_unlock1, bank, cfi_flash_address(), cfi_send_command(), cfi_spansion_unlock_seq(), cfi_spansion_wait_status_busy(), ERROR_FLASH_OPERATION_FAILED, ERROR_OK, LOG_ERROR, cfi_flash_bank::max_buf_write_size, NULL, cfi_flash_bank::pri_ext, RPC_HF_SIZE_64BIT, rpc_hf_xfer(), RPC_WBUF_SIZE, TARGET_ADDR_FMT, and cfi_flash_bank::word_write_timeout.
Referenced by rpchf_write_words().
|
static |
Definition at line 396 of file renesas_rpchf.c.
References addr, bank, buffer, count, ERROR_OK, NULL, RPC_HF_SIZE_16BIT, and rpc_hf_xfer().
Referenced by FLASH_BANK_COMMAND_HANDLER().
|
static |
Definition at line 381 of file renesas_rpchf.c.
References addr, bank, buffer, count, ERROR_FAIL, NULL, RPC_HF_SIZE_16BIT, and rpc_hf_xfer().
Referenced by FLASH_BANK_COMMAND_HANDLER().
|
static |
Definition at line 493 of file renesas_rpchf.c.
References bank, buffer, CFI_MAX_BUS_WIDTH, cfi_reset(), cfi_target_read_memory(), cfi_write_word(), count, cfi_flash_bank::data_swap, ERROR_FLASH_BANK_NOT_PROBED, ERROR_FLASH_DST_OUT_OF_BANK, ERROR_FLASH_OPER_UNSUPPORTED, ERROR_OK, ERROR_TARGET_NOT_HALTED, LOG_ERROR, LOG_INFO, offset, cfi_flash_bank::qry, RPC_WBUF_SIZE, rpchf_write_words(), and TARGET_HALTED.
|
static |
Definition at line 487 of file renesas_rpchf.c.
References bank, and rpchf_spansion_write_words().
Referenced by rpchf_write().
|
static |
Definition at line 154 of file renesas_rpchf.c.
const struct flash_driver renesas_rpchf_flash |
Definition at line 611 of file renesas_rpchf.c.
|
static |
Definition at line 153 of file renesas_rpchf.c.
Referenced by rpc_hf_mode(), rpc_hf_wait_tend(), and rpc_hf_xfer().