boards: sam4l_ek: Convert to HWMv2

Port the board to HWMv2.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
This commit is contained in:
Gerson Fernando Budke
2024-02-09 22:40:04 +01:00
committed by Carles Cufi
parent 35b5d33ef0
commit 31273692c0
11 changed files with 29 additions and 35 deletions

View File

@@ -0,0 +1,5 @@
# Copyright (c) 2020-2024 Gerson Fernando Budke <nandojve@gmail.com>
# SPDX-License-Identifier: Apache-2.0
config BOARD_SAM4L_EK
select SOC_SAM4LC4C

View File

@@ -0,0 +1,5 @@
board:
name: sam4l_ek
vendor: atmel
socs:
- name: sam4lc4c

View File

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 45 KiB

View File

@@ -61,29 +61,33 @@ The sam4l_ek board configuration supports the following hardware features:
+-----------+------------+-------------------------------------+
| Interface | Controller | Driver/Component |
+===========+============+=====================================+
| GPIO | on-chip | gpio |
+-----------+------------+-------------------------------------+
| HWINFO | on-chip | Unique 120 bit serial number |
+-----------+------------+-------------------------------------+
| MPU | on-chip | arch/arm |
+-----------+------------+-------------------------------------+
| NVIC | on-chip | arch/arm |
+-----------+------------+-------------------------------------+
| SPI | on-chip | spi |
+-----------+------------+-------------------------------------+
| SYSTICK | on-chip | systick |
+-----------+------------+-------------------------------------+
| TRNG | on-chip | 32-bit True Random Number Generator |
| COUNTER | on-chip | counter |
+-----------+------------+-------------------------------------+
| GPIO | on-chip | gpio |
+-----------+------------+-------------------------------------+
| HWINFO | on-chip | Unique 120 bit serial number |
+-----------+------------+-------------------------------------+
| SPI | on-chip | spi |
+-----------+------------+-------------------------------------+
| TRNG | on-chip | entropy |
+-----------+------------+-------------------------------------+
| TWIM | on-chip | i2c master port-interrupt |
+-----------+------------+-------------------------------------+
| USART | on-chip | serial port |
+-----------+------------+-------------------------------------+
| USB | on-chip | usb device |
+-----------+------------+-------------------------------------+
Other hardware features are not currently supported by Zephyr.
The default configuration can be found in the Kconfig
:zephyr_file:`boards/arm/sam4l_ek/sam4l_ek_defconfig`.
:zephyr_file:`boards/atmel/sam/sam4l_ek/sam4l_ek_defconfig`.
Connections and IOs
===================

View File

@@ -2,16 +2,20 @@ identifier: sam4l_ek
name: SAM4L-EK
type: mcu
arch: arm
flash: 256
ram: 32
toolchain:
- zephyr
- gnuarmemb
- xtools
flash: 256
ram: 32
supported:
- counter
- gpio
- entropy
- hwinfo
- i2c
- spi
- usart
- uart
- usb
- usb_device
vendor: atmel

View File

@@ -1,13 +1,8 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_SOC_SERIES_SAM4L=y
CONFIG_SOC_PART_NUMBER_SAM4LC4C=y
CONFIG_BOARD_SAM4L_EK=y
CONFIG_ARM_MPU=y
CONFIG_HW_STACK_PROTECTION=y
CONFIG_CONSOLE=y
CONFIG_GPIO=y
CONFIG_SERIAL=y
CONFIG_UART_CONSOLE=y

View File

@@ -1,8 +0,0 @@
# Atmel SAM4L-EK selection
# Copyright (c) 2020 Gerson Fernando Budke <nandojve@gmail.com>
# SPDX-License-Identifier: Apache-2.0
config BOARD_SAM4L_EK
bool "Atmel SAM4L-EK"
depends on SOC_PART_NUMBER_SAM4LC4C

View File

@@ -1,11 +0,0 @@
# Atmel SAM4L-EK Board configuration
# Copyright (c) 2020 Gerson Fernando Budke <nandojve@gmail.com>
# SPDX-License-Identifier: Apache-2.0
if BOARD_SAM4L_EK
config BOARD
default "sam4l_ek"
endif # BOARD_SAM4L_EK