[PATCH] OMAP CPU ID: fix OMAP4 build failure
Paul Walmsley
paul at pwsan.com
Tue Jan 19 16:14:08 EST 2010
Hello Abhijit,
it seems that my for_2.6.34 branch does not build unless the following
patch, or one like it, is included. Any comments?
- Paul
From: Paul Walmsley <paul at pwsan.com>
omap_4430sdp_defconfig currently does not build due to some missing CPU IDs:
In file included from arch/arm/mach-omap2/powerdomains.h:59,
from arch/arm/mach-omap2/io.c:42:
arch/arm/mach-omap2/powerdomains44xx.h:39: error: 'CHIP_IS_OMAP4430' undeclared here (not in a function)
... so add CHIP_IS_OMAP4430ES1. Note that this is not yet set by
mach-omap2/id.c; this is for TI to fix.
Signed-off-by: Paul Walmsley <paul at pwsan.com>
Cc: Tony Lindgren <tony at atomide.com>
Cc: Abhijit Pagare <abhijit.pagare at ti.com>
---
arch/arm/plat-omap/include/plat/cpu.h | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/arch/arm/plat-omap/include/plat/cpu.h b/arch/arm/plat-omap/include/plat/cpu.h
index 9a028bd..8ada0ef 100644
--- a/arch/arm/plat-omap/include/plat/cpu.h
+++ b/arch/arm/plat-omap/include/plat/cpu.h
@@ -44,7 +44,7 @@
int omap_type(void);
struct omap_chip_id {
- u8 oc;
+ u16 oc;
u8 type;
};
@@ -470,8 +470,10 @@ IS_OMAP_TYPE(3517, 0x3517)
#define CHIP_IS_OMAP3430ES3_0 (1 << 5)
#define CHIP_IS_OMAP3430ES3_1 (1 << 6)
#define CHIP_IS_OMAP3630ES1 (1 << 7)
+#define CHIP_IS_OMAP4430ES1 (1 << 8)
#define CHIP_IS_OMAP24XX (CHIP_IS_OMAP2420 | CHIP_IS_OMAP2430)
+#define CHIP_IS_OMAP4430 CHIP_IS_OMAP4430ES1
/*
* "GE" here represents "greater than or equal to" in terms of ES
--
1.6.6.rc2.5.g49666
More information about the linux-arm-kernel
mailing list