ARM: uniphier: refactor MEMCONF init code
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 15 Jan 2017 05:59:04 +0000 (14:59 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 17 Jan 2017 00:00:40 +0000 (09:00 +0900)
commit8d6c99c66f94c78e65fdacca2fb2857101f8a5e7
tree5b299513f0b58bb4232181c5bab2a94f342526fb
parent78c627cf1f808d5ae9240809a81b71903bdf4fe2
ARM: uniphier: refactor MEMCONF init code

Currently, memconf-sld3.c and memconf-pxs2.c duplicate the code.

There are 3 patterns in terms of MEMCONF init:
  - DRAM 2 channels: LD4, sLD8, Pro4, Pro5, LD11
  - DRAM 3 channels: sLD3
  - DRAM 3 channels (Ch2 is disable by MEMCONF[21]): Pxs2, LD20

All of them can be moved into a single file by a little more
refactoring.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
15 files changed:
arch/arm/mach-uniphier/Makefile
arch/arm/mach-uniphier/init.h
arch/arm/mach-uniphier/init/init-ld11.c
arch/arm/mach-uniphier/init/init-ld20.c
arch/arm/mach-uniphier/init/init-ld4.c
arch/arm/mach-uniphier/init/init-pro4.c
arch/arm/mach-uniphier/init/init-pro5.c
arch/arm/mach-uniphier/init/init-pxs2.c
arch/arm/mach-uniphier/init/init-sld3.c
arch/arm/mach-uniphier/init/init-sld8.c
arch/arm/mach-uniphier/memconf.c [new file with mode: 0644]
arch/arm/mach-uniphier/memconf/Makefile [deleted file]
arch/arm/mach-uniphier/memconf/memconf-pxs2.c [deleted file]
arch/arm/mach-uniphier/memconf/memconf-sld3.c [deleted file]
arch/arm/mach-uniphier/memconf/memconf.c [deleted file]