]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: kirkwood: fix cpu info for 6282 device id
authorLuka Perkov <luka@openwrt.org>
Mon, 23 Dec 2013 00:23:07 +0000 (01:23 +0100)
committerLuka Perkov <luka.perkov@sartura.hr>
Sun, 25 Jan 2015 22:56:15 +0000 (23:56 +0100)
Signed-off-by: Luka Perkov <luka@openwrt.org>
Acked-By: Prafulla Wadaskar <prafulla@marvell.com>
Acked-by: Stefan Roese <sr@denx.de>
arch/arm/cpu/arm926ejs/kirkwood/cpu.c

index 9e412bbb04d585c949f321ddd04032a652a92e00..4c9d3fde47f58af4915676505bd0cb80d2cd1f45 100644 (file)
@@ -181,7 +181,7 @@ static void kw_sysrst_check(void)
 #if defined(CONFIG_DISPLAY_CPUINFO)
 int print_cpuinfo(void)
 {
-       char *rev;
+       char *rev = "??";
        u16 devid = (readl(KW_REG_PCIE_DEVID) >> 16) & 0xffff;
        u8 revid = readl(KW_REG_PCIE_REVID) & 0xff;
 
@@ -192,7 +192,13 @@ int print_cpuinfo(void)
 
        switch (revid) {
        case 0:
-               rev = "Z0";
+               if (devid == 0x6281)
+                       rev = "Z0";
+               else if (devid == 0x6282)
+                       rev = "A0";
+               break;
+       case 1:
+               rev = "A1";
                break;
        case 2:
                rev = "A0";
@@ -201,7 +207,6 @@ int print_cpuinfo(void)
                rev = "A1";
                break;
        default:
-               rev = "??";
                break;
        }