|
24 | 24 | #define DATA_PINS_MAX 8 |
25 | 25 | #define VIO_COUNT 11 |
26 | 26 |
|
27 | | -#define MAX_FREQUENCY 64000000 |
28 | | - |
29 | 27 | #define MAX_SHIFT_COUNT 63 |
30 | 28 |
|
31 | 29 | #define CE_PIN_UNUSED UINT8_MAX |
@@ -177,7 +175,7 @@ static void xfer_execute(nrfe_mspi_xfer_packet_msg_t *xfer_packet) |
177 | 175 | volatile nrfe_mspi_dev_config_t *device = |
178 | 176 | &nrfe_mspi_devices[nrfe_mspi_xfer_config_ptr->device_index]; |
179 | 177 |
|
180 | | - xfer_params.counter_value = 4; |
| 178 | + xfer_params.counter_value = device->cnt0_value; |
181 | 179 | xfer_params.ce_vio = ce_vios[device->ce_index]; |
182 | 180 | xfer_params.ce_hold = nrfe_mspi_xfer_config_ptr->hold_ce; |
183 | 181 | xfer_params.cpp_mode = device->cpp; |
@@ -261,7 +259,7 @@ void prepare_and_read_data(nrfe_mspi_xfer_packet_msg_t *xfer_packet, volatile ui |
261 | 259 | &nrfe_mspi_devices[nrfe_mspi_xfer_config_ptr->device_index]; |
262 | 260 | nrf_vpr_csr_vio_config_t config; |
263 | 261 |
|
264 | | - xfer_params.counter_value = 4; |
| 262 | + xfer_params.counter_value = device->cnt0_value; |
265 | 263 | xfer_params.ce_vio = ce_vios[device->ce_index]; |
266 | 264 | xfer_params.ce_hold = nrfe_mspi_xfer_config_ptr->hold_ce; |
267 | 265 | xfer_params.ce_polarity = device->ce_polarity; |
@@ -400,7 +398,6 @@ static void ep_recv(const void *data, size_t len, void *priv) |
400 | 398 | NRFX_ASSERT(dev_config->dev_config.cpp <= MSPI_CPP_MODE_3); |
401 | 399 | NRFX_ASSERT(dev_config->dev_config.ce_index < ce_vios_count); |
402 | 400 | NRFX_ASSERT(dev_config->dev_config.ce_polarity <= MSPI_CE_ACTIVE_HIGH); |
403 | | - NRFX_ASSERT(dev_config->dev_config.freq <= MAX_FREQUENCY); |
404 | 401 |
|
405 | 402 | nrfe_mspi_devices[dev_config->device_index] = dev_config->dev_config; |
406 | 403 |
|
|
0 commit comments