]> git.sur5r.net Git - u-boot/commit
ARM: uniphier: rework DRAM size handling in UMC init code
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 26 Feb 2016 05:21:50 +0000 (14:21 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 28 Feb 2016 18:50:16 +0000 (03:50 +0900)
commitfd14397e93894995116583aced817f2fad9ac57b
treed6c577c517652594178eadb9ce9529dcc2ec6881
parent9a71844a381b606d1c9c28c5974e389671ee1cd5
ARM: uniphier: rework DRAM size handling in UMC init code

Currently, DRAM size is converted twice:
  size in byte -> size in Gbit -> enum

Optimize the code by converting the "size in byte" into enum directly.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
arch/arm/mach-uniphier/dram/umc-ph1-ld4.c
arch/arm/mach-uniphier/dram/umc-ph1-sld8.c