ARM: uniphier: rework spl_boot_device() and related code
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 13 Feb 2017 16:24:26 +0000 (01:24 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 22 Feb 2017 23:37:56 +0000 (08:37 +0900)
commit784548efb2b76fdbfdb73f6a505a156f90bb1e55
tree1e8457137b8933095298964f8a6cb3675cdedfc4
parent81c847bf3806f2cb275f8b084872b97508823462
ARM: uniphier: rework spl_boot_device() and related code

The current implementation has ugly switch statements here and there,
and duplicates similar code.  Rework it using table lookups for SoC
data and reduce code duplication.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
23 files changed:
arch/arm/mach-uniphier/Makefile
arch/arm/mach-uniphier/board_late_init.c
arch/arm/mach-uniphier/boot-device/Makefile [new file with mode: 0644]
arch/arm/mach-uniphier/boot-device/boot-device-ld11.c [new file with mode: 0644]
arch/arm/mach-uniphier/boot-device/boot-device-ld4.c [new file with mode: 0644]
arch/arm/mach-uniphier/boot-device/boot-device-pro5.c [new file with mode: 0644]
arch/arm/mach-uniphier/boot-device/boot-device-pxs2.c [new file with mode: 0644]
arch/arm/mach-uniphier/boot-device/boot-device-sld3.c [new file with mode: 0644]
arch/arm/mach-uniphier/boot-device/boot-device.c [new file with mode: 0644]
arch/arm/mach-uniphier/boot-device/boot-device.h [new file with mode: 0644]
arch/arm/mach-uniphier/boot-device/spl_board.c [new file with mode: 0644]
arch/arm/mach-uniphier/boot-mode/Makefile [deleted file]
arch/arm/mach-uniphier/boot-mode/boot-device.h [deleted file]
arch/arm/mach-uniphier/boot-mode/boot-mode-ld20.c [deleted file]
arch/arm/mach-uniphier/boot-mode/boot-mode-ld4.c [deleted file]
arch/arm/mach-uniphier/boot-mode/boot-mode-pro5.c [deleted file]
arch/arm/mach-uniphier/boot-mode/boot-mode-pxs2.c [deleted file]
arch/arm/mach-uniphier/boot-mode/boot-mode-sld3.c [deleted file]
arch/arm/mach-uniphier/boot-mode/boot-mode.c [deleted file]
arch/arm/mach-uniphier/boot-mode/cmd_pinmon.c [deleted file]
arch/arm/mach-uniphier/boot-mode/spl_board.c [deleted file]
arch/arm/mach-uniphier/clk/clk-ld11.c
arch/arm/mach-uniphier/init.h