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 |
| 19 | help |
| 20 | Enable serial recovery feature in mcuboot. |
| 21 | |
| 22 | config 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 | |
| 30 | config 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 | |
| 38 | config 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. |