]> git.openpandora.org Git - pandora-x-loader.git/commitdiff
OMAP3: Move get_cpu_type() function to not duplicate code
authorEnric Balletbo i Serra <eballetbo@gmail.com>
Wed, 25 May 2011 07:45:25 +0000 (09:45 +0200)
committerAnand Gadiyar <gadiyar@ti.com>
Thu, 14 Jul 2011 12:10:48 +0000 (17:40 +0530)
The get_cpu_type() function is implemented by various boards, this
patch moves this function to a common place to not duplicate code.

 board/igep00x0/igep00x0.c :99:u32 get_cpu_type(void)
 board/overo/overo.c       :164:u32 get_cpu_type(void)

Signed-off-by: Enric Balletbo i Serra <eballetbo@gmail.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
board/igep00x0/igep00x0.c
board/overo/overo.c
cpu/omap3/sys_info.c

index 16663376df8c3328f4d5a63a41803e6cdd797f82..b9a1dcd3350f1c07e9b6fb0044d1e19e8e015795 100644 (file)
@@ -93,14 +93,6 @@ u32 get_mem_type(void)
        return GPMC_ONENAND;
 }
 
-/******************************************
- * get_cpu_type(void) - extract cpu info
- ******************************************/
-u32 get_cpu_type(void)
-{
-       return __raw_readl(CONTROL_OMAP_STATUS);
-}
-
 /******************************************
  * get_cpu_id(void) - extract cpu id
  * returns 0 for ES1.0, cpuid otherwise
index b942c5b337d145e631f19c484a98a43403907360..b157b0ecdd31cf4d6bba13c43fd5557703c6bd60 100644 (file)
@@ -158,14 +158,6 @@ u32 get_mem_type(void)
        }
 }
 
-/******************************************
- * get_cpu_type(void) - extract cpu info
- ******************************************/
-u32 get_cpu_type(void)
-{
-       return __raw_readl(CONTROL_OMAP_STATUS);
-}
-
 /******************************************
  * get_cpu_id(void) - extract cpu id
  * returns 0 for ES1.0, cpuid otherwise
index f6cb65f6991b82c65738dd7526f726d396fdbaab..49ee4d570b128aee83907f7d2c5543b98293984f 100644 (file)
@@ -33,3 +33,11 @@ u32 get_device_type(void)
        mode = __raw_readl(CONTROL_STATUS) & (DEVICE_MASK);
        return mode >>= 8;
 }
+
+/*
+ *  get_cpu_type(): extract cpu info
+ */
+u32 get_cpu_type(void)
+{
+       return __raw_readl(CONTROL_OMAP_STATUS);
+}