Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191766
b: refs/heads/master
c: f38406b
h: refs/heads/master
v: v3
  • Loading branch information
Rabin Vincent authored and Russell King committed May 4, 2010
1 parent ab5d933 commit dfe440c
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 72638ddd1422df38d1b1b269038cfc8d66152c10
refs/heads/master: f38406bbfc5e1d4bd9726454ecb60ba52aa9da11
22 changes: 18 additions & 4 deletions trunk/arch/arm/mach-ux500/Kconfig
Original file line number Diff line number Diff line change
@@ -1,16 +1,30 @@
if ARCH_U8500

config UX500_SOC_COMMON
bool
default y
select ARM_GIC
select HAS_MTU
select NOMADIK_GPIO

config UX500_SOC_DB8500
bool

config UX500_SOC_DB5500
bool

menu "ST-Ericsson platform type"
depends on ARCH_U8500

comment "ST-Ericsson Multicore Mobile Platforms"

config MACH_U8500_MOP
bool "U8500 Early Development platform"
default y
select ARM_GIC
select HAS_MTU
select NOMADIK_GPIO
select UX500_SOC_DB8500
help
Include support for mop500 development platform
based on U8500 architecture. The platform is based
on early drop silicon version of 8500.
endmenu

endif
13 changes: 11 additions & 2 deletions trunk/arch/arm/mach-ux500/include/mach/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,14 +147,23 @@

#include <asm/cputype.h>

static inline bool cpu_is_u8500(void)
{
#ifdef CONFIG_UX500_SOC_DB8500
return 1;
#else
return 0;
#endif
}

static inline bool cpu_is_u8500ed(void)
{
return (read_cpuid_id() & 15) == 0;
return cpu_is_u8500() && (read_cpuid_id() & 15) == 0;
}

static inline bool cpu_is_u8500v1(void)
{
return (read_cpuid_id() & 15) == 1;
return cpu_is_u8500() && (read_cpuid_id() & 15) == 1;
}

#endif
Expand Down

0 comments on commit dfe440c

Please sign in to comment.