Browse Source

hwmv2: port nxp_ls1046ardb board to V2

Port NXP ls1046ardb board to hardware model v2.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
pull/69687/head
Jiafei Pan 1 year ago committed by Carles Cufi
parent
commit
bf7899c645
  1. 8
      boards/boards_legacy/arm64/nxp_ls1046ardb/Kconfig.board
  2. 8
      boards/boards_legacy/arm64/nxp_ls1046ardb/Kconfig.defconfig
  3. 33
      boards/boards_legacy/arm64/nxp_ls1046ardb/nxp_ls1046ardb_smp_2cores_defconfig
  4. 33
      boards/boards_legacy/arm64/nxp_ls1046ardb/nxp_ls1046ardb_smp_4cores_defconfig
  5. 0
      boards/nxp/ls1046ardb/CMakeLists.txt
  6. 8
      boards/nxp/ls1046ardb/Kconfig.ls1046ardb
  7. 0
      boards/nxp/ls1046ardb/board.cmake
  8. 9
      boards/nxp/ls1046ardb/board.yml
  9. 12
      boards/nxp/ls1046ardb/doc/index.rst
  10. 0
      boards/nxp/ls1046ardb/ls1046ardb_ls1046a.dts
  11. 2
      boards/nxp/ls1046ardb/ls1046ardb_ls1046a.yaml
  12. 4
      boards/nxp/ls1046ardb/ls1046ardb_ls1046a_defconfig
  13. 0
      boards/nxp/ls1046ardb/ls1046ardb_ls1046a_smp.dts
  14. 2
      boards/nxp/ls1046ardb/ls1046ardb_ls1046a_smp.yaml
  15. 0
      boards/nxp/ls1046ardb/ls1046ardb_ls1046a_smp_4cores.dts
  16. 2
      boards/nxp/ls1046ardb/ls1046ardb_ls1046a_smp_4cores.yaml
  17. 4
      boards/nxp/ls1046ardb/ls1046ardb_ls1046a_smp_4cores_defconfig
  18. 14
      boards/nxp/ls1046ardb/ls1046ardb_ls1046a_smp_defconfig

8
boards/boards_legacy/arm64/nxp_ls1046ardb/Kconfig.board

@ -1,8 +0,0 @@ @@ -1,8 +0,0 @@
#
# Copyright 2021 NXP
# SPDX-License-Identifier: Apache-2.0
#
config BOARD_NXP_LS1046ARDB
bool "NXP Layerscape ls1046ardb"
depends on SOC_SERIES_LS1046A

8
boards/boards_legacy/arm64/nxp_ls1046ardb/Kconfig.defconfig

@ -1,8 +0,0 @@ @@ -1,8 +0,0 @@
#
# Copyright 2021 NXP
# SPDX-License-Identifier: Apache-2.0
#
config BOARD
default "nxp_ls1046ardb"
depends on BOARD_NXP_LS1046ARDB

33
boards/boards_legacy/arm64/nxp_ls1046ardb/nxp_ls1046ardb_smp_2cores_defconfig

@ -1,33 +0,0 @@ @@ -1,33 +0,0 @@
# SPDX-License-Identifier: Apache-2.0
# Platform Configuration
CONFIG_SOC_SERIES_LS1046A=y
CONFIG_SOC_LS1046A=y
CONFIG_BOARD_NXP_LS1046ARDB=y
CONFIG_ARM64_VA_BITS_40=y
CONFIG_ARM64_PA_BITS_40=y
# 25 MHz system clock
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=25000000
# Zephyr Kernel Configuration
CONFIG_XIP=n
CONFIG_AARCH64_IMAGE_HEADER=y
CONFIG_MAX_THREAD_BYTES=5
CONFIG_MAX_XLAT_TABLES=10
# SMP support
CONFIG_SMP=y
CONFIG_MP_MAX_NUM_CPUS=2
CONFIG_CACHE_MANAGEMENT=y
CONFIG_ARMV8_A_NS=y
# PSCI is supported
CONFIG_PM_CPU_OPS=y
# Serial Drivers
CONFIG_SERIAL=y
CONFIG_UART_INTERRUPT_DRIVEN=y
# Enable Console
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y

