diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2018-04-16 12:31:55 -0700 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-04-17 09:13:07 +0200 |
commit | 0b3c9e61273b641c6f80c0bf85c5c471fbc137b0 (patch) | |
tree | 715dc226bbb9e6212b7e7a3bea771cdfa6832368 | |
parent | 499ac217c6f56b4bf32fd7c0ce75510020deab60 (diff) | |
download | barebox-0b3c9e61273b641c6f80c0bf85c5c471fbc137b0.tar.gz barebox-0b3c9e61273b641c6f80c0bf85c5c471fbc137b0.tar.xz |
bootsource: Add BOOTSOURCE_CAN
Add BOOTSOURCE_CAN for SoCs that can boot from CAN interface.
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | common/bootsource.c | 1 | ||||
-rw-r--r-- | include/bootsource.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/common/bootsource.c b/common/bootsource.c index 707b07924c..78ecd82676 100644 --- a/common/bootsource.c +++ b/common/bootsource.c @@ -36,6 +36,7 @@ static const char *bootsource_str[] = { [BOOTSOURCE_HD] = "harddisk", [BOOTSOURCE_USB] = "usb", [BOOTSOURCE_NET] = "net", + [BOOTSOURCE_CAN] = "can", }; static enum bootsource bootsource = BOOTSOURCE_UNKNOWN; diff --git a/include/bootsource.h b/include/bootsource.h index c6d3b3a98b..064f6b9a28 100644 --- a/include/bootsource.h +++ b/include/bootsource.h @@ -16,6 +16,7 @@ enum bootsource { BOOTSOURCE_HD, BOOTSOURCE_USB, BOOTSOURCE_NET, + BOOTSOURCE_CAN, }; #define BOOTSOURCE_INSTANCE_UNKNOWN -1 |