-
Notifications
You must be signed in to change notification settings - Fork 7.2k
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
soc: nuvoton: npcx: refactor npcx soc hierarchy for future chip support #87446
Conversation
b7854a3
to
e18f0ba
Compare
soc/nuvoton/npcx/Kconfig.soc
Outdated
config SOC_FAMILY_VARIANT_NPCXN | ||
bool | ||
select SOC_FAMILY_NPCX | ||
|
||
config SOC_FAMILY_VARIANT_NPCKN | ||
bool | ||
select SOC_FAMILY_NPCX | ||
|
||
config SOC_FAMILY_VARIANT | ||
string | ||
default "npcxn" if SOC_FAMILY_VARIANT_NPCXN | ||
default "npckn" if SOC_FAMILY_VARIANT_NPCKN |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do not add Kconfigs which use existing identifiers like SOC_FAMILY
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@@ -1,11 +1,14 @@ | |||
# SPDX-License-Identifier: Apache-2.0 | |||
|
|||
zephyr_include_directories(.) | |||
set(SOC_FAMILY_VARIANT ${CONFIG_SOC_FAMILY_VARIANT}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this set isn't needed, use renamed variable directly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
This commit refactors the NPCX SoC hierarchy to improve maintainability and enable future support for upcoming chips. Key changes include: 1. Introduced a new `npcxn` subdirectory under `common/` to consolidate shared components across the npcxn series. 2. Renamed and reorganized register access files for improved consistency. 3. Updated relevant Kconfig files, header files, and CMakeLists for the new structure. Signed-off-by: Alvis Sun <yfsun@nuvoton.com>
This commit refactors the NPCX SoC hierarchy to improve maintainability and enable future support for upcoming chips.
Key changes include:
npcxn
subdirectory undercommon/
to consolidate shared components across the npcxn series.