forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers: jtag: refactor npcm4xx jtag driver
refactor npcm4xx jtag driver 1. add jtag driver from soc. 1. use dts to setup jtag gpio setting. shell command: ir_scan 0x8 0x16 dr_scan 0x20 0xffffffff read lattice LC4128 device id ok. Signed-off-by: cpchiang <[email protected]>
- Loading branch information
Showing
17 changed files
with
1,403 additions
and
458 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -119,4 +119,6 @@ source "drivers/disk/Kconfig" | |
|
||
source "drivers/cache/Kconfig" | ||
|
||
source "drivers/jtag/Kconfig" | ||
|
||
endmenu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
zephyr_library() | ||
|
||
zephyr_library_sources_ifdef(CONFIG_JTAG_SHELL jtag_shell.c) | ||
zephyr_library_sources_ifdef(CONFIG_JTAG_NPCM4XX jtag_npcm4xx.c) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# JTAG configuration options | ||
|
||
# Copyright (c) 2023 Zephyr | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# | ||
# JTAG options | ||
# | ||
menuconfig JTAG | ||
bool "JTAG drivers" | ||
help | ||
Enable JTAG driver configuration. | ||
|
||
if JTAG | ||
|
||
config JTAG_SHELL | ||
bool "Enable JTAG Shell" | ||
default y | ||
depends on SHELL | ||
help | ||
Enable JTAG Shell for testing. | ||
|
||
module = JTAG | ||
module-str = JTAG | ||
source "subsys/logging/Kconfig.template.log_config" | ||
|
||
source "drivers/jtag/Kconfig.npcm4xx" | ||
|
||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# NPCM4XX JTAG driver configuration options | ||
|
||
# Copyright (c) 2023 Nuvoton Technology Inc. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config JTAG_NPCM4XX | ||
bool "NPCM4XX JTAG driver" | ||
depends on SOC_FAMILY_NPCM4XX | ||
help | ||
This option enables the JTAG driver for NPCM4XX family of | ||
processors. | ||
Say y if you wish to use JTAG channels on NPCM4XX MCU. |
Oops, something went wrong.