Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hwmv2: Port STM32G0X SoCs & boards #68734

Merged
merged 9 commits into from
Feb 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions boards/boards_legacy/arm/google_twinkie_v2/Kconfig.defconfig

This file was deleted.

8 changes: 0 additions & 8 deletions boards/boards_legacy/arm/nucleo_g031k8/Kconfig.board

This file was deleted.

8 changes: 0 additions & 8 deletions boards/boards_legacy/arm/nucleo_g070rb/Kconfig.board

This file was deleted.

11 changes: 0 additions & 11 deletions boards/boards_legacy/arm/nucleo_g070rb/Kconfig.defconfig

This file was deleted.

9 changes: 0 additions & 9 deletions boards/boards_legacy/arm/nucleo_g071rb/Kconfig.board

This file was deleted.

12 changes: 0 additions & 12 deletions boards/boards_legacy/arm/nucleo_g071rb/Kconfig.defconfig

This file was deleted.

8 changes: 0 additions & 8 deletions boards/boards_legacy/arm/nucleo_g0b1re/Kconfig.board

This file was deleted.

11 changes: 0 additions & 11 deletions boards/boards_legacy/arm/nucleo_g0b1re/Kconfig.defconfig

This file was deleted.

8 changes: 0 additions & 8 deletions boards/boards_legacy/arm/stm32g0316_disco/Kconfig.board

This file was deleted.

11 changes: 0 additions & 11 deletions boards/boards_legacy/arm/stm32g0316_disco/Kconfig.defconfig

This file was deleted.

11 changes: 0 additions & 11 deletions boards/boards_legacy/arm/stm32g071b_disco/Kconfig.defconfig

This file was deleted.

11 changes: 0 additions & 11 deletions boards/boards_legacy/arm/stm32g081b_eval/Kconfig.defconfig

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
# SPDX-License-Identifier: Apache-2.0

config BOARD_GOOGLE_TWINKIE_V2
bool "Google Twinkie V2 Board"
depends on SOC_STM32G0B1XX
select SOC_STM32G0B1XX
5 changes: 5 additions & 0 deletions boards/google/google_twinkie_v2/board.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
board:
name: google_twinkie_v2
vendor: google
socs:
- name: stm32g0b1xx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
#
# SPDX-License-Identifier: Apache-2.0

CONFIG_SOC_SERIES_STM32G0X=y
CONFIG_SOC_STM32G0B1XX=y

# GPIO Controller
CONFIG_GPIO=y

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@

if BOARD_NUCLEO_G031K8

config BOARD
default "nucleo_g031k8"

config SPI_STM32_INTERRUPT
default y
depends on SPI
Expand Down
5 changes: 5 additions & 0 deletions boards/st/nucleo_g031k8/Kconfig.nucleo_g031k8
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright (c) 2022 Joylab AG <[email protected]>
# SPDX-License-Identifier: Apache-2.0

config BOARD_NUCLEO_G031K8
select SOC_STM32G031XX
5 changes: 5 additions & 0 deletions boards/st/nucleo_g031k8/board.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
board:
name: nucleo_g031k8
vendor: st
socs:
- name: stm32g031xx
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

# Zephyr Kernel Configuration
CONFIG_SOC_SERIES_STM32G0X=y

# Platform Configuration
CONFIG_SOC_STM32G031XX=y

# Kernel Options due to Low Memory (8k)
CONFIG_MAIN_STACK_SIZE=640
CONFIG_IDLE_STACK_SIZE=200
Expand Down
5 changes: 5 additions & 0 deletions boards/st/nucleo_g070rb/Kconfig.nucleo_g070rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright (c) 2023 Marin Jurjević <[email protected]>
# SPDX-License-Identifier: Apache-2.0

config BOARD_NUCLEO_G070RB
select SOC_STM32G070XX
5 changes: 5 additions & 0 deletions boards/st/nucleo_g070rb/board.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
board:
name: nucleo_g070rb
vendor: st
socs:
- name: stm32g070xx
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# Zephyr Kernel Configuration
CONFIG_SOC_SERIES_STM32G0X=y
CONFIG_SOC_STM32G070XX=y

# Enable MPU
CONFIG_ARM_MPU=y

Expand Down
5 changes: 5 additions & 0 deletions boards/st/nucleo_g071rb/Kconfig.nucleo_g071rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright (c) 2019 STMicroelectronics
# SPDX-License-Identifier: Apache-2.0

