From: Lothar Waßmann Date: Thu, 18 Feb 2016 17:34:32 +0000 (+0100) Subject: karo: tx6ul: add support for TX6UL Mainboard (v1) X-Git-Tag: KARO-TX6-2016-03-10~2^2~2 X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=commitdiff_plain;h=9f552d0051a126bdd9d58d5d5aa8639338292e20;hp=6a596c3a38d2684bf7ce39d1afe7d7f52a3d3df0 karo: tx6ul: add support for TX6UL Mainboard (v1) --- 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);