boards: sam4e_xpro: Convert to HWMv2
Port the board to HWMv2. Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
This commit is contained in:
committed by
Carles Cufi
parent
3b84b9910a
commit
35b5d33ef0
10
boards/atmel/index.rst
Normal file
10
boards/atmel/index.rst
Normal file
@@ -0,0 +1,10 @@
|
||||
.. _boards-atmel:
|
||||
|
||||
Atmel Corporation
|
||||
#################
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
:glob:
|
||||
|
||||
**/*
|
||||
9
boards/atmel/sam/sam4e_xpro/Kconfig.defconfig
Normal file
9
boards/atmel/sam/sam4e_xpro/Kconfig.defconfig
Normal file
@@ -0,0 +1,9 @@
|
||||
# Copyright (c) 2024 Gerson Fernando Budke <nandojve@gmail.com>
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if NETWORKING
|
||||
|
||||
config NET_L2_ETHERNET
|
||||
default y
|
||||
|
||||
endif # NETWORKING
|
||||
5
boards/atmel/sam/sam4e_xpro/Kconfig.sam4e_xpro
Normal file
5
boards/atmel/sam/sam4e_xpro/Kconfig.sam4e_xpro
Normal file
@@ -0,0 +1,5 @@
|
||||
# Copyright (c) 2019-2024 Gerson Fernando Budke
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config BOARD_SAM4E_XPRO
|
||||
select SOC_SAM4E16E
|
||||
5
boards/atmel/sam/sam4e_xpro/board.yml
Normal file
5
boards/atmel/sam/sam4e_xpro/board.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
board:
|
||||
name: sam4e_xpro
|
||||
vendor: atmel
|
||||
socs:
|
||||
- name: sam4e16e
|
||||
|
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 34 KiB |
@@ -44,25 +44,35 @@ features:
|
||||
+-----------+------------+-------------------------------------+
|
||||
| SYSTICK | on-chip | systick |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| GPIO | on-chip | gpio |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| AFEC | on-chip | adc |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| COUNTER | on-chip | counter |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| ETHERNET | on-chip | ethernet |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| HWINFO | on-chip | hwinfo |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| HSMCI | on-chip | sdhc |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| I2C | on-chip | i2c |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| PWM | on-chip | pwm |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| SPI | on-chip | spi |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| UART | on-chip | serial port |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| USART | on-chip | serial port |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| I2C | on-chip | i2c |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| SPI | on-chip | spi |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| ETHERNET | on-chip | ethernet |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| WATCHDOG | on-chip | watchdog |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| GPIO | on-chip | gpio |
|
||||
+-----------+------------+-------------------------------------+
|
||||
|
||||
Other hardware features are not currently supported by Zephyr.
|
||||
|
||||
The default configuration can be found in the Kconfig
|
||||
:zephyr_file:`boards/arm/sam4e_xpro/sam4e_xpro_defconfig`.
|
||||
:zephyr_file:`boards/atmel/sam/sam4e_xpro/sam4e_xpro_defconfig`.
|
||||
|
||||
Connections and IOs
|
||||
===================
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2022-2023, Gerson Fernando Budke <nandojve@gmail.com>
|
||||
* Copyright (c) 2022-2024, Gerson Fernando Budke <nandojve@gmail.com>
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
@@ -105,5 +105,4 @@
|
||||
<PA27C_HSMCI_MCDA3>;
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
@@ -6,11 +6,19 @@ toolchain:
|
||||
- zephyr
|
||||
- gnuarmemb
|
||||
- xtools
|
||||
flash: 1024
|
||||
ram: 128
|
||||
supported:
|
||||
- netif:eth
|
||||
- adc
|
||||
- counter
|
||||
- gpio
|
||||
- spi
|
||||
- hwinfo
|
||||
- i2c
|
||||
- netif:eth
|
||||
- pwm
|
||||
- sdhc
|
||||
- spi
|
||||
- uart
|
||||
- watchdog
|
||||
- xpro_gpio
|
||||
- xpro_i2c
|
||||
@@ -1,9 +1,5 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_SOC_SERIES_SAM4E=y
|
||||
CONFIG_SOC_PART_NUMBER_SAM4E16E=y
|
||||
CONFIG_SOC_ATMEL_SAM4E_EXT_MAINCK=y
|
||||
CONFIG_BOARD_SAM4E_XPRO=y
|
||||
CONFIG_BUILD_OUTPUT_HEX=y
|
||||
|
||||
CONFIG_ARM_MPU=y
|
||||
@@ -11,6 +7,5 @@ CONFIG_HW_STACK_PROTECTION=y
|
||||
CONFIG_WDT_DISABLE_AT_BOOT=y
|
||||
|
||||
CONFIG_CONSOLE=y
|
||||
CONFIG_GPIO=y
|
||||
CONFIG_SERIAL=y
|
||||
CONFIG_UART_CONSOLE=y
|
||||
@@ -1,8 +0,0 @@
|
||||
# Atmel SAM4E Xplained Pro Board selection
|
||||
|
||||
# Copyright (c) 2019 Gerson Fernando Budke
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config BOARD_SAM4E_XPRO
|
||||
bool "Atmel SAM4E Xplained Pro"
|
||||
depends on SOC_PART_NUMBER_SAM4E16E
|
||||
@@ -1,11 +0,0 @@
|
||||
# Atmel SAM4E Xplained Pro Board configuration
|
||||
|
||||
# Copyright (c) 2019 Gerson Fernando Budke
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if BOARD_SAM4E_XPRO
|
||||
|
||||
config BOARD
|
||||
default "sam4e_xpro"
|
||||
|
||||
endif # BOARD_SAM4E_XPRO
|
||||
Reference in New Issue
Block a user