hwmv2: port NXP SoC LS1046A to V2

Port NXP SoC LS1046A to hardware model v2.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
This commit is contained in:
Jiafei Pan
2024-02-24 17:22:11 +08:00
committed by Carles Cufi
parent bf7899c645
commit 2b520f83cb
15 changed files with 74 additions and 73 deletions

View File

@@ -0,0 +1,11 @@
#
# Copyright 2024 NXP
#
# SPDX-License-Identifier: Apache-2.0
#
#
if SOC_FAMILY_NXP_LAYERSCAPE
rsource "*/Kconfig"
endif # SOC_FAMILY_NXP_LAYERSCAPE

View File

@@ -0,0 +1,11 @@
#
# Copyright 2024 NXP
#
# SPDX-License-Identifier: Apache-2.0
#
if SOC_FAMILY_NXP_LAYERSCAPE
rsource "*/Kconfig.defconfig"
endif # SOC_FAMILY_NXP_LAYERSCAPE

View File

@@ -0,0 +1,13 @@
#
# Copyright 2024 NXP
#
# SPDX-License-Identifier: Apache-2.0
#
config SOC_FAMILY_NXP_LAYERSCAPE
bool
config SOC_FAMILY
default "nxp_layerscape" if SOC_FAMILY_NXP_LAYERSCAPE
rsource "*/Kconfig.soc"

View File

@@ -1,17 +1,10 @@
#
# Copyright 2021 NXP
# Copyright 2021,2024 NXP
#
# SPDX-License-Identifier: Apache-2.0
#
choice
prompt "NXP Layerscpae LS1046A SoC"
depends on SOC_SERIES_LS1046A
config SOC_LS1046A
bool "NXP ls1046a"
select ARM64
select CPU_CORTEX_A72
select ARM_ARCH_TIMER if SYS_CLOCK_EXISTS
endchoice

View File

@@ -1,14 +1,11 @@
#
# Copyright 2021 NXP
# Copyright 2021,2024 NXP
#
# SPDX-License-Identifier: Apache-2.0
#
if SOC_LS1046A
config SOC
default "ls1046a"
config NUM_IRQS
int
default 240

View File

@@ -0,0 +1,31 @@
#
# Copyright 2024 NXP
#
# SPDX-License-Identifier: Apache-2.0
#
config SOC_SERIES_LS1046A
bool
select SOC_FAMILY_NXP_LAYERSCAPE
config SOC_LS1046A
bool
select SOC_SERIES_LS1046A
help
NXP Layerscape ls1046a
config SOC
default "ls1046a" if SOC_LS1046A
config SOC_SERIES
default "ls1046a" if SOC_SERIES_LS1046A
config SOC_PART_NUMBER_LS1046A
bool
config SOC_PART_NUMBER_LS1026A
bool
config SOC_PART_NUMBER
default "LS1046A" if SOC_PART_NUMBER_LS1046A
default "LS1026A" if SOC_PART_NUMBER_LS1026A

View File

@@ -0,0 +1,6 @@
family:
- name: nxp_layerscape
series:
- name: ls1046a
socs:
- name: ls1046a

View File

@@ -1,21 +0,0 @@
#
# Copyright 2021 NXP
#
# SPDX-License-Identifier: Apache-2.0
#
config SOC_FAMILY_LS
bool
if SOC_FAMILY_LS
config SOC_FAMILY
string
default "nxp_layerscape"
source "soc/soc_legacy/arm64/nxp_layerscape/*/Kconfig.soc"
config SOC_PART_NUMBER
default "LS1046A" if SOC_SERIES_LS1046A
endif # SOC_FAMILY_LS

View File

@@ -1,7 +0,0 @@
#
# Copyright 2021 NXP
#
# SPDX-License-Identifier: Apache-2.0
#
source "soc/soc_legacy/arm64/nxp_layerscape/*/Kconfig.defconfig.series"

View File

@@ -1,7 +0,0 @@
#
# Copyright 2021 NXP
#
# SPDX-License-Identifier: Apache-2.0
#
source "soc/soc_legacy/arm64/nxp_layerscape/*/Kconfig.series"

View File

@@ -1,14 +0,0 @@
#
# Copyright 2021 NXP
#
# SPDX-License-Identifier: Apache-2.0
#
if SOC_SERIES_LS1046A
config SOC_SERIES
default "ls1046a"
source "soc/soc_legacy/arm64/nxp_layerscape/ls1046a/Kconfig.defconfig.ls1046a"
endif # SOC_SERIES_LS1046A

View File

@@ -1,12 +0,0 @@
#
# Copyright 2021 NXP
#
# SPDX-License-Identifier: Apache-2.0
#
config SOC_SERIES_LS1046A
bool "NXP LS1046A Series"
select ARM64
select SOC_FAMILY_LS
help
Enable support for NXP ls1046a Series.