File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -407,7 +407,7 @@ static void spi_imx_buf_tx_swap(struct spi_imx_data *spi_imx)
407
407
408
408
static void mx53_ecspi_rx_target (struct spi_imx_data * spi_imx )
409
409
{
410
- u32 val = be32_to_cpu ( readl ( spi_imx -> base + MXC_CSPIRXDATA ) );
410
+ u32 val = ioread32be ( spi_imx -> base + MXC_CSPIRXDATA );
411
411
412
412
if (spi_imx -> rx_buf ) {
413
413
int n_bytes = spi_imx -> target_burst % sizeof (val );
@@ -436,13 +436,12 @@ static void mx53_ecspi_tx_target(struct spi_imx_data *spi_imx)
436
436
if (spi_imx -> tx_buf ) {
437
437
memcpy (((u8 * )& val ) + sizeof (val ) - n_bytes ,
438
438
spi_imx -> tx_buf , n_bytes );
439
- val = cpu_to_be32 (val );
440
439
spi_imx -> tx_buf += n_bytes ;
441
440
}
442
441
443
442
spi_imx -> count -= n_bytes ;
444
443
445
- writel (val , spi_imx -> base + MXC_CSPITXDATA );
444
+ iowrite32be (val , spi_imx -> base + MXC_CSPITXDATA );
446
445
}
447
446
448
447
/* MX51 eCSPI */
You can’t perform that action at this time.
0 commit comments