From 3240a1ab310fac143eef856a98bece96fa1a47ff Mon Sep 17 00:00:00 2001 From: "Mathieu J. Poirier" Date: Mon, 14 Feb 2011 14:35:53 -0700 Subject: Adding base support for snowball. - Initial pin configuration. - Introduction of u8500_is_snowball. - Introduction of new machine type. Signed-off-by: Mathieu Poirier --- include/asm-arm/arch-db8500/cpu.h | 9 +++++++++ include/asm-arm/mach-types.h | 5 +++++ 2 files changed, 14 insertions(+) (limited to 'include') 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 -- cgit v1.2.3