ef901a9116ce5c33726bca36da785a532fd3cb96
[glsdk/meta-ti-glsdk.git] / recipes-bsp / u-boot / u-boot / 2011.09git / 0005-am335x-evm-Read-name-field-in-EEPROM-header-for-Beag.patch
1 From 186250ee6abca3f080b5321504a1c5881ffbf7c6 Mon Sep 17 00:00:00 2001
2 From: Joel A Fernandes <joelagnel@ti.com>
3 Date: Thu, 20 Oct 2011 19:46:53 -0500
4 Subject: [PATCH] am335x-evm: Read name field in EEPROM header for BeagleBoard bone detection
6 Signed-off-by: Joel A Fernandes <joelagnel@ti.com>
7 ---
8  board/ti/am335x/evm.c |    4 ++++
9  1 files changed, 4 insertions(+), 0 deletions(-)
11 diff --git a/board/ti/am335x/evm.c b/board/ti/am335x/evm.c
12 index 37e348f..b63dcbe 100755
13 --- a/board/ti/am335x/evm.c
14 +++ b/board/ti/am335x/evm.c
15 @@ -501,6 +501,10 @@ int board_init(void)
16                 detect_daughter_board_profile();
17         } else if (!strncmp("SKU#03", header.config, 6)) {
18                 board_id = IPP_BOARD;
19 +       } else if (!strncmp("A335BONE", header.name, 8)) {
20 +               board_id = BONE_BOARD;
21 +               profile = 1;    /* profile 0 is internally considered as 1 */
22 +               daughter_board_connected = 0;
23         } else {
24                 printf("Did not find a recognized configuration, "
25                         "assuming BeagleBone\n");
26 -- 
27 1.7.1