ARM: uniphier: simplify SoC ID get function
[project/bcm63xx/u-boot.git] / arch / arm / mach-uniphier / boot-mode / spl_board.c
index a6b668656bd02d4202c7eaab113c6b2ac6bc50da..0aac9241c3039c6ba9ea7860b4e5eee4826fc3b5 100644 (file)
@@ -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: