Changeset d00d690 in rtems


Ignore:
Timestamp:
Feb 10, 2020, 9:35:15 AM (5 months ago)
Author:
Christian Mauderer <christian.mauderer@…>
Branches:
5, master
Children:
b58f994
Parents:
9c7bffb
git-author:
Christian Mauderer <christian.mauderer@…> (02/10/20 09:35:15)
git-committer:
Christian Mauderer <christian.mauderer@…> (02/11/20 08:17:02)
Message:

bsp/imx: Allow gapless SPI transfers.

This uses the tx-threshold to reduce gaps in SPI transmissions.

Update #3869.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsps/arm/imx/spi/imx-ecspi.c

    r9c7bffb rd00d690  
    175175  uint32_t testreg;
    176176  uint32_t configreg;
     177  uint32_t dmareg;
    177178  uint32_t cs_bit;
    178179
     
    181182  testreg = regs->testreg;
    182183  configreg = regs->configreg;
     184  dmareg = regs->dmareg;
    183185  cs_bit = 1U << cs;
    184186
     
    214216  }
    215217
     218  dmareg = IMX_ECSPI_DMAREG_TX_THRESHOLD_SET(dmareg, IMX_ECSPI_FIFO_SIZE/2);
     219
    216220  regs->conreg = conreg;
    217221  regs->testreg = testreg;
     222  regs->dmareg = dmareg;
    218223  regs->configreg = configreg;
    219224
     
    288293    imx_ecspi_set_push_pop(bus, msg->len, msg->bits_per_word);
    289294    imx_ecspi_push(bus, regs);
    290     regs->intreg = IMX_ECSPI_TE;
     295    regs->intreg = IMX_ECSPI_TE | IMX_ECSPI_TDR;
    291296  } else {
    292297    regs->intreg = 0;
Note: See TracChangeset for help on using the changeset viewer.