Home
last modified time | relevance | path

Searched refs:cad_params (Results 1 – 3 of 3) sorted by relevance

/Zephyr-Core-3.6.0/drivers/flash/
Dflash_cadence_qspi_nor_ll.c16 int cad_qspi_idle(struct cad_qspi_params *cad_params) in cad_qspi_idle() argument
18 if (cad_params == NULL) { in cad_qspi_idle()
23 return (sys_read32(cad_params->reg_base + CAD_QSPI_CFG) & CAD_QSPI_CFG_IDLE) >> 31; in cad_qspi_idle()
26 int cad_qspi_set_baudrate_div(struct cad_qspi_params *cad_params, uint32_t div) in cad_qspi_set_baudrate_div() argument
28 if (cad_params == NULL) { in cad_qspi_set_baudrate_div()
37 sys_clear_bits(cad_params->reg_base + CAD_QSPI_CFG, ~CAD_QSPI_CFG_BAUDDIV_MSK); in cad_qspi_set_baudrate_div()
39 sys_set_bits(cad_params->reg_base + CAD_QSPI_CFG, CAD_QSPI_CFG_BAUDDIV(div)); in cad_qspi_set_baudrate_div()
44 int cad_qspi_configure_dev_size(struct cad_qspi_params *cad_params, uint32_t addr_bytes, in cad_qspi_configure_dev_size() argument
47 if (cad_params == NULL) { in cad_qspi_configure_dev_size()
55 cad_params->reg_base + CAD_QSPI_DEVSZ); in cad_qspi_configure_dev_size()
[all …]
Dflash_cadence_qspi_nor.c42 struct cad_qspi_params *cad_params = &priv->params; in flash_cad_read() local
50 rc = cad_qspi_read(cad_params, data, (uint32_t)offset, len); in flash_cad_read()
64 struct cad_qspi_params *cad_params = &priv->params; in flash_cad_erase() local
72 rc = cad_qspi_erase(cad_params, (uint32_t)offset, len); in flash_cad_erase()
86 struct cad_qspi_params *cad_params = &priv->params; in flash_cad_write() local
94 rc = cad_qspi_write(cad_params, (void *)data, (uint32_t)offset, len); in flash_cad_write()
122 struct cad_qspi_params *cad_params = &priv->params; in flash_cad_init() local
128 cad_params->reg_base = DEVICE_MMIO_NAMED_GET(dev, qspi_reg); in flash_cad_init()
129 cad_params->data_base = DEVICE_MMIO_NAMED_GET(dev, qspi_data); in flash_cad_init()
131 rc = cad_qspi_init(cad_params, QSPI_CONFIG_CPHA, in flash_cad_init()
Dflash_cadence_qspi_nor_ll.h173 int cad_qspi_init(struct cad_qspi_params *cad_params,
177 void cad_qspi_set_chip_select(struct cad_qspi_params *cad_params,
179 int cad_qspi_erase(struct cad_qspi_params *cad_params,
181 int cad_qspi_write(struct cad_qspi_params *cad_params, void *buffer,
183 int cad_qspi_read(struct cad_qspi_params *cad_params, void *buffer,
185 int cad_qspi_update(struct cad_qspi_params *cad_params, void *buffer,