summaryrefslogtreecommitdiff
path: root/board/ti
diff options
context:
space:
mode:
authorrobertcnelson@gmail.com <robertcnelson@gmail.com>2015-11-11 09:10:52 -0600
committerTom Rini <trini@konsulko.com>2015-11-18 14:50:07 -0500
commitdfd1bb4ec89e8b1e87f0605af2345ad6dcf777da (patch)
tree50453907f943386b63dabb054b64dabfb619e074 /board/ti
parente4aa8edb6e5cae256a5c5a3c5cd30e05e8f5a2b4 (diff)
downloadu-boot-dfd1bb4ec89e8b1e87f0605af2345ad6dcf777da.tar.gz
u-boot-dfd1bb4ec89e8b1e87f0605af2345ad6dcf777da.tar.bz2
u-boot-dfd1bb4ec89e8b1e87f0605af2345ad6dcf777da.zip
board/ti/am335x: add support for BeagleBone Green
SeeedStudio BeagleBone Green (BBG) is clone of the BeagleBone Black (BBB) minus the HDMI port and addition of two Grove connectors (i2c2 and usart2). This board can be identified by the 1A value after A335BNLT (BBB) in the at24 eeprom: 1A: [aa 55 33 ee 41 33 33 35 42 4e 4c 54 1a 00 00 00 |.U3.A335BNLT....|] http://beagleboard.org/green http://www.seeedstudio.com/wiki/Beaglebone_green In Mainline Kernel as of: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=79a4e64c679d8a0b1037da174e4aea578c80c4e6 Patch tested on BeagleBone Black (rev C) and BeagleBone Green (production model) Signed-off-by: Robert Nelson <robertcnelson@gmail.com> CC: Tom Rini <trini@konsulko.com> CC: Jason Kridner <jkridner@gmail.com> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board/ti')
-rw-r--r--board/ti/am335x/board.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c
index f0cb1e204a..f56d17ec58 100644
--- a/board/ti/am335x/board.c
+++ b/board/ti/am335x/board.c
@@ -507,9 +507,15 @@ int board_late_init(void)
safe_string[sizeof(header.name)] = 0;
setenv("board_name", safe_string);
- strncpy(safe_string, (char *)header.version, sizeof(header.version));
- safe_string[sizeof(header.version)] = 0;
- setenv("board_rev", safe_string);
+ /* BeagleBone Green eeprom, board_rev: 0x1a 0x00 0x00 0x00 */
+ if ( (header.version[0] == 0x1a) && (header.version[1] == 0x00) &&
+ (header.version[2] == 0x00) && (header.version[3] == 0x00) ) {
+ setenv("board_rev", "BBG1");
+ } else {
+ strncpy(safe_string, (char *)header.version, sizeof(header.version));
+ safe_string[sizeof(header.version)] = 0;
+ setenv("board_rev", safe_string);
+ }
#endif
return 0;