summaryrefslogtreecommitdiff
path: root/arch/arm/mach-uniphier/boot-mode/spl_board.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2017-01-21 09:05:26 (GMT)
committerMasahiro Yamada <yamada.masahiro@socionext.com>2017-01-22 07:49:27 (GMT)
commite27d6c7d328caf75bd7680109bc6610bc681f46e (patch)
tree0e199c982bc274b223123ce027e2f9263c961356 /arch/arm/mach-uniphier/boot-mode/spl_board.c
parentd9a70368dbe4a9b0e81b60ffbe3fda4a09e0ad5a (diff)
downloadu-boot-e27d6c7d328caf75bd7680109bc6610bc681f46e.tar.xz
ARM: uniphier: simplify SoC ID get function
Currently, uniphier_get_soc_type() converts the SoC ID (this is read from the revision register) to an enum symbol to use it for SoC identification. Come to think of it, there is no need for the conversion in the first place. Using the SoC ID from the register as-is a straightforward way. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'arch/arm/mach-uniphier/boot-mode/spl_board.c')
-rw-r--r--arch/arm/mach-uniphier/boot-mode/spl_board.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-uniphier/boot-mode/spl_board.c b/arch/arm/mach-uniphier/boot-mode/spl_board.c
index a6b6686..0aac924 100644
--- a/arch/arm/mach-uniphier/boot-mode/spl_board.c
+++ b/arch/arm/mach-uniphier/boot-mode/spl_board.c
@@ -40,11 +40,11 @@ int uniphier_rom_get_mmc_funcptr(int (**send_cmd)(u32, u32),
{
const struct uniphier_romfunc_table *table;
- switch (uniphier_get_soc_type()) {
- case SOC_UNIPHIER_LD11:
+ switch (uniphier_get_soc_id()) {
+ case UNIPHIER_LD11_ID:
table = &uniphier_ld11_romfunc_table;
break;
- case SOC_UNIPHIER_LD20:
+ case UNIPHIER_LD20_ID:
table = &uniphier_ld20_romfunc_table;
break;
default: