Skip to content

Commit 8fb1ede

Browse files
committed
boards: arm: efm32pg_stk3402a: Convert to v2
Converts the board to hwmv2 Signed-off-by: Jamie McCrae <[email protected]>
1 parent bb97210 commit 8fb1ede

16 files changed

+37
-48
lines changed

boards/boards_legacy/arm/efm32pg_stk3402a/Kconfig.board

Lines changed: 0 additions & 15 deletions
This file was deleted.

boards/boards_legacy/arm/efm32pg_stk3402a/Kconfig.defconfig

Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# EFM32PG STK3402A board
2+
3+
# Copyright (c) 2018, Christian Taedcke
4+
# Copyright (c) 2019 Lemonbeat GmbH
5+
# SPDX-License-Identifier: Apache-2.0
6+
7+
if BOARD_EFM32PG_STK3402A
8+
9+
config CMU_HFXO_FREQ
10+
default 40000000
11+
12+
config CMU_LFXO_FREQ
13+
default 32768
14+
15+
endif # BOARD_EFM32PG_STK3402A
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# EFM32PG STK3402A board
2+
3+
# Copyright (c) 2018, Christian Taedcke
4+
# Copyright (c) 2019 Lemonbeat GmbH
5+
# SPDX-License-Identifier: Apache-2.0
6+
7+
config BOARD_EFM32PG_STK3402A
8+
select SOC_PART_NUMBER_EFM32PG12B500F1024GL125 if BOARD_EFM32PG_STK3402A_EFM32PG12B500F1024GL125
9+
select SOC_PART_NUMBER_EFM32JG12B500F1024GL125 if BOARD_EFM32PG_STK3402A_EFM32JG12B500F1024GL125
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
board:
2+
name: efm32pg_stk3402a
3+
vendor: silabs
4+
socs:
5+
- name: efm32pg12b500f1024gl125
6+
- name: efm32jg12b500f1024gl125

boards/boards_legacy/arm/efm32pg_stk3402a/doc/index.rst renamed to boards/silabs/efm32pg_stk3402a/doc/index.rst

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,11 @@ The efm32pg_stk3402a board configuration supports the following hardware feature
6565
| TRNG | on-chip | true random number generator |
6666
+-----------+------------+-------------------------------------+
6767

68-
The default configuration can be found in the defconfig file:
69-
70-
``boards/arm/efm32pg_stk3402a/efm32pg_stk3402a_defconfig``
68+
The default configuration can be found in
69+
:zephyr_file:`boards/silabs/efm32pg_stk3402a/efm32pg_stk3402a_efm32pg12b500f1024gl125_defconfig`
7170

7271
The default configuration when building for this EFM32JG12B SoC can be found in
73-
another defconfig file:
74-
75-
``boards/arm/efm32pg_stk3402a/efm32pg_stk3402a_defconfig_jg``
72+
:zephyr_file:`boards/arm/efm32pg_stk3402a/efm32pg_stk3402a_efm32jg12b500f1024gl125_defconfig`
7673

7774
Other hardware features are currently not supported by the port.
7875

@@ -88,7 +85,7 @@ such as memory and peripherals are the same.
8885
Code that is built for the Jade Gecko also runs on an equivalent Pearl Gecko.
8986

9087
To build firmware for the Jade Gecko and run it on the EFM32 Pearl Gecko Starter
91-
Kit, use the board ``efm32pg_stk3402a_jg`` instead of ``efm32pg_stk3402a``.
88+
Kit, use the board ``efm32pg_stk3402a/efm32pg12b500f1024gl125`` instead of ``efm32pg_stk3402a/efm32jg12b500f1024gl125``.
9289

9390
Connections and IOs
9491
===================
@@ -165,7 +162,7 @@ Build the Zephyr kernel and application:
165162

166163
.. zephyr-app-commands::
167164
:zephyr-app: samples/hello_world
168-
:board: efm32pg_stk3402a
165+
:board: efm32pg_stk3402a/efm32pg12b500f1024gl125
169166
:goals: build
170167

171168
Connect the EFM32PG-STK3402A to your host computer using the USB port and you

0 commit comments

Comments
 (0)