mirror of
https://github.com/linux-msm/cdba.git
synced 2026-02-25 13:11:56 -08:00
alpaca: Add configuration for keeping USB always connected
USB on the Primus acts up when we toggle USB in Alpaca, so add a configuration option to force it on at all times. Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
This commit is contained in:
@@ -138,6 +138,8 @@ static void parse_board(struct device_parser *dp)
|
||||
dev->description = strdup(value);
|
||||
} else if (!strcmp(key, "fastboot_key_timeout")) {
|
||||
dev->fastboot_key_timeout = strtoul(value, NULL, 10);
|
||||
} else if (!strcmp(key, "usb_always_on")) {
|
||||
dev->usb_always_on = !strcmp(value, "true");
|
||||
} else {
|
||||
fprintf(stderr, "device parser: unknown key \"%s\"\n", key);
|
||||
exit(1);
|
||||
|
||||
Reference in New Issue
Block a user