blob: 4127dc7120f8c9a67113482e814c27c096182cb2 [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
19 help
20 Enable serial recovery feature in mcuboot.
21
22config BOOT_SERIAL_DETECT_PORT
23 string
24 prompt "GPIO Port to trigger serial recovery mode"
25 default CONFIG_GPIO_NRF5_P0_DEV_NAME
26 depends on MCUBOOT_SERIAL
27 help
28 Serial recovery detect port
29
30config BOOT_SERIAL_DETECT_PIN
31 int
32 prompt "Pin to trigger serial recovery mode"
33 default 0
34 depends on MCUBOOT_SERIAL
35 help
36 Serial recovery detect pin
37
38config BOOT_SERIAL_DETECT_PIN_VAL
39 int "Boot Pin trigger value"
40 default 0
41 range 0 1
42 depends on MCUBOOT_SERIAL
43 help
44 The input pin logic value which triggers the boot serial recovery mode.