blob: 871e1e54c610e760e60063055718c642093e9a38 [file] [log] [blame]
Andrzej Puzdrowski64ad0922017-09-22 11:33:41 +02001# Copyright (c) 2017 Linaro Limited
2#
3# SPDX-License-Identifier: Apache-2.0
4#
5
6mainmenu "MCUBOOT configuration"
7
8config ZEPHYR_BASE
9 string
10 option env="ZEPHYR_BASE"
11
12source "$ZEPHYR_BASE/Kconfig.zephyr"
13
14menuconfig MCUBOOT_SERIAL
15 bool
16 prompt "MCUBOOT serial recovery"
17 default n
18 select REBOOT
Andrzej Puzdrowskif6f652e2017-10-19 11:21:52 +020019 select UART_INTERRUPT_DRIVEN
20 select SERIAL
Andrzej Puzdrowski8e96b832017-09-08 16:49:14 +020021 select NEWLIB_LIBC
Andrzej Puzdrowski64ad0922017-09-22 11:33:41 +020022 help
23 Enable serial recovery feature in mcuboot.
24
Andrzej Puzdrowskif6f652e2017-10-19 11:21:52 +020025config BOOT_MAX_LINE_INPUT_LEN
26 int "cmd line max length"
27 default 512
28 depends on MCUBOOT_SERIAL
29 help
30 Maximum length of commands transported over the serial protocol
31
Andrzej Puzdrowski64ad0922017-09-22 11:33:41 +020032config BOOT_SERIAL_DETECT_PORT
33 string
34 prompt "GPIO Port to trigger serial recovery mode"
Andrzej Puzdrowski8e96b832017-09-08 16:49:14 +020035 default GPIO_0 if SOC_FAMILY_NRF5
Andrzej Puzdrowski64ad0922017-09-22 11:33:41 +020036 depends on MCUBOOT_SERIAL
37 help
38 Serial recovery detect port
39
40config BOOT_SERIAL_DETECT_PIN
41 int
42 prompt "Pin to trigger serial recovery mode"
Andrzej Puzdrowski8e96b832017-09-08 16:49:14 +020043 default 11 if BOARD_NRF52840_PCA10056
44 default 13 if BOARD_NRF52_PCA10040
Andrzej Puzdrowski64ad0922017-09-22 11:33:41 +020045 depends on MCUBOOT_SERIAL
46 help
47 Serial recovery detect pin
48
49config BOOT_SERIAL_DETECT_PIN_VAL
50 int "Boot Pin trigger value"
51 default 0
52 range 0 1
53 depends on MCUBOOT_SERIAL
54 help
55 The input pin logic value which triggers the boot serial recovery mode.