diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2010-08-04 11:59:09 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-08-06 19:17:15 +0200 |
commit | d3ad8ea4e05eb73c7db9b5f3ad92e6dd8041f7d4 (patch) | |
tree | b40de418b42501ec1c79e48462ed59da3ae3e2ef /arch | |
parent | beb66bf9c2057e878b8eb6bcd83d73cc8f8925f4 (diff) | |
download | barebox-d3ad8ea4e05eb73c7db9b5f3ad92e6dd8041f7d4.tar.gz barebox-d3ad8ea4e05eb73c7db9b5f3ad92e6dd8041f7d4.tar.xz |
arm omap: Add cpu_is_ macros
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-omap/include/mach/generic.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/arm/mach-omap/include/mach/generic.h b/arch/arm/mach-omap/include/mach/generic.h new file mode 100644 index 0000000000..a2dd229c1c --- /dev/null +++ b/arch/arm/mach-omap/include/mach/generic.h @@ -0,0 +1,19 @@ + +/* I2C controller revisions */ +#define OMAP_I2C_REV_2 0x20 + +/* I2C controller revisions present on specific hardware */ +#define OMAP_I2C_REV_ON_2430 0x36 +#define OMAP_I2C_REV_ON_3430 0x3C + +#ifdef CONFIG_ARCH_OMAP +#define cpu_is_omap2430() (1) +#else +#define cpu_is_omap2430() (0) +#endif + +#ifdef CONFIG_ARCH_OMAP3 +#define cpu_is_omap34xx() (1) +#else +#define cpu_is_omap34xx() (0) +#endif |