diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-10-19 14:21:06 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-10-19 14:21:06 -0400 |
commit | 147fdd8cf1b106beb6254f7d167b50f9e94026b5 (patch) | |
tree | 2fb4292ae1fb61038989a6aea9ada5c03c68cd4d /arch/sh | |
parent | 893e2c5c9fedeccf89653b0ad17df69e88dbd707 (diff) | |
parent | 99f453f875a5e207f38e92ced6ce3427433d5be2 (diff) |
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
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/Makefile | 2 | ||||
-rw-r--r-- | arch/sh/boards/Kconfig | 10 | ||||
-rw-r--r-- | arch/sh/configs/j2_defconfig | 2 |
3 files changed, 13 insertions, 1 deletions
diff --git a/arch/sh/Makefile b/arch/sh/Makefile index 00476662ac2c..336f33a419d9 100644 --- a/arch/sh/Makefile +++ b/arch/sh/Makefile | |||
@@ -31,7 +31,7 @@ isa-y := $(isa-y)-up | |||
31 | endif | 31 | endif |
32 | 32 | ||
33 | cflags-$(CONFIG_CPU_SH2) := $(call cc-option,-m2,) | 33 | 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,) |
35 | cflags-$(CONFIG_CPU_SH2A) += $(call cc-option,-m2a,) \ | 35 | cflags-$(CONFIG_CPU_SH2A) += $(call cc-option,-m2a,) \ |
36 | $(call cc-option,-m2a-nofpu,) \ | 36 | $(call cc-option,-m2a-nofpu,) \ |
37 | $(call cc-option,-m4-nofpu,) | 37 | $(call cc-option,-m4-nofpu,) |
diff --git a/arch/sh/boards/Kconfig b/arch/sh/boards/Kconfig index e9c2c42031fe..4e21949593cf 100644 --- a/arch/sh/boards/Kconfig +++ b/arch/sh/boards/Kconfig | |||
@@ -22,6 +22,16 @@ config SH_DEVICE_TREE | |||
22 | have sufficient driver coverage to use this option; do not | 22 | have sufficient driver coverage to use this option; do not |
23 | select it if you are using original SuperH hardware. | 23 | select it if you are using original SuperH hardware. |
24 | 24 | ||
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 | |||
25 | config SH_SOLUTION_ENGINE | 35 | config SH_SOLUTION_ENGINE |
26 | bool "SolutionEngine" | 36 | bool "SolutionEngine" |
27 | select SOLUTION_ENGINE | 37 | select SOLUTION_ENGINE |
diff --git a/arch/sh/configs/j2_defconfig b/arch/sh/configs/j2_defconfig index 94d1eca52f72..2eb81ebe3888 100644 --- a/arch/sh/configs/j2_defconfig +++ b/arch/sh/configs/j2_defconfig | |||
@@ -8,6 +8,7 @@ CONFIG_MEMORY_START=0x10000000 | |||
8 | CONFIG_MEMORY_SIZE=0x04000000 | 8 | CONFIG_MEMORY_SIZE=0x04000000 |
9 | CONFIG_CPU_BIG_ENDIAN=y | 9 | CONFIG_CPU_BIG_ENDIAN=y |
10 | CONFIG_SH_DEVICE_TREE=y | 10 | CONFIG_SH_DEVICE_TREE=y |
11 | CONFIG_SH_JCORE_SOC=y | ||
11 | CONFIG_HZ_100=y | 12 | CONFIG_HZ_100=y |
12 | CONFIG_CMDLINE_OVERWRITE=y | 13 | CONFIG_CMDLINE_OVERWRITE=y |
13 | CONFIG_CMDLINE="console=ttyUL0 earlycon" | 14 | CONFIG_CMDLINE="console=ttyUL0 earlycon" |
@@ -20,6 +21,7 @@ CONFIG_INET=y | |||
20 | CONFIG_DEVTMPFS=y | 21 | CONFIG_DEVTMPFS=y |
21 | CONFIG_DEVTMPFS_MOUNT=y | 22 | CONFIG_DEVTMPFS_MOUNT=y |
22 | CONFIG_NETDEVICES=y | 23 | CONFIG_NETDEVICES=y |
24 | CONFIG_SERIAL_EARLYCON=y | ||
23 | CONFIG_SERIAL_UARTLITE=y | 25 | CONFIG_SERIAL_UARTLITE=y |
24 | CONFIG_SERIAL_UARTLITE_CONSOLE=y | 26 | CONFIG_SERIAL_UARTLITE_CONSOLE=y |
25 | CONFIG_I2C=y | 27 | CONFIG_I2C=y |