config BOARD_NUCLEO_G071RB
select SOC_STM32G071XX
5 changes: 5 additions & 0 deletions boards/st/nucleo_g071rb/board.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
board:
name: nucleo_g071rb
vendor: st
socs:
- name: stm32g071xx
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# Zephyr Kernel Configuration
CONFIG_SOC_SERIES_STM32G0X=y
CONFIG_SOC_STM32G071XX=y

# Enable MPU
CONFIG_ARM_MPU=y

Expand Down
5 changes: 5 additions & 0 deletions boards/st/nucleo_g0b1re/Kconfig.nucleo_g0b1re
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright (c) 2019 Thomas Stranger
# SPDX-License-Identifier: Apache-2.0

config BOARD_NUCLEO_G0B1RE
select SOC_STM32G0B1XX
5 changes: 5 additions & 0 deletions boards/st/nucleo_g0b1re/board.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
board:
name: nucleo_g0b1re
vendor: st
socs:
- name: stm32g0b1xx
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# Zephyr Kernel Configuration
CONFIG_SOC_SERIES_STM32G0X=y
CONFIG_SOC_STM32G0B1XX=y

# Enable MPU
CONFIG_ARM_MPU=y

Expand Down
5 changes: 5 additions & 0 deletions boards/st/stm32g0316_disco/Kconfig.stm32g0316_disco
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright (c) 2019 SEAL AG
# SPDX-License-Identifier: Apache-2.0

config BOARD_STM32G0316_DISCO
select SOC_STM32G031XX
5 changes: 5 additions & 0 deletions boards/st/stm32g0316_disco/board.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
board:
name: stm32g0316_disco
vendor: st
socs:
- name: stm32g031xx
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# Zephyr Kernel Configuration
CONFIG_SOC_SERIES_STM32G0X=y
CONFIG_SOC_STM32G031XX=y

# Kernel Options due to Low Memory (8k)
CONFIG_MAIN_STACK_SIZE=640
CONFIG_IDLE_STACK_SIZE=200
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# STM32G071B Discovery board configuration

# Copyright 2021 The Chromium OS Authors
# SPDX-License-Identifier: Apache-2.0

config BOARD_STM32G071B_DISCO
bool "STM32G071B Discovery Board"
depends on SOC_STM32G071XX
select SOC_STM32G071XX
5 changes: 5 additions & 0 deletions boards/st/stm32g071b_disco/board.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
board:
name: stm32g071b_disco
vendor: st
socs:
- name: stm32g071xx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
#
# SPDX-License-Identifier: Apache-2.0

CONFIG_SOC_SERIES_STM32G0X=y
CONFIG_SOC_STM32G071XX=y

# Serial Drivers
CONFIG_SERIAL=y
CONFIG_UART_INTERRUPT_DRIVEN=y
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# STM32G081B Evaluation board configuration

# Copyright 2021 The Chromium OS Authors
# SPDX-License-Identifier: Apache-2.0

config BOARD_STM32G081B_EVAL
bool "STM32G081B Evaluation Board"
depends on SOC_STM32G081XX
select SOC_STM32G081XX
5 changes: 5 additions & 0 deletions boards/st/stm32g081b_eval/board.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
board:
name: stm32g081b_eval
vendor: st
socs:
- name: stm32g081xx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
#
# SPDX-License-Identifier: Apache-2.0

CONFIG_SOC_SERIES_STM32G0X=y
CONFIG_SOC_STM32G081XX=y

# Serial Drivers
CONFIG_SERIAL=y
CONFIG_UART_INTERRUPT_DRIVEN=y
Expand Down
48 changes: 0 additions & 48 deletions soc/soc_legacy/arm/st_stm32/stm32g0/Kconfig.soc

This file was deleted.

14 changes: 14 additions & 0 deletions soc/st/stm32/soc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,20 @@ family:
- name: stm32f765xx
- name: stm32f767xx
- name: stm32f769xx
- name: stm32g0x
socs:
- name: stm32g030xx
- name: stm32g031xx
- name: stm32g041xx
- name: stm32g050xx
- name: stm32g051xx
- name: stm32g061xx
- name: stm32g070xx
- name: stm32g071xx
- name: stm32g081xx
- name: stm32g0b0xx
- name: stm32g0b1xx
- name: stm32g0c1xx
- name: stm32l1x
socs:
- name: stm32l151xb
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ zephyr_sources_ifdef(CONFIG_PM
power.c
)

zephyr_include_directories(.)

set(SOC_LINKER_SCRIPT ${ZEPHYR_BASE}/include/zephyr/arch/arm/cortex_m/scripts/linker.ld CACHE INTERNAL "")
Loading
Loading