]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/karo/tx6/tx6ul.c
karo: tx6ul: make board string dependent on cpurev
[karo-tx-uboot.git] / board / karo / tx6 / tx6ul.c
index b216b112598a6078c9918cee984a676c72391f05..52ac588db9d4813b91ecc1bd92dd635adabf8f2e 100644 (file)
@@ -357,23 +357,16 @@ int checkboard(void)
        u32 cpurev = get_cpu_rev();
        char *cpu_str = "?";
 
-       switch ((cpurev >> 12) & 0xff) {
-       case MXC_CPU_MX6SL:
+       if (is_cpu_type(MXC_CPU_MX6SL))
                cpu_str = "SL";
-               break;
-       case MXC_CPU_MX6DL:
+       else if (is_cpu_type(MXC_CPU_MX6DL))
                cpu_str = "DL";
-               break;
-       case MXC_CPU_MX6SOLO:
+       else if (is_cpu_type(MXC_CPU_MX6SOLO))
                cpu_str = "SOLO";
-               break;
-       case MXC_CPU_MX6Q:
+       else if (is_cpu_type(MXC_CPU_MX6Q))
                cpu_str = "Q";
-               break;
-       case MXC_CPU_MX6UL:
+       else if (is_cpu_type(MXC_CPU_MX6UL))
                cpu_str = "UL";
-               break;
-       }
 
        printf("CPU:   Freescale i.MX6%s rev%d.%d at %d MHz\n",
                cpu_str,
@@ -444,10 +437,12 @@ static int pmic_addr __maybe_unused = 0x33;
 int board_init(void)
 {
        int ret;
+       u32 cpurev = get_cpu_rev();
 
        debug("%s@%d: \n", __func__, __LINE__);
 
-       printf("Board: Ka-Ro TXUL-001%c\n",
+       printf("Board: Ka-Ro TXUL-%c01%c\n",
+               ((cpurev &0xff) > 0x10) ? '5' : '0',
                tx6ul_mem_suffix());
 
        get_hab_status();
@@ -627,7 +622,7 @@ int board_mmc_init(bd_t *bis)
        }
        return 0;
 }
-#endif /* CONFIG_CMD_MMC */
+#endif /* CONFIG_FSL_ESDHC */
 
 enum {
        LED_STATE_INIT = -1,
@@ -716,14 +711,12 @@ static const struct gpio stk5_gpios[] = {
 };
 
 #ifdef CONFIG_LCD
-static u16 tx6_cmap[256];
 vidinfo_t panel_info = {
        /* set to max. size supported by SoC */
        .vl_col = 4096,
        .vl_row = 1024,
 
        .vl_bpix = LCD_COLOR32,    /* Bits per pixel, 0: 1bpp, 1: 2bpp, 2: 4bpp, 3: 8bpp ... */
-       .cmap = tx6_cmap,
 };
 
 static struct fb_videomode tx6_fb_modes[] = {