]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/arm/cpu/armv7/am33xx/sys_info.c
am33xx: Update DT files, add am335x_gp_evm_config target
[karo-tx-uboot.git] / arch / arm / cpu / armv7 / am33xx / sys_info.c
index 2ce682f6b1087ba056d2ce627e9745382c0b288d..085c6735d178ad6797f7c17dfd87ab9a704fa6f9 100644 (file)
@@ -18,6 +18,7 @@
 #include <asm/arch/cpu.h>
 #include <asm/arch/clock.h>
 #include <power/tps65910.h>
+#include <linux/compiler.h>
 
 struct ctrl_stat *cstat = (struct ctrl_stat *)CTRL_BASE;
 
@@ -49,22 +50,13 @@ u32 get_cpu_type(void)
        return partnum;
 }
 
-/**
- * get_board_rev() - setup to pass kernel board revision information
- * returns:(bit[0-3] sub version, higher bit[7-4] is higher version)
- */
-u32 get_board_rev(void)
-{
-       return BOARD_REV_ID;
-}
-
 /**
  * get_device_type(): tell if GP/HS/EMU/TST
  */
 u32 get_device_type(void)
 {
        int mode;
-       mode = readl(&cstat->statusreg) & (DEVICE_MASK);
+       mode = readl(&cstat->statusreg) & DEVICE_MASK;
        return mode >>= 8;
 }
 
@@ -74,22 +66,23 @@ u32 get_device_type(void)
 u32 get_sysboot_value(void)
 {
        int mode;
-       mode = readl(&cstat->statusreg) & (SYSBOOT_MASK);
+       mode = readl(&cstat->statusreg) & SYSBOOT_MASK;
        return mode;
 }
 
 #ifdef CONFIG_DISPLAY_CPUINFO
 static char *cpu_revs[] = {
-               "1.0",
-               "2.0",
-               "2.1"};
-
+       "1.0",
+       "2.0",
+       "2.1",
+};
 
 static char *dev_types[] = {
-               "TST",
-               "EMU",
-               "HS",
-               "GP"};
+       "TST",
+       "EMU",
+       "HS",
+       "GP",
+};
 
 /**
  * Print CPU information
@@ -107,7 +100,6 @@ int print_cpuinfo(void)
                break;
        default:
                cpu_s = "Unknown CPU type";
-               break;
        }
 
        if (get_cpu_rev() < ARRAY_SIZE(cpu_revs))