Home
last modified time | relevance | path

Searched refs:p_flash_cfg (Results 1 – 21 of 21) sorted by relevance

/bsp/bouffalo_lab/libraries/bl_mcu_sdk/drivers/soc/bl602/std/src/
A Dbl602_xip_sflash_ext.c115 bflb_sflash_software_reset(p_flash_cfg); in bflb_xip_sflash_state_save_ext()
117 bflb_sflash_disable_burst_wrap(p_flash_cfg); in bflb_xip_sflash_state_save_ext()
118 …if ((p_flash_cfg->io_mode & 0x0f) == SF_CTRL_QO_MODE || (p_flash_cfg->io_mode & 0x0f) == SF_CTRL_Q… in bflb_xip_sflash_state_save_ext()
120 bflb_sflash_qspi_enable(p_flash_cfg); in bflb_xip_sflash_state_save_ext()
123 bflb_sflash_disable_burst_wrap(p_flash_cfg); in bflb_xip_sflash_state_save_ext()
151 …if ((p_flash_cfg->io_mode & 0x0f) == SF_CTRL_QO_MODE || (p_flash_cfg->io_mode & 0x0f) == SF_CTRL_Q… in bflb_xip_sflash_state_restore_ext()
183 uint8_t io_mode = p_flash_cfg->io_mode&0xf; in bflb_xip_sflash_erase_need_lock_ext()
215 uint8_t io_mode = p_flash_cfg->io_mode&0xf; in bflb_xip_sflash_write_need_lock_ext()
247 uint8_t io_mode = p_flash_cfg->io_mode&0xf; in bflb_xip_sflash_read_need_lock_ext()
276 uint8_t io_mode = p_flash_cfg->io_mode&0xf; in bflb_xip_sflash_clear_status_register_need_lock()
[all …]
A Dbl602_sflash_ext.c121 bflb_sflash_release_powerdown(p_flash_cfg); in bflb_sflash_restore_from_powerdown()
127 bflb_sflash_qspi_enable(p_flash_cfg); in bflb_sflash_restore_from_powerdown()
137 bflb_sflash_write_enable(p_flash_cfg); in bflb_sflash_restore_from_powerdown()
577 if((p_flash_cfg->io_mode&0xf)==SF_CTRL_QO_MODE || (p_flash_cfg->io_mode&0xf)==SF_CTRL_QIO_MODE){ in bflb_sflash_clear_status_register()
584 if ((read_value & (~((1<<(p_flash_cfg->qe_index*8+p_flash_cfg->qe_bit)) | in bflb_sflash_clear_status_register()
585 (1<<(p_flash_cfg->busy_index*8+p_flash_cfg->busy_bit)) | in bflb_sflash_clear_status_register()
586 (1<<(p_flash_cfg->wr_enable_index*8+p_flash_cfg->wr_enable_bit))))) == 0){ in bflb_sflash_clear_status_register()
594 if (p_flash_cfg->qe_write_reg_len == 2) { in bflb_sflash_clear_status_register()
595 reg_value = (qe_value<<(p_flash_cfg->qe_index*8+p_flash_cfg->qe_bit)); in bflb_sflash_clear_status_register()
598 if (p_flash_cfg->qe_index == 0) { in bflb_sflash_clear_status_register()
[all …]
A Dbl602_romapi.c775 int ATTR_TCM_SECTION bflb_sflash_restore_from_powerdown(spi_flash_cfg_type *p_flash_cfg, uint8_t fl…
777 return RomDriver_SFlash_Restore_From_Powerdown(p_flash_cfg, flashContRead);
808 return RomDriver_SF_Cfg_Get_Flash_Cfg_Need_Lock(flash_id, p_flash_cfg); in bflb_sf_cfg_get_flash_cfg_need_lock()
968 return RomDriver_XIP_SFlash_State_Save(p_flash_cfg, offset); in bflb_xip_sflash_state_save()
974 return RomDriver_XIP_SFlash_State_Restore(p_flash_cfg, offset); in bflb_xip_sflash_state_restore()
980 return RomDriver_XIP_SFlash_Erase_Need_Lock(p_flash_cfg, startaddr, startaddr+len-1); in bflb_xip_sflash_erase_need_lock()
986 return RomDriver_XIP_SFlash_Write_Need_Lock(p_flash_cfg, addr, data, len); in bflb_xip_sflash_write_need_lock()
992 return RomDriver_XIP_SFlash_Read_Need_Lock(p_flash_cfg, addr, data, len); in bflb_xip_sflash_read_need_lock()
998 return RomDriver_XIP_SFlash_GetJedecId_Need_Lock(p_flash_cfg, data); in bflb_xip_sflash_get_jedecid_need_lock()
1004 return RomDriver_XIP_SFlash_GetDeviceId_Need_Lock(p_flash_cfg, data); in bflb_xip_sflash_get_deviceid_need_lock()
[all …]
A Dbl602_sf_cfg_ext.c714 …ECTION bflb_sf_cfg_get_flash_cfg_need_lock_ext(uint32_t flash_id, spi_flash_cfg_type * p_flash_cfg, in bflb_sf_cfg_get_flash_cfg_need_lock_ext() argument
728 BL602_MemCpy_Fast(p_flash_cfg,(uint8_t *)buf+4,sizeof(spi_flash_cfg_type)); in bflb_sf_cfg_get_flash_cfg_need_lock_ext()
733 if(bflb_sf_cfg_get_flash_cfg_need_lock(flash_id, p_flash_cfg, group, bank) == 0){ in bflb_sf_cfg_get_flash_cfg_need_lock_ext()
738 BL602_MemCpy_Fast(p_flash_cfg,flash_infos[i].cfg,sizeof(spi_flash_cfg_type)); in bflb_sf_cfg_get_flash_cfg_need_lock_ext()
760 … uint8_t restore_default, spi_flash_cfg_type * p_flash_cfg, uint8_t group, uint8_t bank) in bflb_sf_cfg_flash_identify_ext() argument
766 …ret=bflb_sf_cfg_flash_identify(call_from_flash,flash_in_cfg,restore_default,p_flash_cfg,group,bank… in bflb_sf_cfg_flash_identify_ext()
768 bflb_sflash_set_xip_cfg(p_flash_cfg,p_flash_cfg->io_mode&0xf,1,0,32,bank); in bflb_sf_cfg_flash_identify_ext()
777 BL602_MemCpy_Fast(p_flash_cfg,flash_infos[i].cfg,sizeof(spi_flash_cfg_type)); in bflb_sf_cfg_flash_identify_ext()
/bsp/bouffalo_lab/libraries/bl_mcu_sdk/drivers/lhal/src/flash/
A Dbflb_xip_sflash.c110 bflb_sflash_reset_continue_read(p_flash_cfg); in bflb_xip_sflash_state_save()
112 bflb_sflash_disable_burst_wrap(p_flash_cfg); in bflb_xip_sflash_state_save()
117 …if ((p_flash_cfg->io_mode & 0x0f) == SF_CTRL_QO_MODE || (p_flash_cfg->io_mode & 0x0f) == SF_CTRL_Q… in bflb_xip_sflash_state_save()
119 bflb_sflash_qspi_enable(p_flash_cfg); in bflb_xip_sflash_state_save()
122 bflb_sflash_disable_burst_wrap(p_flash_cfg); in bflb_xip_sflash_state_save()
147 uint8_t io_mode = p_flash_cfg->io_mode & 0xf; in bflb_xip_sflash_state_restore()
151 if(((p_flash_cfg->io_mode>>4)&0x01) == 0) { in bflb_xip_sflash_state_restore()
152 …if((p_flash_cfg->io_mode&0x0f)==SF_CTRL_QO_MODE || (p_flash_cfg->io_mode&0x0f)==SF_CTRL_QIO_MODE) { in bflb_xip_sflash_state_restore()
195 uint8_t io_mode = p_flash_cfg->io_mode & 0xf; in bflb_xip_sflash_erase_need_lock()
232 uint8_t io_mode = p_flash_cfg->io_mode & 0xf; in bflb_xip_sflash_write_need_lock()
[all …]
A Dbflb_xip_sflash.h70 int bflb_xip_sflash_state_save(spi_flash_cfg_type *p_flash_cfg, uint32_t *offset,
72 int bflb_xip_sflash_state_restore(spi_flash_cfg_type *p_flash_cfg, uint32_t offset,
74 int bflb_xip_sflash_erase_need_lock(spi_flash_cfg_type *p_flash_cfg, uint32_t start_addr,
76 int bflb_xip_sflash_write_need_lock(spi_flash_cfg_type *p_flash_cfg, uint32_t addr,
78 int bflb_xip_sflash_read_need_lock(spi_flash_cfg_type *p_flash_cfg, uint32_t addr,
80 int bflb_xip_sflash_get_jedecid_need_lock(spi_flash_cfg_type *p_flash_cfg, uint8_t *data,
82 int bflb_xip_sflash_get_deviceid_need_lock(spi_flash_cfg_type *p_flash_cfg, uint8_t is_32bits_addr,
84 int bflb_xip_sflash_get_uniqueid_need_lock(spi_flash_cfg_type *p_flash_cfg, uint8_t *data,
A Dbflb_sf_cfg.h181 int bflb_sf_cfg_get_flash_cfg_need_lock(uint32_t flash_id, spi_flash_cfg_type *p_flash_cfg,
183 int bflb_sf_cfg_get_flash_cfg_need_lock_ext(uint32_t flash_id, spi_flash_cfg_type *p_flash_cfg,
198 spi_flash_cfg_type *p_flash_cfg, uint8_t group, uint8_t bank);
200 … spi_flash_cfg_type *p_flash_cfg, uint8_t group, uint8_t bank);
A Dbflb_sf_cfg.c3401 bflb_sflash_release_powerdown(p_flash_cfg); in bflb_sf_cfg_flash_identify()
3402 bflb_sflash_reset_continue_read(p_flash_cfg); in bflb_sf_cfg_flash_identify()
3403 bflb_sflash_disable_burst_wrap(p_flash_cfg); in bflb_sf_cfg_flash_identify()
3405 bflb_sflash_get_jedecid(p_flash_cfg, (uint8_t *)&jedec_id); in bflb_sf_cfg_flash_identify()
3406 bflb_sflash_disable_burst_wrap(p_flash_cfg); in bflb_sf_cfg_flash_identify()
3421 bflb_sflash_release_powerdown(p_flash_cfg); in bflb_sf_cfg_flash_identify()
3422 bflb_sflash_reset_continue_read(p_flash_cfg); in bflb_sf_cfg_flash_identify()
3423 bflb_sflash_disable_burst_wrap(p_flash_cfg); in bflb_sf_cfg_flash_identify()
3424 bflb_sflash_get_jedecid(p_flash_cfg, (uint8_t *)&jedec_id); in bflb_sf_cfg_flash_identify()
3425 bflb_sflash_disable_burst_wrap(p_flash_cfg); in bflb_sf_cfg_flash_identify()
[all …]
/bsp/bouffalo_lab/libraries/bl_mcu_sdk/drivers/soc/bl702/std/src/
A Dbl702_sflash_ext.c229 if((p_flash_cfg->io_mode&0xf)==SF_CTRL_QO_MODE || (p_flash_cfg->io_mode&0xf)==SF_CTRL_QIO_MODE){ in bflb_sflash_clear_status_register()
236 if ((read_value & (~((1<<(p_flash_cfg->qe_index*8+p_flash_cfg->qe_bit)) | in bflb_sflash_clear_status_register()
237 (1<<(p_flash_cfg->busy_index*8+p_flash_cfg->busy_bit)) | in bflb_sflash_clear_status_register()
238 (1<<(p_flash_cfg->wr_enable_index*8+p_flash_cfg->wr_enable_bit))))) == 0){ in bflb_sflash_clear_status_register()
242 ret = bflb_sflash_write_enable(p_flash_cfg); in bflb_sflash_clear_status_register()
246 if (p_flash_cfg->qe_write_reg_len == 2) { in bflb_sflash_clear_status_register()
247 reg_value = (qe_value<<(p_flash_cfg->qe_index*8+p_flash_cfg->qe_bit)); in bflb_sflash_clear_status_register()
250 if (p_flash_cfg->qe_index == 0) { in bflb_sflash_clear_status_register()
251 reg_value = (qe_value<<p_flash_cfg->qe_bit); in bflb_sflash_clear_status_register()
256 ret = bflb_sflash_write_enable(p_flash_cfg); in bflb_sflash_clear_status_register()
[all …]
A Dbl702_xip_sflash_ext.c152 …ON bflb_xip_sflash_kh25v40_write_protect_need_lock(spi_flash_cfg_type *p_flash_cfg, uint8_t protec… in bflb_xip_sflash_kh25v40_write_protect_need_lock() argument
157 stat = bflb_xip_sflash_state_save(p_flash_cfg, &offset, 0, 0); in bflb_xip_sflash_kh25v40_write_protect_need_lock()
159 bflb_sflash_set_xip_cfg(p_flash_cfg, 1, 0, 32, 0, 0); in bflb_xip_sflash_kh25v40_write_protect_need_lock()
161 stat = bflb_sflash_kh25v40_write_protect(p_flash_cfg, protect); in bflb_xip_sflash_kh25v40_write_protect_need_lock()
162 bflb_xip_sflash_state_restore(p_flash_cfg, offset, 0, 0); in bflb_xip_sflash_kh25v40_write_protect_need_lock()
176 …t ATTR_TCM_SECTION bflb_xip_sflash_clear_status_register_need_lock(spi_flash_cfg_type *p_flash_cfg, in bflb_xip_sflash_clear_status_register_need_lock() argument
182 stat=bflb_xip_sflash_state_save(p_flash_cfg, &offset, 0, 0); in bflb_xip_sflash_clear_status_register_need_lock()
184 bflb_sflash_set_xip_cfg(p_flash_cfg, 1, 0, 32, 0, 0); in bflb_xip_sflash_clear_status_register_need_lock()
186 stat=bflb_sflash_clear_status_register(p_flash_cfg); in bflb_xip_sflash_clear_status_register_need_lock()
187 bflb_xip_sflash_state_restore(p_flash_cfg, offset, 0, 0); in bflb_xip_sflash_clear_status_register_need_lock()
A Dbl702_romapi.c500 uint8_t io_mode = p_flash_cfg->io_mode & 0xf; in bflb_xip_sflash_state_restore()
508 uint8_t io_mode = p_flash_cfg->io_mode & 0xf; in bflb_xip_sflash_erase_need_lock()
516 uint8_t io_mode = p_flash_cfg->io_mode & 0xf; in bflb_xip_sflash_write_need_lock()
524 uint8_t io_mode = p_flash_cfg->io_mode & 0xf; in bflb_xip_sflash_read_need_lock()
532 uint8_t io_mode = p_flash_cfg->io_mode & 0xf; in bflb_xip_sflash_get_jedecid_need_lock()
540 uint8_t io_mode = p_flash_cfg->io_mode & 0xf; in bflb_xip_sflash_get_deviceid_need_lock()
548 uint8_t io_mode = p_flash_cfg->io_mode & 0xf; in bflb_xip_sflash_get_uniqueid_need_lock()
557 uint8_t io_mode = p_flash_cfg->io_mode & 0xf;
564 uint8_t io_mode = p_flash_cfg->io_mode & 0xf; in bflb_xip_sflash_read_with_lock()
570 uint8_t io_mode = p_flash_cfg->io_mode & 0xf; in bflb_xip_sflash_write_with_lock()
[all …]
A Dbl702_sf_cfg_ext.c621 …SECTION bflb_sf_cfg_get_flash_cfg_need_lock_ext(uint32_t flash_id, spi_flash_cfg_type *p_flash_cfg, in bflb_sf_cfg_get_flash_cfg_need_lock_ext() argument
637 BL702_MemCpy_Fast(p_flash_cfg, (uint8_t *)buf + 4, sizeof(spi_flash_cfg_type)); in bflb_sf_cfg_get_flash_cfg_need_lock_ext()
642 if (bflb_sf_cfg_get_flash_cfg_need_lock(flash_id, p_flash_cfg, group, bank) == SUCCESS) { in bflb_sf_cfg_get_flash_cfg_need_lock_ext()
651 BL702_MemCpy_Fast(p_flash_cfg, flash_infos[i].cfg, sizeof(spi_flash_cfg_type)); in bflb_sf_cfg_get_flash_cfg_need_lock_ext()
675 … uint8_t restore_default, spi_flash_cfg_type *p_flash_cfg, uint8_t group, uint8_t bank) in bflb_sf_cfg_flash_identify_ext() argument
681 …ret = bflb_sf_cfg_flash_identify(call_from_flash, flash_pin_cfg, restore_default, p_flash_cfg, gro… in bflb_sf_cfg_flash_identify_ext()
694 BL702_MemCpy_Fast(p_flash_cfg, flash_infos[i].cfg, sizeof(spi_flash_cfg_type)); in bflb_sf_cfg_flash_identify_ext()
/bsp/bouffalo_lab/libraries/bl_mcu_sdk/drivers/soc/bl602/std/include/
A Dbl602_xip_sflash_ext.h73 int bflb_xip_sflash_state_restore_ext(spi_flash_cfg_type *p_flash_cfg, uint32_t offset, uint8_t gro…
74 int bflb_xip_sflash_erase_need_lock_ext(spi_flash_cfg_type *p_flash_cfg, uint32_t startaddr,
76 int bflb_xip_sflash_write_need_lock_ext(spi_flash_cfg_type *p_flash_cfg, uint32_t addr, uint8_t *da…
78 int bflb_xip_sflash_read_need_lock_ext(spi_flash_cfg_type *p_flash_cfg, uint32_t addr, uint8_t *dat…
80 int bflb_xip_sflash_clear_status_register_need_lock(spi_flash_cfg_type *p_flash_cfg, uint8_t group,…
81 int bflb_xip_sflash_get_jedecid_need_lock_ext(spi_flash_cfg_type *p_flash_cfg, uint8_t *data,
83 int bflb_xip_sflash_get_deviceid_need_lock_ext(spi_flash_cfg_type *p_flash_cfg, uint8_t is_32bits_a…
85 int bflb_xip_sflash_get_uniqueid_need_lock_ext(spi_flash_cfg_type *p_flash_cfg,uint8_t *data,
87 int bflb_xip_sflash_rcv_enable_need_lock(spi_flash_cfg_type *p_flash_cfg, uint8_t rCmd, uint8_t wCm…
89 int bflb_xip_sflash_init(spi_flash_cfg_type *p_flash_cfg);
A Dbl602_sflash_ext.h71 int bflb_sflash_restore_from_powerdown(spi_flash_cfg_type *p_flash_cfg, uint8_t flash_cont_read, ui…
72 int bflb_sflash_rcv_enable(spi_flash_cfg_type *p_flash_cfg, uint8_t r_cmd, uint8_t w_cmd, uint8_t b…
73 int bflb_sflash_erase_security_register(spi_flash_cfg_type *p_flash_cfg, struct sflash_sec_reg_cfg …
74 int bflb_sflash_program_security_register(spi_flash_cfg_type *p_flash_cfg,
77 int bflb_sflash_clear_status_register(spi_flash_cfg_type *p_flash_cfg);
A Dbl602_sf_cfg_ext.h72 int bflb_sf_cfg_get_flash_cfg_need_lock_ext(uint32_t flash_id, spi_flash_cfg_type *p_flash_cfg,
75 … spi_flash_cfg_type *p_flash_cfg, uint8_t group, uint8_t bank);
/bsp/bouffalo_lab/libraries/bl_mcu_sdk/drivers/lhal/src/
A Dbflb_flash.c285 …if ((p_flash_cfg->io_mode & 0x0f) == SF_CTRL_QO_MODE || (p_flash_cfg->io_mode & 0x0f) == SF_CTRL_Q… in flash_set_qspi_enable()
286 bflb_sflash_qspi_enable(p_flash_cfg); in flash_set_qspi_enable()
292 if ((p_flash_cfg->io_mode & 0x1f) == SF_CTRL_QIO_MODE) { in flash_set_l1c_wrap()
294 bflb_sflash_set_burst_wrap(p_flash_cfg); in flash_set_l1c_wrap()
297 bflb_sflash_disable_burst_wrap(p_flash_cfg); in flash_set_l1c_wrap()
316 bflb_xip_sflash_state_save(p_flash_cfg, &offset, 0, 0); in flash_config_init()
317 bflb_sflash_get_jedecid(p_flash_cfg, (uint8_t *)&jid); in flash_config_init()
323 p_flash_cfg->mid = (jid & 0xff); in flash_config_init()
331 bflb_flash_set_cmds(p_flash_cfg); in flash_config_init()
333 flash_set_qspi_enable(p_flash_cfg); in flash_config_init()
[all …]
/bsp/bouffalo_lab/libraries/bl_mcu_sdk/drivers/soc/bl616/std/src/
A Dbl616_romapi_patch.c1143 bflb_sflash_set_xip_cfg(p_flash_cfg, p_flash_cfg->io_mode & 0xf, 1, 0, 32, bank); in bflb_sf_cfg_flash_identify_ext()
1217 bflb_sflash_reset_continue_read(p_flash_cfg); in bflb_xip_sflash_state_save()
1219 bflb_sflash_disable_burst_wrap(p_flash_cfg); in bflb_xip_sflash_state_save()
1222 …if ((p_flash_cfg->io_mode & 0x0f) == SF_CTRL_QO_MODE || (p_flash_cfg->io_mode & 0x0f) == SF_CTRL_Q… in bflb_xip_sflash_state_save()
1224 bflb_sflash_qspi_enable(p_flash_cfg); in bflb_xip_sflash_state_save()
1227 bflb_sflash_disable_burst_wrap(p_flash_cfg); in bflb_xip_sflash_state_save()
1254 uint8_t io_mode = p_flash_cfg->io_mode & 0xf; in bflb_xip_sflash_erase_need_lock()
1290 uint8_t io_mode = p_flash_cfg->io_mode & 0xf; in bflb_xip_sflash_write_need_lock()
1326 uint8_t io_mode = p_flash_cfg->io_mode & 0xf; in bflb_xip_sflash_read_need_lock()
1360 uint8_t io_mode = p_flash_cfg->io_mode & 0xf; in bflb_xip_sflash_getjedecid_need_lock()
[all …]
/bsp/bouffalo_lab/libraries/bl_mcu_sdk/drivers/soc/bl702/std/include/
A Dbl702_sf_cfg_ext.h73 int bflb_sf_cfg_get_flash_cfg_need_lock_ext(uint32_t flash_id, spi_flash_cfg_type *p_flash_cfg,
76 … spi_flash_cfg_type *p_flash_cfg, uint8_t group, uint8_t bank);
A Dbl702_xip_sflash_ext.h79 int bflb_xip_sflash_kh25v40_write_protect_need_lock(spi_flash_cfg_type *p_flash_cfg, uint8_t protec…
80 int bflb_xip_sflash_clear_status_register_need_lock(spi_flash_cfg_type *p_flash_cfg, uint8_t group,…
A Dbl702_sflash_ext.h85 int bflb_sflash_clear_status_register(spi_flash_cfg_type *p_flash_cfg);
/bsp/bouffalo_lab/libraries/bl_mcu_sdk/drivers/lhal/include/
A Dbflb_flash.h74 void bflb_flash_set_cmds(spi_flash_cfg_type *p_flash_cfg);

Completed in 66 milliseconds