Skip to content
Snippets Groups Projects
Forked from Reform / reform-boundary-uboot
Source project has a limited visibility.
  • Ilya Yanok's avatar
    2aa87202
    davinci_emac: fix for running with dcache enabled · 2aa87202
    Ilya Yanok authored
    
    DaVinci EMAC is present on TI AM35xx SoCs (ARMv7) which run with D-Cache
    enabled by default. So we have to take care and flush/invalidate the
    cache before/after the DMA operations.
    
    Please note that the receive buffer alignment to 32 byte boundary comes
    from the old driver version I don't know if it is really needed or
    alignment to cache line size is enough.
    
    Signed-off-by: default avatarIlya Yanok <yanok@emcraft.com>
    2aa87202
    History
    davinci_emac: fix for running with dcache enabled
    Ilya Yanok authored
    
    DaVinci EMAC is present on TI AM35xx SoCs (ARMv7) which run with D-Cache
    enabled by default. So we have to take care and flush/invalidate the
    cache before/after the DMA operations.
    
    Please note that the receive buffer alignment to 32 byte boundary comes
    from the old driver version I don't know if it is really needed or
    alignment to cache line size is enough.
    
    Signed-off-by: default avatarIlya Yanok <yanok@emcraft.com>