Skip to content

Commit 147fdd8

Browse files
committed
Merge tag 'sh-for-4.9' of git://git.libc.org/linux-sh
Pull arch/sh updates from Rich Felker: "Minor changes to improve J2 support and match Kconfig expectations of other subsystems" * tag 'sh-for-4.9' of git://git.libc.org/linux-sh: sh: add earlycon support to j2_defconfig sh: add Kconfig option for J-Core SoC core drivers sh: support CPU_J2 when compiler lacks -mj2
2 parents 893e2c5 + 99f453f commit 147fdd8

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

arch/sh/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ isa-y := $(isa-y)-up
3131
endif
3232

3333
cflags-$(CONFIG_CPU_SH2) := $(call cc-option,-m2,)
34-
cflags-$(CONFIG_CPU_J2) := $(call cc-option,-mj2,)
34+
cflags-$(CONFIG_CPU_J2) += $(call cc-option,-mj2,)
3535
cflags-$(CONFIG_CPU_SH2A) += $(call cc-option,-m2a,) \
3636
$(call cc-option,-m2a-nofpu,) \
3737
$(call cc-option,-m4-nofpu,)

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: 2 additions & 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"
@@ -20,6 +21,7 @@ CONFIG_INET=y
2021
CONFIG_DEVTMPFS=y
2122
CONFIG_DEVTMPFS_MOUNT=y
2223
CONFIG_NETDEVICES=y
24+
CONFIG_SERIAL_EARLYCON=y
2325
CONFIG_SERIAL_UARTLITE=y
2426
CONFIG_SERIAL_UARTLITE_CONSOLE=y
2527
CONFIG_I2C=y

0 commit comments

Comments
 (0)