Skip to content

Commit 92a9993

Browse files
sylvioalvesnordicjm
authored andcommitted
boards: xtensa: odroid_go: Convert to v2
Converts the board to hwmv2 Signed-off-by: Sylvio Alves <[email protected]>
1 parent f5bedd6 commit 92a9993

16 files changed

+152
-22
lines changed

boards/hardkernel/index.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.. _boards-hardkernel:
2+
3+
HardKernel
4+
##########
5+
6+
.. toctree::
7+
:maxdepth: 1
8+
:glob:
9+
10+
**/*

boards/hardkernel/odroid_go/Kconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config BOARD_ODROID_GO
5+
select SOC_ESP32_PROCPU if BOARD_ODROID_GO_ESP32_PROCPU
6+
select SOC_ESP32_APPCPU if BOARD_ODROID_GO_ESP32_APPCPU

boards/boards_legacy/xtensa/odroid_go/Kconfig.defconfig renamed to boards/hardkernel/odroid_go/Kconfig.defconfig

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,21 @@
33
# Copyright (c) 2019 Yannis Damigos
44
# SPDX-License-Identifier: Apache-2.0
55

6-
config BOARD
7-
default "odroid_go"
8-
depends on BOARD_ODROID_GO
6+
if BOARD_ODROID_GO_ESP32_PROCPU
97

108
config DISK_DRIVER_SDMMC
119
default y if DISK_ACCESS
1210

1311
config SPI
1412
default y if DISK_DRIVER_SDMMC
1513

16-
config ENTROPY_GENERATOR
14+
config ESP_SPIRAM
1715
default y
1816

17+
choice SPIRAM_TYPE
18+
default SPIRAM_TYPE_ESPPSRAM64
19+
endchoice
20+
1921
config HEAP_MEM_POOL_ADD_SIZE_BOARD
2022
int
2123
default 65535 if WIFI && BT
@@ -26,3 +28,12 @@ config HEAP_MEM_POOL_ADD_SIZE_BOARD
2628
choice BT_HCI_BUS_TYPE
2729
default BT_ESP32 if BT
2830
endchoice
31+
32+
endif # BOARD_ODROID_GO_ESP32_PROCPU
33+
34+
if BOARD_ODROID_GO_ESP32_APPCPU
35+
36+
config HEAP_MEM_POOL_ADD_SIZE_BOARD
37+
default 4096
38+
39+
endif # BOARD_ODROID_GO_ESP32_APPCPU

boards/boards_legacy/xtensa/odroid_go/Kconfig.board renamed to boards/hardkernel/odroid_go/Kconfig.odroid_go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,4 @@
44
# SPDX-License-Identifier: Apache-2.0
55

66
config BOARD_ODROID_GO
7-
bool "ODROID-GO Game Kit"
8-
depends on SOC_SERIES_ESP32
9-
10-
choice SOC_PART_NUMBER
11-
default SOC_ESP32_WROVER_E_N16R2
12-
endchoice
7+
select SOC_ESP32_WROVER_E_N16R2

boards/hardkernel/odroid_go/board.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
board:
2+
name: odroid_go
3+
vendor: hardkernel
4+
socs:
5+
- name: esp32

boards/boards_legacy/xtensa/odroid_go/doc/index.rst renamed to boards/hardkernel/odroid_go/doc/index.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@ Zephyr build. Output is structured by the domain subdirectories:
150150
151151
build/
152152
├── hello_world
153-
   └── zephyr
154-
   ├── zephyr.elf
155-
   └── zephyr.bin
153+
└── zephyr
154+
├── zephyr.elf
155+
└── zephyr.bin
156156
├── mcuboot
157157
│ └── zephyr
158158
│ ├── zephyr.elf
@@ -184,7 +184,7 @@ Build and flash applications as usual (see :ref:`build_an_application` and
184184

185185
.. zephyr-app-commands::
186186
:zephyr-app: samples/hello_world
187-
:board: odroid_go
187+
:board: odroid_go/esp32/procpu
188188
:goals: build
189189

190190
The usual ``flash`` target will work with the ``odroid_go`` board
@@ -193,7 +193,7 @@ application.
193193

194194
.. zephyr-app-commands::
195195
:zephyr-app: samples/hello_world
196-
:board: odroid_go
196+
:board: odroid_go/esp32/procpu
197197
:goals: flash
198198

199199
Open the serial monitor using the following command:
@@ -225,15 +225,15 @@ Here is an example for building the :ref:`hello_world` application.
225225

226226
.. zephyr-app-commands::
227227
:zephyr-app: samples/hello_world
228-
:board: odroid_go
228+
:board: odroid_go/esp32/procpu
229229
:goals: build flash
230230
:gen-args: -DOPENOCD=<path/to/bin/openocd> -DOPENOCD_DEFAULT_PATH=<path/to/openocd/share/openocd/scripts>
231231

232232
You can debug an application in the usual way. Here is an example for the :ref:`hello_world` application.
233233

234234
.. zephyr-app-commands::
235235
:zephyr-app: samples/hello_world
236-
:board: odroid_go
236+
:board: odroid_go/esp32/procpu
237237
:goals: debug
238238

239239
References

0 commit comments

Comments
 (0)