From 9f552d0051a126bdd9d58d5d5aa8639338292e20 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lothar=20Wa=C3=9Fmann?= Date: Thu, 18 Feb 2016 18:34:32 +0100 Subject: [PATCH 1/1] karo: tx6ul: add support for TX6UL Mainboard (v1) --- board/karo/tx6/tx6ul.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/board/karo/tx6/tx6ul.c b/board/karo/tx6/tx6ul.c index d8595b23b2..2c0a91fd53 100644 --- a/board/karo/tx6/tx6ul.c +++ b/board/karo/tx6/tx6ul.c @@ -1294,6 +1294,15 @@ int board_late_init(void) printf("WARNING: Unsupported STK5 board rev.: %s\n", baseboard + 4); } + } else if (strncmp(baseboard, "ulmb-", 5) == 0) { + const char *otg_mode = getenv("otg_mode"); + + if (otg_mode && strcmp(otg_mode, "host") == 0) { + printf("otg_mode='%s' is incompatible with baseboard %s; setting to 'none'\n", + otg_mode, baseboard); + setenv("otg_mode", "none"); + } + stk5_board_init(); } else { printf("WARNING: Unsupported baseboard: '%s'\n", baseboard); -- 2.39.2