• Dmitry Osipenko's avatar
    memory: tegra30-emc: Firm up hardware programming sequence · 0f8bb9da
    Dmitry Osipenko authored
    Previously there was a problem where a late handshake handling caused
    a memory corruption, this problem was resolved by issuing calibration
    command right after changing the timing, but looks like the solution
    wasn't entirely correct since calibration interval could be disabled as
    well. Now programming sequence is completed immediately after receiving
    handshake from CaR, without potentially long delays and in accordance to
    the TRM's programming guide.
    
    Secondly, the TRM's programming guide suggests to flush EMC writes by
    reading any *MC* register before doing CaR changes. This is also addressed
    now.
    Signed-off-by: default avatarDmitry Osipenko <digetx@gmail.com>
    Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
    0f8bb9da
tegra30-emc.c 35.1 KB