33
boards/boards_legacy/arm64/nxp_ls1046ardb/nxp_ls1046ardb_smp_4cores_defconfig

@ -1,33 +0,0 @@ @@ -1,33 +0,0 @@
# SPDX-License-Identifier: Apache-2.0
# Platform Configuration
CONFIG_SOC_SERIES_LS1046A=y
CONFIG_SOC_LS1046A=y
CONFIG_BOARD_NXP_LS1046ARDB=y
CONFIG_ARM64_VA_BITS_40=y
CONFIG_ARM64_PA_BITS_40=y
# 25 MHz system clock
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=25000000
# Zephyr Kernel Configuration
CONFIG_XIP=n
CONFIG_AARCH64_IMAGE_HEADER=y
CONFIG_MAX_THREAD_BYTES=5
CONFIG_MAX_XLAT_TABLES=10
# SMP support
CONFIG_SMP=y
CONFIG_MP_MAX_NUM_CPUS=4
CONFIG_CACHE_MANAGEMENT=y
CONFIG_ARMV8_A_NS=y
# PSCI is supported
CONFIG_PM_CPU_OPS=y
# Serial Drivers
CONFIG_SERIAL=y
CONFIG_UART_INTERRUPT_DRIVEN=y
# Enable Console
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y

0
boards/boards_legacy/arm64/nxp_ls1046ardb/CMakeLists.txt → boards/nxp/ls1046ardb/CMakeLists.txt

8
boards/nxp/ls1046ardb/Kconfig.ls1046ardb

@ -0,0 +1,8 @@ @@ -0,0 +1,8 @@
#
# Copyright 2021,2024 NXP
# SPDX-License-Identifier: Apache-2.0
#
config BOARD_LS1046ARDB
select SOC_LS1046A
select SOC_PART_NUMBER_LS1046A

0
boards/boards_legacy/arm64/nxp_ls1046ardb/board.cmake → boards/nxp/ls1046ardb/board.cmake

9
boards/nxp/ls1046ardb/board.yml

@ -0,0 +1,9 @@ @@ -0,0 +1,9 @@
board:
name: ls1046ardb
vendor: nxp
socs:
- name: ls1046a
variants:
- name: smp
variants:
- name: 4cores

12
boards/boards_legacy/arm64/nxp_ls1046ardb/doc/index.rst → boards/nxp/ls1046ardb/doc/index.rst

@ -67,15 +67,15 @@ Other hardware features have not been enabled yet for this board. @@ -67,15 +67,15 @@ Other hardware features have not been enabled yet for this board.
The default configuration can be found in the defconfig file for NON-SMP:
``boards/arm64/nxp_ls1046ardb/nxp_ls1046ardb_defconfig``
:zephyr_file:`boards/nxp/ls1046ardb/ls1046ardb_ls1046a_defconfig`
Or for SMP running on all four CPU Cores:
``boards/arm64/nxp_ls1046ardb/nxp_ls1046ardb_smp_4cores_defconfig``
:zephyr_file:`boards/nxp/ls1046ardb/ls1046ardb_ls1046a_smp_4cores_defconfig`
Or for SMP running on 2 CPU Cores (Core2 and Core3):
``boards/arm64/nxp_ls1046ardb/nxp_ls1046ardb_smp_2cores_defconfig``
:zephyr_file:`boards/nxp/ls1046ardb/ls1046ardb_ls1046a_smp_defconfig`
There are two serial port on the board: uart1 and uart2, Zephyr is using
uart2 as serial console.
@ -91,7 +91,7 @@ kernel tests on LS1046A RDB board. For example, with the :zephyr:code-sample:`sy @@ -91,7 +91,7 @@ kernel tests on LS1046A RDB board. For example, with the :zephyr:code-sample:`sy
.. zephyr-app-commands::
:zephyr-app: samples/synchronization
:host-os: unix
:board: nxp_ls1046ardb
:board: ls1046ardb
:goals: build
This will build an image with the synchronization sample app.
@ -123,7 +123,7 @@ It will display the following console output: @@ -123,7 +123,7 @@ It will display the following console output:
.. zephyr-app-commands::
:zephyr-app: samples/synchronization
:host-os: unix
:board: nxp_ls1046ardb_smp_4cores
:board: ls1046ardb/ls1046a/smp/4cores
:goals: build
This will build an image with the synchronization sample app.
@ -151,7 +151,7 @@ It will display the following console output: @@ -151,7 +151,7 @@ It will display the following console output:
.. zephyr-app-commands::
:zephyr-app: samples/synchronization
:host-os: unix
:board: nxp_ls1046ardb_smp_2cores
:board: ls1046ardb/ls1046a/smp
:goals: build
This will build an image with the synchronization sample app.

