blob: bcf196b6bd4fc73c1c3589932cbed2b073f4f32e [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 Puzdrowski64ad0922017-09-22 11:33:41 +020021 help
22 Enable serial recovery feature in mcuboot.
23
Andrzej Puzdrowskif6f652e2017-10-19 11:21:52 +020024config BOOT_MAX_LINE_INPUT_LEN
25 int "cmd line max length"
26 default 512
27 depends on MCUBOOT_SERIAL
28 help
29 Maximum length of commands transported over the serial protocol
30
Andrzej Puzdrowski64ad0922017-09-22 11:33:41 +020031config BOOT_SERIAL_DETECT_PORT
32 string
33 prompt "GPIO Port to trigger serial recovery mode"
34 default CONFIG_GPIO_NRF5_P0_DEV_NAME
35 depends on MCUBOOT_SERIAL
36 help
37 Serial recovery detect port
38
39config BOOT_SERIAL_DETECT_PIN
40 int
41 prompt "Pin to trigger serial recovery mode"
42 default 0
43 depends on MCUBOOT_SERIAL
44 help
45 Serial recovery detect pin
46
47config BOOT_SERIAL_DETECT_PIN_VAL
48 int "Boot Pin trigger value"
49 default 0
50 range 0 1
51 depends on MCUBOOT_SERIAL
52 help
53 The input pin logic value which triggers the boot serial recovery mode.