From 568e790d63676b87c9e3be499e09dc3a390cbbfe Mon Sep 17 00:00:00 2001 From: Joakim Axelsson Date: Fri, 3 Dec 2010 13:18:04 +0800 Subject: db8500: Move cpu identifying function to SoC code Moved u8500_is_earlydrop() and cpu_is_u8500*() to include/asm-arm/arch-db8500/cpu.h. They are kept in cpu.h as the functions are very small and should be inlined with each use of them. The final binary actually also became around 100 bytes smaller. ST-Ericsson ID: None Signed-off-by: Joakim Axelsson Change-Id: Ied553b7c8a004a37c70c3e328a069ae8b2a92b23 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/9893 Reviewed-by: QATOOLS Reviewed-by: Michael BRANDT Tested-by: Michael BRANDT --- cpu/arm_cortexa9/db8500/cpu.c | 3 +-- cpu/arm_cortexa9/db8500/prcmu.c | 1 + cpu/arm_cortexa9/db8500/timer.c | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) (limited to 'cpu') diff --git a/cpu/arm_cortexa9/db8500/cpu.c b/cpu/arm_cortexa9/db8500/cpu.c index 25b4a0462..1edf98aa0 100644 --- a/cpu/arm_cortexa9/db8500/cpu.c +++ b/cpu/arm_cortexa9/db8500/cpu.c @@ -12,8 +12,7 @@ #include #include #include -#include -#include +#include #include #ifdef CONFIG_ARCH_CPU_INIT diff --git a/cpu/arm_cortexa9/db8500/prcmu.c b/cpu/arm_cortexa9/db8500/prcmu.c index e411d1a1c..1cd4a7f8e 100644 --- a/cpu/arm_cortexa9/db8500/prcmu.c +++ b/cpu/arm_cortexa9/db8500/prcmu.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #include diff --git a/cpu/arm_cortexa9/db8500/timer.c b/cpu/arm_cortexa9/db8500/timer.c index 42d70c73e..86065e5a8 100644 --- a/cpu/arm_cortexa9/db8500/timer.c +++ b/cpu/arm_cortexa9/db8500/timer.c @@ -23,6 +23,7 @@ #include #include #include +#include #include #include -- cgit v1.2.3