blob: d7db75eaf9a0e3a5eab7188fad034e639fdde2d9 [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
Carles Cufi84ede582018-01-29 15:12:00 +010014config MCUBOOT_DEVICE_SETTINGS
15 # Hidden selector for device-specific settings
16 bool
17 default y
18 # CPU options
19 select MCUBOOT_DEVICE_CPU_CORTEX_M0 if CPU_CORTEX_M0
20
21config MCUBOOT_DEVICE_CPU_CORTEX_M0
22 # Hidden selector for Cortex-M0 settings
23 bool
24 default n
25 select SW_VECTOR_RELAY if !CPU_CORTEX_M0_HAS_VECTOR_TABLE_REMAP
26
Andrzej Puzdrowski64ad0922017-09-22 11:33:41 +020027menuconfig MCUBOOT_SERIAL
28 bool
29 prompt "MCUBOOT serial recovery"
30 default n
31 select REBOOT
Andrzej Puzdrowskif6f652e2017-10-19 11:21:52 +020032 select UART_INTERRUPT_DRIVEN
33 select SERIAL
Andrzej Puzdrowski8e96b832017-09-08 16:49:14 +020034 select NEWLIB_LIBC
Andrzej Puzdrowski64ad0922017-09-22 11:33:41 +020035 help
36 Enable serial recovery feature in mcuboot.
37
Andrzej Puzdrowskif6f652e2017-10-19 11:21:52 +020038config BOOT_MAX_LINE_INPUT_LEN
39 int "cmd line max length"
40 default 512
41 depends on MCUBOOT_SERIAL
42 help
43 Maximum length of commands transported over the serial protocol
44
Andrzej Puzdrowski64ad0922017-09-22 11:33:41 +020045config BOOT_SERIAL_DETECT_PORT
46 string
47 prompt "GPIO Port to trigger serial recovery mode"
Andrzej Puzdrowski8e96b832017-09-08 16:49:14 +020048 default GPIO_0 if SOC_FAMILY_NRF5
Andrzej Puzdrowski64ad0922017-09-22 11:33:41 +020049 depends on MCUBOOT_SERIAL
50 help
51 Serial recovery detect port
52
53config BOOT_SERIAL_DETECT_PIN
54 int
55 prompt "Pin to trigger serial recovery mode"
Andrzej Puzdrowski8e96b832017-09-08 16:49:14 +020056 default 11 if BOARD_NRF52840_PCA10056
57 default 13 if BOARD_NRF52_PCA10040
Andrzej Puzdrowski64ad0922017-09-22 11:33:41 +020058 depends on MCUBOOT_SERIAL
59 help
60 Serial recovery detect pin
61
62config BOOT_SERIAL_DETECT_PIN_VAL
63 int "Boot Pin trigger value"
64 default 0
65 range 0 1
66 depends on MCUBOOT_SERIAL
67 help
68 The input pin logic value which triggers the boot serial recovery mode.