summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/u-boot/u-boot/2011.09git/0004-am335x-evm-fall-back-to-bone-if-header.config-is-emp.patch
blob: db3ae69c45dd11a6b70957fe6ee2b72fbe089ad6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
From 3e3ac90cdd7fade62e898453f529364e4d9c7589 Mon Sep 17 00:00:00 2001
From: Koen Kooi <koen@dominion.thruhere.net>
Date: Tue, 18 Oct 2011 19:18:56 +0200
Subject: [PATCH 4/4] am335x-evm: fall back to bone if header.config is empty

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
---
 board/ti/am335x/evm.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/board/ti/am335x/evm.c b/board/ti/am335x/evm.c
index f484a3c..1c3ba2c 100755
--- a/board/ti/am335x/evm.c
+++ b/board/ti/am335x/evm.c
@@ -495,6 +495,7 @@ int board_init(void)
 		goto err_out;
 	}
 
+	printf("EEPROM ID:\n magic: %#08x\n name: %8s\n version: %4s\n serial: %12s\n config: %32s\n mac_addr: %s\n", header.magic, header.name, header.version, header.serial, header.config, header.mac_addr);
 	if (header.magic != 0xEE3355AA) {
 		/* read the eeprom using i2c again, but use only a 1 byte address */
 		if (i2c_read(I2C_BASE_BOARD_ADDR, 0, 1, (uchar *)&header,
@@ -522,11 +523,10 @@ int board_init(void)
 		board_id = IPP_BOARD;
 	} else {
 		printf("Did not find a recognized configuration, "
-			"assuming General purpose EVM in Profile 0 with "
-			"Daughter board\n");
-		board_id = GP_BOARD;
+			"assuming BeagleBone\n");
+		board_id = BONE_BOARD;
 		profile = 1;	/* profile 0 is internally considered as 1 */
-		daughter_board_connected = 1;
+		daughter_board_connected = 0;
 	}
 
 	configure_evm_pin_mux(board_id, profile, daughter_board_connected);
-- 
1.6.6.1