nuttx/boards/arm/samv7/same70-xplained/Kconfig
Petro Karashchenko 510154299b boards/same70-xplained: initial support of MCUboot
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>

Co-authored-by: Gerson Fernando Budke <nandojve@gmail.com>
2021-11-26 14:55:34 -03:00

155 lines
3.7 KiB
Plaintext

#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#
if ARCH_BOARD_SAME70_XPLAINED
config SAME70XPLAINED_CLICKSHIELD
bool "Mikroe Click Shield"
default n
---help---
In the mrf24j40-starhub configuration, a click shield from
MikroElectronika was used along with a Click "Bee" module. The
click shield supports two click shields.
config SAME70XPLAINED_MB1_SPI
bool
default n
config SAME70XPLAINED_MB2_SPI
bool
default n
choice
prompt "mikroBUS1 Click"
depends on SAME70XPLAINED_CLICKSHIELD
default SAME70XPLAINED_MB1_NONE
config SAME70XPLAINED_MB1_NONE
bool "None"
config SAME70XPLAINED_MB1_BEE
bool "MRF24J40 Bee in mikroBUS1"
depends on IEEE802154_MRF24J40
select SAME70XPLAINED_MB1_SPI
config SAME70XPLAINED_MB1_XBEE
bool "XBee in mikroBUS1"
depends on IEEE802154_XBEE
select SAME70XPLAINED_MB1_SPI
endchoice # mikroBUS1 Click
choice
prompt "mikroBUS2 Click"
depends on SAME70XPLAINED_CLICKSHIELD
default SAME70XPLAINED_MB2_NONE
config SAME70XPLAINED_MB2_NONE
bool "None"
config SAME70XPLAINED_MB2_BEE
bool "MRF24J40 Bee in mikroBUS2"
depends on IEEE802154_MRF24J40
select SAME70XPLAINED_MB2_SPI
config SAME70XPLAINED_MB2_XBEE
bool "XBee in mikroBUS2"
depends on IEEE802154_XBEE
select SAME70XPLAINED_MB2_SPI
endchoice # mikroBUS2 Click
config SAME70XPLAINED_HSMCI0_AUTOMOUNT
bool "HSMCI0 automounter"
default n
depends on FS_AUTOMOUNTER && SAMV7_HSMCI0
if SAME70XPLAINED_HSMCI0_AUTOMOUNT
config SAME70XPLAINED_HSMCI0_AUTOMOUNT_FSTYPE
string "HSMCI0 file system type"
default "vfat"
config SAME70XPLAINED_HSMCI0_AUTOMOUNT_BLKDEV
string "HSMCI0 block device"
default "/dev/mmcsd0"
config SAME70XPLAINED_HSMCI0_AUTOMOUNT_MOUNTPOINT
string "HSMCI0 mount point"
default "/mnt/sdcard0"
config SAME70XPLAINED_HSMCI0_AUTOMOUNT_DDELAY
int "HSMCI0 debounce delay (milliseconds)"
default 1000
config SAME70XPLAINED_HSMCI0_AUTOMOUNT_UDELAY
int "HSMCI0 unmount retry delay (milliseconds)"
default 2000
endif # SAME70XPLAINED_HSMCI0_AUTOMOUNT
config SAME70XPLAINED_PROGMEM_OTA_PARTITION
bool
default n
select MTD
select MTD_BYTE_WRITE
select MTD_PARTITION
select MTD_PROGMEM
select MTD_PROGMEM_ERASESTATE
menuconfig SAME70XPLAINED_APP_FORMAT_MCUBOOT
bool "MCUboot-bootable format"
default n
select SAME70XPLAINED_PROGMEM_OTA_PARTITION
---help---
The MCUboot support of loading the firmware images.
if SAME70XPLAINED_APP_FORMAT_MCUBOOT
config SAME70XPLAINED_MCUBOOT_BOOTLOADER
bool "MCUboot bootloader application"
default n
---help---
This switch between linker scripts to allow an application be
built to another entry point address.
comment "MCUboot Application Image OTA Update support"
config SAME70XPLAINED_OTA_PRIMARY_SLOT_OFFSET
hex "MCUboot application image primary slot offset"
default "0x20000"
config SAME70XPLAINED_OTA_PRIMARY_SLOT_DEVPATH
string "Application image primary slot device path"
default "/dev/ota0"
config SAME70XPLAINED_OTA_SECONDARY_SLOT_OFFSET
hex "MCUboot application image secondary slot offset"
default "0x100000"
config SAME70XPLAINED_OTA_SECONDARY_SLOT_DEVPATH
string "Application image secondary slot device path"
default "/dev/ota1"
config SAME70XPLAINED_OTA_SLOT_SIZE
hex "MCUboot application image slot size (in bytes)"
default "0xe0000"
config SAME70XPLAINED_OTA_SCRATCH_OFFSET
hex "MCUboot scratch partition offset"
default "0x1e0000"
config SAME70XPLAINED_OTA_SCRATCH_DEVPATH
string "Scratch partition device path"
default "/dev/otascratch"
config SAME70XPLAINED_OTA_SCRATCH_SIZE
hex "MCUboot scratch partition size (in bytes)"
default "0x20000"
endif # SAME70XPLAINED_APP_FORMAT_MCUBOOT
endif # ARCH_BOARD_SAME70_XPLAINED