]> git.baikalelectronics.ru Git - uboot.git/commit
ARM: uniphier: use gd->bd->bi_dram for memory reserve on LD20 SoC
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 27 Jan 2017 21:53:44 +0000 (06:53 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 29 Jan 2017 11:59:08 +0000 (20:59 +0900)
commitbe683f7182376390ff1c27b27735c9cf31831aad
tree4eb8cde4272fa09a7d0b1e29a572c57e50fefb1b
parent75d546c0b41f62d8d50e5c35d0ea7e7f68cd744a
ARM: uniphier: use gd->bd->bi_dram for memory reserve on LD20 SoC

For LD20 SoC, the last 64 byte of each DRAM bank is used for the
dynamic training of DRAM PHY.  The regions must be reserved in DT to
prevent the kernel from using them.  Now gd->bd->bi_dram reflects
the actual memory banks.  Just use it instead of getting access to
the board parameters.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
arch/arm/mach-uniphier/dram_init.c