Skip to content

Commit

Permalink
boards/same70-qmtech: add support of SAME70 QMTECH board
Browse files Browse the repository at this point in the history
Signed-off-by: Petro Karashchenko <[email protected]>
  • Loading branch information
pkarashchenko authored and xiaoxiang781216 committed Nov 29, 2021
1 parent 3180972 commit 4b2b7d1
Show file tree
Hide file tree
Showing 43 changed files with 5,958 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2079,6 +2079,8 @@ Below is a guide to the available README files in the NuttX source tree:
| | | `- metro-m4/
| | | `- README.txt
| | |- samv7/
| | | |- same70-qmtech/
| | | | `- README.txt
| | | |- same70-xplained/
| | | | `- README.txt
| | | `- samv71-xult/
Expand Down
13 changes: 13 additions & 0 deletions boards/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1646,6 +1646,15 @@ config ARCH_BOARD_SAM4S_XPLAINED_PRO
---help---
The port of NuttX to the Atmel SAM4S-Xplained Pro development board.

config ARCH_BOARD_SAME70_QMTECH
bool "Atmel SAME70 evaluation board from QMTECH"
depends on ARCH_CHIP_SAME70N19
select ARCH_HAVE_LEDS
select ARCH_HAVE_BUTTONS
select ARCH_HAVE_IRQBUTTONS
---help---
The port of NuttX to the Atmel SAME70 evaluation board from QMTECH.

config ARCH_BOARD_SAME70_XPLAINED
bool "Atmel SAME70 Xplained evaluation board"
depends on ARCH_CHIP_SAME70Q21
Expand Down Expand Up @@ -2493,6 +2502,7 @@ config ARCH_BOARD
default "sam4l-xplained" if ARCH_BOARD_SAM4L_XPLAINED
default "sam4s-xplained" if ARCH_BOARD_SAM4S_XPLAINED
default "sam4s-xplained-pro" if ARCH_BOARD_SAM4S_XPLAINED_PRO
default "same70-qmtech" if ARCH_BOARD_SAME70_QMTECH
default "same70-xplained" if ARCH_BOARD_SAME70_XPLAINED
default "samv71-xult" if ARCH_BOARD_SAMV71_XULT
default "shenzhou" if ARCH_BOARD_SHENZHOU
Expand Down Expand Up @@ -2851,6 +2861,9 @@ endif
if ARCH_BOARD_METRO_M4
source "boards/arm/samd5e5/metro-m4/Kconfig"
endif
if ARCH_BOARD_SAME70_QMTECH
source "boards/arm/samv7/same70-qmtech/Kconfig"
endif
if ARCH_BOARD_SAME70_XPLAINED
source "boards/arm/samv7/same70-xplained/Kconfig"
endif
Expand Down
3 changes: 3 additions & 0 deletions boards/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,9 @@ boards/arm/sam34/sam4s-xplained
boards/arm/sam34/sam4s-xplained-pro
The port of NuttX to the Atmel SAM4S-Xplained Pro development board.

boards/arm/samv7/same70-qmtech
The port of NuttX to the Atmel SAME70 evaluation board from QMTECH.

boards/arm/samv7/same70-xplained
The port of NuttX to the Atmel SAME70 Xplained evaluation board.

Expand Down
98 changes: 98 additions & 0 deletions boards/arm/samv7/same70-qmtech/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
#
# 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_QMTECH

config SAME70QMTECH_HSMCI0_AUTOMOUNT
bool "HSMCI0 automounter"
default n
depends on FS_AUTOMOUNTER && SAMV7_HSMCI0

if SAME70QMTECH_HSMCI0_AUTOMOUNT

config SAME70QMTECH_HSMCI0_AUTOMOUNT_FSTYPE
string "HSMCI0 file system type"
default "vfat"

config SAME70QMTECH_HSMCI0_AUTOMOUNT_BLKDEV
string "HSMCI0 block device"
default "/dev/mmcsd0"

config SAME70QMTECH_HSMCI0_AUTOMOUNT_MOUNTPOINT
string "HSMCI0 mount point"
default "/mnt/sdcard0"

config SAME70QMTECH_HSMCI0_AUTOMOUNT_DDELAY
int "HSMCI0 debounce delay (milliseconds)"
default 1000

config SAME70QMTECH_HSMCI0_AUTOMOUNT_UDELAY
int "HSMCI0 unmount retry delay (milliseconds)"
default 2000

endif # SAME70QMTECH_HSMCI0_AUTOMOUNT

config SAME70QMTECH_PROGMEM_OTA_PARTITION
bool
default n
select MTD
select MTD_BYTE_WRITE
select MTD_PARTITION
select MTD_PROGMEM
select MTD_PROGMEM_ERASESTATE

menuconfig SAME70QMTECH_FORMAT_MCUBOOT
bool "MCUboot-bootable format"
default n
select SAME70QMTECH_PROGMEM_OTA_PARTITION
---help---
The MCUboot support of loading the firmware images.

if SAME70QMTECH_FORMAT_MCUBOOT

config SAME70QMTECH_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 SAME70QMTECH_OTA_PRIMARY_SLOT_OFFSET
hex "MCUboot application image primary slot offset"
default "0x20000"

config SAME70QMTECH_OTA_PRIMARY_SLOT_DEVPATH
string "Application image primary slot device path"
default "/dev/ota0"

config SAME70QMTECH_OTA_SECONDARY_SLOT_OFFSET
hex "MCUboot application image secondary slot offset"
default "0x48000"

config SAME70QMTECH_OTA_SECONDARY_SLOT_DEVPATH
string "Application image secondary slot device path"
default "/dev/ota1"

config SAME70QMTECH_OTA_SLOT_SIZE
hex "MCUboot application image slot size (in bytes)"
default "0x28000"

config SAME70QMTECH_OTA_SCRATCH_OFFSET
hex "MCUboot scratch partition offset"
default "0x70000"

config SAME70QMTECH_OTA_SCRATCH_DEVPATH
string "Scratch partition device path"
default "/dev/otascratch"

config SAME70QMTECH_OTA_SCRATCH_SIZE
hex "MCUboot scratch partition size (in bytes)"
default "0x10000"

endif # SAME70QMTECH_FORMAT_MCUBOOT

endif # ARCH_BOARD_SAME70_QMTECH
Loading

0 comments on commit 4b2b7d1

Please sign in to comment.