From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ns.lynxeye.de ([87.118.118.114] helo=lynxeye.de) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iTRkN-0007Ge-Sh for barebox@lists.infradead.org; Sat, 09 Nov 2019 14:29:56 +0000 Received: from astat.fritz.box (a89-183-91-60.net-htp.de [89.183.91.60]) by lynxeye.de (Postfix) with ESMTPA id 2F4E6E7421F for ; Sat, 9 Nov 2019 15:28:45 +0100 (CET) From: Lucas Stach Date: Sat, 9 Nov 2019 15:28:36 +0100 Message-Id: <20191109142837.82409-17-dev@lynxeye.de> In-Reply-To: <20191109142837.82409-1-dev@lynxeye.de> References: <20191109142837.82409-1-dev@lynxeye.de> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH v2 17/18] bootsource: add JTAG bootsource To: barebox@lists.infradead.org Some SoCs are able to detect if they are booted from JTAG. Add the enum value to be able to represent this as a valid bootsource. Signed-off-by: Lucas Stach --- common/bootsource.c | 1 + include/bootsource.h | 1 + 2 files changed, 2 insertions(+) diff --git a/common/bootsource.c b/common/bootsource.c index 4ef8d8ad9585..1f2bf87e99ed 100644 --- a/common/bootsource.c +++ b/common/bootsource.c @@ -37,6 +37,7 @@ static const char *bootsource_str[] = { [BOOTSOURCE_USB] = "usb", [BOOTSOURCE_NET] = "net", [BOOTSOURCE_CAN] = "can", + [BOOTSOURCE_JTAG] = "jtag", }; static enum bootsource bootsource = BOOTSOURCE_UNKNOWN; diff --git a/include/bootsource.h b/include/bootsource.h index 29347aaeb042..92f7f27cd4fa 100644 --- a/include/bootsource.h +++ b/include/bootsource.h @@ -17,6 +17,7 @@ enum bootsource { BOOTSOURCE_USB, BOOTSOURCE_NET, BOOTSOURCE_CAN, + BOOTSOURCE_JTAG, }; #define BOOTSOURCE_INSTANCE_UNKNOWN -1 -- 2.23.0 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox