• Simon Horman's avatar
    mmc: tmio: Share register access functions · a11862d3
    Simon Horman authored
    Move register access functions into a shared header.
    Use sd_ctrl_write16 in tmio_mmc_dma.c:tmio_mmc_enable_dma().
    
    Other than avoiding (trivial) open-coding, the motivation for
    this is to allow platform-hooks in access functions to
    be applied across all applicable accesses.
    
    Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
    Cc: Magnus Damm <magnus.damm@gmail.com>
    Signed-off-by: default avatarSimon Horman <horms@verge.net.au>
    Signed-off-by: default avatarChris Ball <cjb@laptop.org>
    a11862d3
tmio_mmc_pio.c 25.9 KB