ARM: uniphier: simplify SoC ID get function
[project/bcm63xx/u-boot.git] / arch / arm / mach-uniphier / boot-mode / spl_board.c
index ba840873ed788a7bd0aa0b8c36424b996b6106fd..0aac9241c3039c6ba9ea7860b4e5eee4826fc3b5 100644 (file)
 
 #include "../soc-info.h"
 
-void spl_board_announce_boot_device(void)
-{
-       printf("eMMC");
-}
-
 struct uniphier_romfunc_table {
        void *mmc_send_cmd;
        void *mmc_card_blockaddr;
@@ -45,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: