-
Notifications
You must be signed in to change notification settings - Fork 2
Add support for HS4XD SoC #6
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
Add support for HS4XD SoC #6
Conversation
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.
Some minor issues.
I'll check how this implementation maps to current DSP support for EM development - probably we can combine dsp implementations.
boards/arc/hs4xd/hs4xd_defconfig
Outdated
CONFIG_SOC_ARC_HS4XD=y | ||
CONFIG_BOARD_HS4XD=y | ||
CONFIG_SYS_CLOCK_TICKS_PER_SEC=100 | ||
CONFIG_XIP=y |
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.
Any reason to have XIP enabled?
We don't have any XIP flash memory and we don't have XIP enabled for HSDK v1.
if SOC_ARC_HS4XD | ||
|
||
config SOC | ||
default "snps_arc_hs4xd" |
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.
snps_arc_hs4xd -> snps_arc_hsdk4xd
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.
SoC based on HS4x core. "DK" as I understand means "Development Kit". Is it correct name SoC with "DK" abbreviation?
boards/arc/hs4xd/Kconfig.defconfig
Outdated
if BOARD_HS4XD | ||
|
||
config BOARD | ||
default "hs4xd" |
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.
hs4xd -> hsdk4xd
boards/arc/hs4xd/Kconfig.board
Outdated
@@ -0,0 +1,10 @@ | |||
# DesignWare ARC HS4XD Development Kit board configuration |
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.
HS4XD -> HSDK4xD
boards/arc/hs4xd/Kconfig.board
Outdated
# Copyright (c) 2022 Synopsys, Inc. All rights reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config BOARD_HS4XD |
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.
BOARD_HS4XD -> BOARD_HSDK4XD
soc/arc/snps_arc_hs4xd/soc.c
Outdated
@@ -0,0 +1,39 @@ | |||
/* | |||
* Copyright (c) 2019 Synopsys, Inc. All rights reserved. |
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.
ditto
soc/arc/snps_arc_hs4xd/soc.c
Outdated
uint32_t core; | ||
uint32_t i; | ||
|
||
/* allocate all IDU interrupts to master core */ |
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.
master -> primary
* This module provides routines to initialize and support soc-level hardware | ||
* for the HS Development Kit |
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.
Copypaste, please update board name
soc/arc/snps_arc_hs4xd/Kconfig.soc
Outdated
@@ -0,0 +1,8 @@ | |||
# Copyright (c) 2019 Synopsys, Inc. All rights reserved. |
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.
ditto
boards/arc/hs4xd/hs4xd.dts
Outdated
|
||
/dts-v1/; | ||
|
||
#include "hs4xd.dtsi" |
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.
hs4xd.dtsi -> hsdk4xd.dtsi
Few questions:
|
Hi @ruuddw,
I'm not fully sure about this. The one meaningful part of having CPU_HS4X is to provide generic hs4x mcpu for all GNU toolchain targets (it's currently missing in this PR). However, as we have now possibility to tweak mcpu on SoC level - that might be a bit excessive :) And yep, if we introduce new cpu it should be CPU_HS4X + DSP option enabled and not CPU_HS4XD as we have now.
Yep, it's physical board. |
I considered the HSDK a single board, but you're right there are two revisions. Doesn't the existing HSDK cover both revisions? |
bfa37e8
to
280819c
Compare
@kokas-a care to add a reference to the upstream PR which implements it? |
HS4XD support was added to upstream by PR zephyrproject-rtos#56683 |
Add set of initial files for HS4XD SoC support. Based on HSDK sources.