diff options
author | Mathieu J. Poirier <mathieu.poirier@linaro.org> | 2011-02-14 14:35:53 -0700 |
---|---|---|
committer | Mathieu J. Poirier <mathieu.poirier@linaro.org> | 2011-02-14 14:35:53 -0700 |
commit | 3240a1ab310fac143eef856a98bece96fa1a47ff (patch) | |
tree | 08408399a33a1f808cc1527d1cf2a4c2a3abbe4d /include | |
parent | 4035e3996f903064c91e6e1ce9b1328018c6a9d3 (diff) |
Adding base support for snowball.
- Initial pin configuration.
- Introduction of u8500_is_snowball.
- Introduction of new machine type.
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-arm/arch-db8500/cpu.h | 9 | ||||
-rw-r--r-- | include/asm-arm/mach-types.h | 5 |
2 files changed, 14 insertions, 0 deletions
diff --git a/include/asm-arm/arch-db8500/cpu.h b/include/asm-arm/arch-db8500/cpu.h index a9d62f4b0..2d18d08d7 100644 --- a/include/asm-arm/arch-db8500/cpu.h +++ b/include/asm-arm/arch-db8500/cpu.h @@ -39,6 +39,15 @@ static inline unsigned int read_cpuid(void) return val; } +static inline int u8500_is_snowball(void) +{ +#ifdef CONFIG_SNOWBALL + return 1; +#else + return 0; +#endif +} + static inline int u8500_is_earlydrop(void) { return read_cpuid() == CPUID_DB8500ED; diff --git a/include/asm-arm/mach-types.h b/include/asm-arm/mach-types.h index 28ef1e9f2..aa736068b 100644 --- a/include/asm-arm/mach-types.h +++ b/include/asm-arm/mach-types.h @@ -3170,6 +3170,11 @@ extern unsigned int __machine_arch_type; /* manually added, but official value */ #define MACH_TYPE_HREFV60 3293 /* 0x0cdd */ +/* Manually added, unofficial value. + * Needs to be kept in sync with kernel machine_id. + */ +#define MACH_TYPE_SNOWBALL 2368 + #ifdef CONFIG_ARCH_EBSA110 # ifdef machine_arch_type # undef machine_arch_type |