Skip to content
  • Masahiro Yamada's avatar
    ARM: uniphier: refactor UMC init code for ProXstream2 · 94b756f3
    Masahiro Yamada authored
    
    
    Currently, a dummy value is defined for the UMC_SPCCTLA register
    when the DRAM size is zero.  This seems weird because the controller
    does not need setting in the first place if the size is zero.
    
    Also, redefine enum dram_size to represent the DRAM size per 16-bit
    unit.  This makes things simpler because the channel 0 and 1 are
    connected with 32-bit width DRAM, while the channel 2 is connected
    with 16-bit width one.
    
    I am renaming SIZE_* into DRAM_SZ_* (and also FREQ_* to DRAM_FREQ_*
    for consistency) while I am here because SIZE_* might be easily
    mixed-up with the macros in include/linux/sizes.h.
    
    Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
    94b756f3