--- /dev/null
+From 7b1ce28ae31b4114634d1b1b67f8de7a4d8df20d Mon Sep 17 00:00:00 2001
+From: Koen Kooi <koen@dominion.thruhere.net>
+Date: Tue, 23 Nov 2010 11:40:20 +0100
+Subject: [PATCH 8/8] ARM: OMAP: add omap_rev_* macros
+
+This is just to make the SGX modules build that depend on omap_rev_lt_3_0
+
+Signed-off-by: Koen Kooi <koen@beagleboard.org>
+---
+ arch/arm/plat-omap/include/plat/cpu.h | 55 +++++++++++++++++++++++++++++++++
+ 1 files changed, 55 insertions(+), 0 deletions(-)
+
+diff --git a/arch/arm/plat-omap/include/plat/cpu.h b/arch/arm/plat-omap/include/plat/cpu.h
+index 3fd8b40..1a8c347 100644
+--- a/arch/arm/plat-omap/include/plat/cpu.h
++++ b/arch/arm/plat-omap/include/plat/cpu.h
+@@ -394,6 +394,61 @@ IS_OMAP_TYPE(3517, 0x3517)
+ #define OMAP4430_REV_ES2_0 0x44301044
+
+ /*
++ * Silicon revisions
++ */
++#define OMAP_ES_1_0 0x00
++#define OMAP_ES_2_0 0x10
++#define OMAP_ES_2_1 0x20
++#define OMAP_ES_3_0 0x30
++#define OMAP_ES_3_1 0x40
++
++#define OMAP_REV_MASK 0x0000ff00
++#define OMAP_REV_BITS ((omap_rev() & OMAP_REV_MASK) >> 8)
++
++#define OMAP_REV_IS(revid) \
++static inline u8 omap_rev_is_ ##revid (void) \
++{ \
++ return (OMAP_REV_BITS == OMAP_ES_ ##revid) ? 1 : 0; \
++}
++
++#define OMAP_REV_LT(revid) \
++static inline u8 omap_rev_lt_ ##revid (void) \
++{ \
++ return (OMAP_REV_BITS < OMAP_ES_ ##revid) ? 1 : 0; \
++}
++
++#define OMAP_REV_LE(revid) \
++static inline u8 omap_rev_le_ ##revid (void) \
++{ \
++ return (OMAP_REV_BITS <= OMAP_ES_ ##revid) ? 1 : 0; \
++}
++
++#define OMAP_REV_GT(revid) \
++static inline u8 omap_rev_gt_ ##revid (void) \
++{ \
++ return (OMAP_REV_BITS > OMAP_ES_ ##revid) ? 1 : 0; \
++}
++
++#define OMAP_REV_GE(revid) \
++static inline u8 omap_rev_ge_ ##revid (void) \
++{ \
++ return (OMAP_REV_BITS >= OMAP_ES_ ##revid) ? 1 : 0; \
++}
++
++#define OMAP_REV_FUNCTIONS(revid) \
++ OMAP_REV_IS(revid) \
++ OMAP_REV_LT(revid) \
++ OMAP_REV_LE(revid) \
++ OMAP_REV_GT(revid) \
++ OMAP_REV_GE(revid)
++
++OMAP_REV_FUNCTIONS(1_0)
++OMAP_REV_FUNCTIONS(2_0)
++OMAP_REV_FUNCTIONS(2_1)
++OMAP_REV_FUNCTIONS(3_0)
++OMAP_REV_FUNCTIONS(3_1)
++
++/*
+ * omap_chip bits
+ *
+ * CHIP_IS_OMAP{2420,2430,3430} indicate that a particular structure is
+--
+1.6.6.1
+
# The main PR is now using MACHINE_KERNEL_PR, for omap3 see conf/machine/include/omap3.inc
PV = "2.6.36+2.6.37-rc2"
-MACHINE_KERNEL_PR_append = "a+gitr${SRCREV}"
+MACHINE_KERNEL_PR_append = "b+gitr${SRCREV}"
SRCREV = "8973a21e18241081d16693504d7c0ed5b9918716"
FILESPATHPKG_prepend = "linux-omap-2.6.37rc:"
file://0005-mmc-don-t-display-single-block-read-console-messages.patch \
file://0006-MTD-silence-ecc-errors-on-mtdblock0.patch \
file://0007-Miracle-patch.patch \
+ file://0008-ARM-OMAP-add-omap_rev_-macros.patch \
"
SRC_URI_append_beagleboard = " file://logo_linux_clut224.ppm \