diff options
author | Joakim Axelsson <joakim.axelsson@stericsson.com> | 2010-12-03 13:18:04 +0800 |
---|---|---|
committer | Michael BRANDT <michael.brandt@stericsson.com> | 2010-12-08 16:19:19 +0100 |
commit | 568e790d63676b87c9e3be499e09dc3a390cbbfe (patch) | |
tree | afd86821e40db8d4f299ce7e9d54be704f011fdd /cpu | |
parent | ad006f9896b3cc1d8d2b855f27bbd1ad4482abe1 (diff) |
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 <joakim.axelsson@stericsson.com>
Change-Id: Ied553b7c8a004a37c70c3e328a069ae8b2a92b23
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/9893
Reviewed-by: QATOOLS
Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
Tested-by: Michael BRANDT <michael.brandt@stericsson.com>
Diffstat (limited to 'cpu')
-rw-r--r-- | cpu/arm_cortexa9/db8500/cpu.c | 3 | ||||
-rw-r--r-- | cpu/arm_cortexa9/db8500/prcmu.c | 1 | ||||
-rw-r--r-- | cpu/arm_cortexa9/db8500/timer.c | 1 |
3 files changed, 3 insertions, 2 deletions
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 <common.h> #include <asm/io.h> #include <asm/arch/clock.h> -#include <asm/arch/common.h> -#include <asm/arch/hardware.h> +#include <asm/arch/cpu.h> #include <asm/arch/prcmu.h> #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 <common.h> #include <config.h> #include <asm/io.h> +#include <asm/arch/cpu.h> #include <asm/arch/hardware.h> #include <asm/types.h> #include <asm/io.h> 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 <common.h> #include <asm/io.h> #include <asm/arch/common.h> +#include <asm/arch/cpu.h> #include <asm/arch/hardware.h> #include <boottime.h> |