diff options
author | WenHai Fang <wenhai.h.fang@stericsson.com> | 2011-09-27 13:51:19 +0200 |
---|---|---|
committer | Preetham-rao K <preetham.rao@stericsson.com> | 2011-09-28 12:46:02 +0200 |
commit | 0cfce97848aa20dd431b11f66a063d92a2750daf (patch) | |
tree | 8a0cbc35c4c7e7daf724fc9147a90122a3ff99cd | |
parent | 68e87447f4361f612d6cde754cf54fcc772a6180 (diff) |
u8500: Add Support for DB8520
Add DB8520 support
ST-Ericsson ID: 353334
ST-Ericsson FOSS-OUT ID: NA
Signed-off-by: WenHai Fang <wenhai.h.fang@stericsson.com>
Change-Id: I88b67c577e4a4d304b1d5057ab36c39158c63d37
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/32189
Reviewed-by: QATOOLS
Reviewed-by: Preetham-rao K <preetham.rao@stericsson.com>
-rw-r--r-- | cpu/arm_cortexa9/db8500/cpu.c | 2 | ||||
-rw-r--r-- | cpu/arm_cortexa9/db8500/sec_bridge.c | 7 | ||||
-rw-r--r-- | include/asm-arm/arch-db8500/cpu.h | 6 |
3 files changed, 13 insertions, 2 deletions
diff --git a/cpu/arm_cortexa9/db8500/cpu.c b/cpu/arm_cortexa9/db8500/cpu.c index 5267304bc..fb9ed974f 100644 --- a/cpu/arm_cortexa9/db8500/cpu.c +++ b/cpu/arm_cortexa9/db8500/cpu.c @@ -91,6 +91,8 @@ int print_cpuinfo(void) version = "v2.1"; else if (cpu_is_u8500v20()) version = "v2.0"; + else if (cpu_is_u8520v22()) + version = "u8520v2.2"; else version = "v2.x"; } else if (cpu_is_u8500v11()) diff --git a/cpu/arm_cortexa9/db8500/sec_bridge.c b/cpu/arm_cortexa9/db8500/sec_bridge.c index 2ba180865..390350177 100644 --- a/cpu/arm_cortexa9/db8500/sec_bridge.c +++ b/cpu/arm_cortexa9/db8500/sec_bridge.c @@ -18,6 +18,7 @@ struct sec_rom_cut_desc { }; static const struct sec_rom_cut_desc cuttable[] = { + { 0x9001DBF4, 0x008520B2, 0x90017300 }, { 0x9001DBF4, 0x008500B2, 0x90017300 }, { 0x9001DBF4, 0x008500B1, 0x90017300 }, { 0x9001DBF4, 0x008500B0, 0x90017300 }, @@ -212,11 +213,13 @@ static int sec_bridge_verify_image(u32 *img_addr, return 0; } -int sec_bridge_verify_kernel_image(u32 *img_addr) { +int sec_bridge_verify_kernel_image(u32 *img_addr) +{ return sec_bridge_verify_image(img_addr, ISSW_PL_TYPE_APE_NW_CODE); } -int sec_bridge_verify_itp_image(u32 *img_addr) { +int sec_bridge_verify_itp_image(u32 *img_addr) +{ return sec_bridge_verify_image(img_addr, ISSW_PL_TYPE_ITP); } diff --git a/include/asm-arm/arch-db8500/cpu.h b/include/asm-arm/arch-db8500/cpu.h index 151683a25..d1fb4f20f 100644 --- a/include/asm-arm/arch-db8500/cpu.h +++ b/include/asm-arm/arch-db8500/cpu.h @@ -23,6 +23,7 @@ #define ASICID_DB8500V20 0x008500B0 #define ASICID_DB8500V21 0x008500B1 #define ASICID_DB8500V22 0x008500B2 +#define ASICID_DB8520V22 0x008520B2 /* * Keep these CPU identity functions inline here because they are short * and used by many. Will make for fast optimized compiled code. @@ -88,4 +89,9 @@ static inline int cpu_is_u8500v22(void) return read_asicid() == ASICID_DB8500V22; } +static inline int cpu_is_u8520v22(void) +{ + return read_asicid() == ASICID_DB8520V22; +} + #endif /* __DB8500_CPU_H__ */ |