0
boards/boards_legacy/arm64/nxp_ls1046ardb/nxp_ls1046ardb.dts → boards/nxp/ls1046ardb/ls1046ardb_ls1046a.dts

2
boards/boards_legacy/arm64/nxp_ls1046ardb/nxp_ls1046ardb.yaml → boards/nxp/ls1046ardb/ls1046ardb_ls1046a.yaml

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
identifier: nxp_ls1046ardb
identifier: ls1046ardb
name: NXP LS1046ARDB on single CPU Core (NON-SMP)
type: mcu
arch: arm64

4
boards/boards_legacy/arm64/nxp_ls1046ardb/nxp_ls1046ardb_defconfig → boards/nxp/ls1046ardb/ls1046ardb_ls1046a_defconfig

@ -1,9 +1,7 @@ @@ -1,9 +1,7 @@
# Copyright 2024 NXP
# SPDX-License-Identifier: Apache-2.0
# Platform Configuration
CONFIG_SOC_SERIES_LS1046A=y
CONFIG_SOC_LS1046A=y
CONFIG_BOARD_NXP_LS1046ARDB=y
CONFIG_ARM64_VA_BITS_40=y
CONFIG_ARM64_PA_BITS_40=y
# 25 MHz system clock

0
boards/boards_legacy/arm64/nxp_ls1046ardb/nxp_ls1046ardb_smp_2cores.dts → boards/nxp/ls1046ardb/ls1046ardb_ls1046a_smp.dts

2
boards/boards_legacy/arm64/nxp_ls1046ardb/nxp_ls1046ardb_smp_2cores.yaml → boards/nxp/ls1046ardb/ls1046ardb_ls1046a_smp.yaml

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
identifier: nxp_ls1046ardb_smp_2cores
identifier: ls1046ardb/ls1046a/smp
name: NXP LS1046ARDB SMP on CPU Core2 and Core3
type: mcu
arch: arm64

0
boards/boards_legacy/arm64/nxp_ls1046ardb/nxp_ls1046ardb_smp_4cores.dts → boards/nxp/ls1046ardb/ls1046ardb_ls1046a_smp_4cores.dts

2
boards/boards_legacy/arm64/nxp_ls1046ardb/nxp_ls1046ardb_smp_4cores.yaml → boards/nxp/ls1046ardb/ls1046ardb_ls1046a_smp_4cores.yaml

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
identifier: nxp_ls1046ardb_smp_4cores
identifier: ls1046ardb/ls1046a/smp/4cores
name: NXP LS1046ARDB SMP on four CPU Cores
type: mcu
arch: arm64

4
boards/nxp/ls1046ardb/ls1046ardb_ls1046a_smp_4cores_defconfig

@ -0,0 +1,4 @@ @@ -0,0 +1,4 @@
# SPDX-License-Identifier: Apache-2.0
# SMP support
CONFIG_MP_MAX_NUM_CPUS=4

14
boards/nxp/ls1046ardb/ls1046ardb_ls1046a_smp_defconfig

@ -0,0 +1,14 @@ @@ -0,0 +1,14 @@
# SPDX-License-Identifier: Apache-2.0
# Zephyr Kernel Configuration
CONFIG_MAX_THREAD_BYTES=5
CONFIG_MAX_XLAT_TABLES=10
# SMP support
CONFIG_SMP=y
CONFIG_MP_MAX_NUM_CPUS=2
CONFIG_CACHE_MANAGEMENT=y
CONFIG_ARMV8_A_NS=y
# PSCI is supported
CONFIG_PM_CPU_OPS=y
Loading…
Cancel
Save