7b8e52bee6a77215dbc9d7b31e5f0f1082ca0204
[glsdk/meta-ti-glsdk.git] / recipes-bsp / u-boot / u-boot / 2011.09git / 0002-evm-If-beaglebone-is-detected-pass-the-MACH_TYPE_BEA.patch
1 From 17c0530b1539fb8813efc11c60dd87fd9a3a074b Mon Sep 17 00:00:00 2001
2 From: Steve Kipisz <s-kipisz2@ti.com>
3 Date: Thu, 13 Oct 2011 16:31:26 -0500
4 Subject: [PATCH 2/4] evm: If beaglebone is detected, pass the MACH_TYPE_BEAGLEBONE to Linux
6 Signed-off-by: Steve Kipisz <s-kipisz2@ti.com>
7 Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
8 ---
9  board/ti/am335x/evm.c |    4 +++-
10  1 files changed, 3 insertions(+), 1 deletions(-)
12 diff --git a/board/ti/am335x/evm.c b/board/ti/am335x/evm.c
13 index 95e790b..af34bfd 100755
14 --- a/board/ti/am335x/evm.c
15 +++ b/board/ti/am335x/evm.c
16 @@ -447,7 +447,9 @@ static void detect_daughter_board_profile(void)
17  int board_evm_init(void)
18  {
19         /* mach type passed to kernel */
20 -       if (board_id == IA_BOARD)
21 +       if (board_id == BONE_BOARD)
22 +               gd->bd->bi_arch_number = MACH_TYPE_BEAGLEBONE;
23 +       else if (board_id == IA_BOARD)
24                 gd->bd->bi_arch_number = MACH_TYPE_TIAM335IAEVM;
25         else
26                 gd->bd->bi_arch_number = MACH_TYPE_TIAM335EVM;
27 -- 
28 1.6.6.1