Browse Source
Port the board to HWMv2. Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>pull/69687/head
16 changed files with 20 additions and 45 deletions
@ -1,7 +1,7 @@
@@ -1,7 +1,7 @@
|
||||
# Copyright (c) 2022 Benjamin Björnsson <benjamin.bjornsson@gmail.com>. |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
if(CONFIG_BOARD_ARDUINO_PORTENTA_H7_M7) |
||||
if(CONFIG_BOARD_ARDUINO_PORTENTA_H7_STM32H747XX_M7) |
||||
|
||||
zephyr_library() |
||||
zephyr_library_sources(board.c) |
@ -0,0 +1,8 @@
@@ -0,0 +1,8 @@
|
||||
# Arduino Portenta H7 board configuration |
||||
|
||||
# Copyright (c) 2022 Benjamin Björnsson <benjamin.bjornsson@gmail.com>. |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
config BOARD_ARDUINO_PORTENTA_H7 |
||||
select SOC_STM32H747XX_M7 if BOARD_ARDUINO_PORTENTA_H7_STM32H747XX_M7 |
||||
select SOC_STM32H747XX_M4 if BOARD_ARDUINO_PORTENTA_H7_STM32H747XX_M4 |
@ -1,4 +1,4 @@
@@ -1,4 +1,4 @@
|
||||
identifier: arduino_portenta_h7_m4 |
||||
identifier: arduino_portenta_h7/stm32h747xx/m4 |
||||
name: Arduino Portenta H7 (M4) |
||||
type: mcu |
||||
arch: arm |
@ -1,12 +1,6 @@
@@ -1,12 +1,6 @@
|
||||
# Copyright (c) 2022 Benjamin Björnsson <benjamin.bjornsson@gmail.com>. |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
CONFIG_SOC_SERIES_STM32H7X=y |
||||
CONFIG_SOC_STM32H747XX=y |
||||
|
||||
# Board config should be specified since there are 2 possible targets |
||||
CONFIG_BOARD_ARDUINO_PORTENTA_H7_M4=y |
||||
|
||||
# Enable GPIO |
||||
CONFIG_GPIO=y |
||||
|
@ -1,4 +1,4 @@
@@ -1,4 +1,4 @@
|
||||
identifier: arduino_portenta_h7_m7 |
||||
identifier: arduino_portenta_h7/stm32h747xx/m7 |
||||
name: Arduino Portenta H7 (M7) |
||||
type: mcu |
||||
arch: arm |
@ -1,12 +1,6 @@
@@ -1,12 +1,6 @@
|
||||
# Copyright (c) 2022 Benjamin Björnsson <benjamin.bjornsson@gmail.com>. |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
CONFIG_SOC_SERIES_STM32H7X=y |
||||
CONFIG_SOC_STM32H747XX=y |
||||
|
||||
# Board config should be specified since there are 2 possible targets |
||||
CONFIG_BOARD_ARDUINO_PORTENTA_H7_M7=y |
||||
|
||||
# Enable the internal SMPS regulator |
||||
CONFIG_POWER_SUPPLY_DIRECT_SMPS=y |
||||
|
@ -0,0 +1,5 @@
@@ -0,0 +1,5 @@
|
||||
board: |
||||
name: arduino_portenta_h7 |
||||
vendor: arduino |
||||
socs: |
||||
- name: stm32h747xx |
Before Width: | Height: | Size: 177 KiB After Width: | Height: | Size: 177 KiB |
@ -1,14 +0,0 @@
@@ -1,14 +0,0 @@
|
||||
# Arduino Portenta H7 board configuration |
||||
|
||||
# Copyright (c) 2022 Benjamin Björnsson <benjamin.bjornsson@gmail.com>. |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
config BOARD_ARDUINO_PORTENTA_H7_M7 |
||||
bool "Arduino Portenta H7 Board" |
||||
depends on SOC_STM32H747XX |
||||
select CPU_CORTEX_M7 |
||||
|
||||
config BOARD_ARDUINO_PORTENTA_H7_M4 |
||||
bool "Arduino Portenta H7 Board" |
||||
depends on SOC_STM32H747XX |
||||
select CPU_CORTEX_M4 |
@ -1,12 +0,0 @@
@@ -1,12 +0,0 @@
|
||||
# Arduino Portenta H7 board configuration |
||||
|
||||
# Copyright (c) 2022 Benjamin Björnsson <benjamin.bjornsson@gmail.com>. |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
if BOARD_ARDUINO_PORTENTA_H7_M7 || BOARD_ARDUINO_PORTENTA_H7_M4 |
||||
|
||||
config BOARD |
||||
default "arduino_portenta_h7_m7" if BOARD_ARDUINO_PORTENTA_H7_M7 |
||||
default "arduino_portenta_h7_m4" if BOARD_ARDUINO_PORTENTA_H7_M4 |
||||
|
||||
endif # BOARD_ARDUINO_PORTENTA_H7_M7 || BOARD_ARDUINO_PORTENTA_H7_M4 |
Loading…
Reference in new issue