Skip to content

Commit db766b0

Browse files
author
Rich Felker
committed
sh: add Kconfig option for J-Core SoC core drivers
Signed-off-by: Rich Felker <dalias@libc.org>
1 parent f208b87 commit db766b0

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

arch/sh/boards/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@ config SH_DEVICE_TREE
2222
have sufficient driver coverage to use this option; do not
2323
select it if you are using original SuperH hardware.
2424

25+
config SH_JCORE_SOC
26+
bool "J-Core SoC"
27+
depends on SH_DEVICE_TREE && (CPU_SH2 || CPU_J2)
28+
select CLKSRC_JCORE_PIT
29+
select JCORE_AIC
30+
default y if CPU_J2
31+
help
32+
Select this option to include drivers core components of the
33+
J-Core SoC, including interrupt controllers and timers.
34+
2535
config SH_SOLUTION_ENGINE
2636
bool "SolutionEngine"
2737
select SOLUTION_ENGINE

arch/sh/configs/j2_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ CONFIG_MEMORY_START=0x10000000
88
CONFIG_MEMORY_SIZE=0x04000000
99
CONFIG_CPU_BIG_ENDIAN=y
1010
CONFIG_SH_DEVICE_TREE=y
11+
CONFIG_SH_JCORE_SOC=y
1112
CONFIG_HZ_100=y
1213
CONFIG_CMDLINE_OVERWRITE=y
1314
CONFIG_CMDLINE="console=ttyUL0 earlycon"

0 commit comments

Comments
 (0)