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>
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
}
}
-/******************************************
- * 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
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);
+}