Andrzej Puzdrowski | 64ad092 | 2017-09-22 11:33:41 +0200 | [diff] [blame] | 1 | # Copyright (c) 2017 Linaro Limited |
| 2 | # |
| 3 | # SPDX-License-Identifier: Apache-2.0 |
| 4 | # |
| 5 | |
| 6 | mainmenu "MCUBOOT configuration" |
| 7 | |
| 8 | config ZEPHYR_BASE |
| 9 | string |
| 10 | option env="ZEPHYR_BASE" |
| 11 | |
| 12 | source "$ZEPHYR_BASE/Kconfig.zephyr" |
| 13 | |
| 14 | menuconfig MCUBOOT_SERIAL |
| 15 | bool |
| 16 | prompt "MCUBOOT serial recovery" |
| 17 | default n |
| 18 | select REBOOT |
Andrzej Puzdrowski | f6f652e | 2017-10-19 11:21:52 +0200 | [diff] [blame] | 19 | select UART_INTERRUPT_DRIVEN |
| 20 | select SERIAL |
Andrzej Puzdrowski | 8e96b83 | 2017-09-08 16:49:14 +0200 | [diff] [blame^] | 21 | select NEWLIB_LIBC |
Andrzej Puzdrowski | 64ad092 | 2017-09-22 11:33:41 +0200 | [diff] [blame] | 22 | help |
| 23 | Enable serial recovery feature in mcuboot. |
| 24 | |
Andrzej Puzdrowski | f6f652e | 2017-10-19 11:21:52 +0200 | [diff] [blame] | 25 | config 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 Puzdrowski | 64ad092 | 2017-09-22 11:33:41 +0200 | [diff] [blame] | 32 | config BOOT_SERIAL_DETECT_PORT |
| 33 | string |
| 34 | prompt "GPIO Port to trigger serial recovery mode" |
Andrzej Puzdrowski | 8e96b83 | 2017-09-08 16:49:14 +0200 | [diff] [blame^] | 35 | default GPIO_0 if SOC_FAMILY_NRF5 |
Andrzej Puzdrowski | 64ad092 | 2017-09-22 11:33:41 +0200 | [diff] [blame] | 36 | depends on MCUBOOT_SERIAL |
| 37 | help |
| 38 | Serial recovery detect port |
| 39 | |
| 40 | config BOOT_SERIAL_DETECT_PIN |
| 41 | int |
| 42 | prompt "Pin to trigger serial recovery mode" |
Andrzej Puzdrowski | 8e96b83 | 2017-09-08 16:49:14 +0200 | [diff] [blame^] | 43 | default 11 if BOARD_NRF52840_PCA10056 |
| 44 | default 13 if BOARD_NRF52_PCA10040 |
Andrzej Puzdrowski | 64ad092 | 2017-09-22 11:33:41 +0200 | [diff] [blame] | 45 | depends on MCUBOOT_SERIAL |
| 46 | help |
| 47 | Serial recovery detect pin |
| 48 | |
| 49 | config 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. |