6f12d6c1e1d7632581d153a13f520c8456be4b61
[glsdk/meta-ti-glsdk.git] / recipes-bsp / u-boot / u-boot / 2011.09git / 0001-mach-types-Add-new-beaglebone-machine-type.patch
1 From ec41c3f94a9a498d1f7061abd98e41a66c0ab13e Mon Sep 17 00:00:00 2001
2 From: Steve Kipisz <s-kipisz2@ti.com>
3 Date: Thu, 13 Oct 2011 14:42:35 -0500
4 Subject: [PATCH 1/4] mach-types: Add new beaglebone machine type.
6 * New machine type is 3808
8 Signed-off-by: Steve Kipisz <s-kipisz2@ti.com>
9 Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
10 ---
11  arch/arm/include/asm/mach-types.h |   13 +++++++++++++
12  1 files changed, 13 insertions(+), 0 deletions(-)
14 diff --git a/arch/arm/include/asm/mach-types.h b/arch/arm/include/asm/mach-types.h
15 index c6ea523..68ac2ba 100644
16 --- a/arch/arm/include/asm/mach-types.h
17 +++ b/arch/arm/include/asm/mach-types.h
18 @@ -3314,6 +3314,7 @@ extern unsigned int __machine_arch_type;
19  #define MACH_TYPE_GOFLEXHOME           3338
20  #define MACH_TYPE_TIAM335EVM           3589
21  #define MACH_TYPE_TIAM335IAEVM         3684
22 +#define MACH_TYPE_BEAGLEBONE           3808
23  
24  #ifdef CONFIG_ARCH_EBSA110
25  # ifdef machine_arch_type
26 @@ -42927,6 +42928,18 @@ extern unsigned int __machine_arch_type;
27  # define machine_is_tiam335evm() (0)
28  #endif
29  
30 +#ifdef CONFIG_MACH_BEAGLEBONE
31 +# ifdef machine_arch_type
32 +#  undef machine_arch_type
33 +#  define machine_arch_type     __machine_arch_type
34 +# else
35 +#  define machine_arch_type     MACH_TYPE_BEAGLEBONE
36 +# endif
37 +# define machine_is_beaglebone() (machine_arch_type == MACH_TYPE_BEAGLEBONE)
38 +#else
39 +# define machine_is_beaglebone() (0)
40 +#endif
41 +
42  /*
43   * These have not yet been registered
44   */
45 -- 
46 1.6.6.1