x-load: fall back to xM when detecting beagleboard revisions
[glsdk/meta-ti-glsdk.git] / recipes-bsp / x-load / x-load / 0005-omap4-Make-1GHz-as-default-MPU-clock.patch
1 From 76ebc9fdbfff91f226bc559706e3e7ece43ec30d Mon Sep 17 00:00:00 2001
2 From: Sebastien Jan <s-jan@ti.com>
3 Date: Wed, 22 Dec 2010 13:53:18 +0100
4 Subject: [PATCH 5/5] omap4: Make 1GHz as default MPU clock
6 Signed-off-by: Aneesh V <aneesh@ti.com>
7 Signed-off-by: Rajendra Nayak <rnayak@ti.com>
8 Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
9 Signed-off-by: Sebastien Jan <s-jan@ti.com>
10 Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
11 ---
12  Makefile                        |    9 +++++++++
13  include/configs/omap4430panda.h |    1 -
14  2 files changed, 9 insertions(+), 1 deletions(-)
16 diff --git a/Makefile b/Makefile
17 index fd85142..6258324 100644
18 --- a/Makefile
19 +++ b/Makefile
20 @@ -235,6 +235,15 @@ igep0020_config :    unconfig
21  #########################################################################
22  omap4430panda_config :    unconfig
23         @./mkconfig $(@:_config=) arm omap4 omap4430panda 1
24 +       @./mkconfig $(@:_config=) arm omap4 omap4430panda 1
25 +       @[ -n "$(findstring _MPU_600MHz,$@)" ] || \
26 +               { echo "#define CONFIG_MPU_1000 1"      >> $(obj)include/config.h; \
27 +                 echo "MPU at 1GHz revision.."; \
28 +               }
29 +       @[ -z "$(findstring _MPU_600MHz,$@)" ] || \
30 +               { echo "#define CONFIG_MPU_600 1"       >> $(obj)include/config.h; \
31 +                 echo "MPU at 600MHz revision.."; \
32 +               }
33  
34  #########################################################################
35  
36 diff --git a/include/configs/omap4430panda.h b/include/configs/omap4430panda.h
37 index 74e2f42..eae02ef 100644
38 --- a/include/configs/omap4430panda.h
39 +++ b/include/configs/omap4430panda.h
40 @@ -44,7 +44,6 @@
41   * On Phoenix board vlotage needs to be bumped up
42   * before scaling the MPU up
43   */
44 -#define CONFIG_MPU_600         1
45  #define CORE_190MHZ            1
46  /* Enable the below macro if MMC boot support is required */
47  #define CONFIG_MMC               1
48 -- 
49 1.6.6.1