Skip to content

Commit 5be9911

Browse files
committed
Merge tag 'sh-for-v6.7-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/glaubitz/sh-linux
Pull sh updates from John Paul Adrian Glaubitz: "While the previously announced patch series for converting arch/sh to device trees is not yet ready for inclusion to mainline and therefore didn't make it for this pull request, there are still a small number changes for v6.7 which include one platform (board plus CPU and driver code) removal plus two fixes. The removal sent in by Arnd Bergmann concerns the microdev board which was an early SuperH prototype board that was never used in production. With the board removed, we were able to drop the now unused code for the SH4-202 CPU and well as the driver code for the superhyway bus and a custom implementation for ioport_map() and ioport_unmap() which will allow us to simplify ioport handling in the future. Another patch set by Geert Uytterhoeven revives SuperH BIOS earlyprintk support which got accidentally disabled in e76fe57 ("sh: Remove old early serial console code V2"), the second patch in the series updates the documentation. Finally, a patch by Masami Hiramatsu fixes a regression reported by the kernel test robot which uncovered that arch/sh is not implementing arch_cmpxchg_local() and therefore needs use __generic_cmpxchg_local() instead" * tag 'sh-for-v6.7-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/glaubitz/sh-linux: locking/atomic: sh: Use generic_cmpxchg_local for arch_cmpxchg_local() Documentation: kernel-parameters: Add earlyprintk=bios on SH sh: bios: Revive earlyprintk support sh: machvec: Remove custom ioport_{un,}map() sh: Remove superhyway bus support sh: Remove unused SH4-202 support sh: Remove stale microdev board
2 parents c9cacf7 + 63f1ee2 commit 5be9911

File tree

29 files changed

+27
-1704
lines changed

29 files changed

+27
-1704
lines changed

Documentation/admin-guide/kernel-parameters.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,6 +1335,7 @@
13351335
earlyprintk=dbgp[debugController#]
13361336
earlyprintk=pciserial[,force],bus:device.function[,baudrate]
13371337
earlyprintk=xdbc[xhciController#]
1338+
earlyprintk=bios
13381339

13391340
earlyprintk is useful when the kernel crashes before
13401341
the normal console is initialized. It is not enabled by
@@ -1365,6 +1366,8 @@
13651366

13661367
The sclp output can only be used on s390.
13671368

1369+
The bios output can only be used on SuperH.
1370+
13681371
The optional "force" to "pciserial" enables use of a
13691372
PCI device even when its classcode is not of the
13701373
UART class.

Documentation/arch/sh/index.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,6 @@ mach-x3proto
4343
Busses
4444
======
4545

46-
SuperHyway
47-
----------
48-
49-
.. kernel-doc:: drivers/sh/superhyway/superhyway.c
50-
:export:
51-
5246
Maple
5347
-----
5448

arch/sh/Kconfig

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,7 @@ config ARCH_HAS_ILOG2_U64
124124

125125
config NO_IOPORT_MAP
126126
def_bool !PCI
127-
depends on !SH_SH4202_MICRODEV && !SH_SHMIN && !SH_HP6XX && \
128-
!SH_SOLUTION_ENGINE
127+
depends on !SH_SHMIN && !SH_HP6XX && !SH_SOLUTION_ENGINE
129128

130129
config IO_TRAPPED
131130
bool
@@ -384,10 +383,6 @@ config CPU_SUBTYPE_SH7760
384383
bool "Support SH7760 processor"
385384
select CPU_SH4
386385

387-
config CPU_SUBTYPE_SH4_202
388-
bool "Support SH4-202 processor"
389-
select CPU_SH4
390-
391386
# SH-4A Processor Support
392387

393388
config CPU_SUBTYPE_SH7723
@@ -518,7 +513,6 @@ config SH_PCLK_FREQ
518513
CPU_SUBTYPE_SH7263 || \
519514
CPU_SUBTYPE_MXG
520515
default "60000000" if CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7751R
521-
default "66000000" if CPU_SUBTYPE_SH4_202
522516
default "50000000"
523517
help
524518
This option is used to specify the peripheral clock frequency.
@@ -743,10 +737,6 @@ endmenu
743737

744738
menu "Bus options"
745739

746-
config SUPERHYWAY
747-
tristate "SuperHyway Bus support"
748-
depends on CPU_SUBTYPE_SH4_202
749-
750740
config MAPLE
751741
bool "Maple Bus support"
752742
depends on SH_DREAMCAST

arch/sh/Kconfig.debug

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,17 @@ config STACK_DEBUG
2222
every function call and will therefore incur a major
2323
performance hit. Most users should say N.
2424

25+
config EARLY_PRINTK
26+
bool "Early printk"
27+
depends on SH_STANDARD_BIOS
28+
help
29+
Say Y here to redirect kernel printk messages to the serial port
30+
used by the SH-IPL bootloader, starting very early in the boot
31+
process and ending when the kernel's serial console is initialised.
32+
This option is only useful while porting the kernel to a new machine,
33+
when the kernel may crash or hang before the serial console is
34+
initialised. If unsure, say N.
35+
2536
config 4KSTACKS
2637
bool "Use 4Kb for kernel stacks instead of 8Kb"
2738
depends on DEBUG_KERNEL && (MMU || BROKEN) && !PAGE_SIZE_64KB

arch/sh/boards/Kconfig

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -289,13 +289,6 @@ config SH_EDOSK7760
289289
Select if configuring for a Renesas EDOSK7760
290290
evaluation board.
291291

292-
config SH_SH4202_MICRODEV
293-
bool "SH4-202 MicroDev"
294-
depends on CPU_SUBTYPE_SH4_202
295-
help
296-
Select SH4-202 MicroDev if configuring for a SuperH MicroDev board
297-
with an SH4-202 CPU.
298-
299292
config SH_LANDISK
300293
bool "LANDISK"
301294
depends on CPU_SUBTYPE_SH7751R

arch/sh/boards/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ obj-$(CONFIG_SH_SDK7780) += mach-sdk7780/
3333
obj-$(CONFIG_SH_SDK7786) += mach-sdk7786/
3434
obj-$(CONFIG_SH_X3PROTO) += mach-x3proto/
3535
obj-$(CONFIG_SH_SH7763RDP) += mach-sh7763rdp/
36-
obj-$(CONFIG_SH_SH4202_MICRODEV)+= mach-microdev/
3736
obj-$(CONFIG_SH_LANDISK) += mach-landisk/
3837
obj-$(CONFIG_SH_LBOX_RE2) += mach-lboxre2/
3938
obj-$(CONFIG_SH_RSK) += mach-rsk/

arch/sh/boards/mach-microdev/Makefile

Lines changed: 0 additions & 6 deletions
This file was deleted.

arch/sh/boards/mach-microdev/fdc37c93xapm.c

Lines changed: 0 additions & 157 deletions
This file was deleted.

arch/sh/boards/mach-microdev/io.c

Lines changed: 0 additions & 123 deletions
This file was deleted.

0 commit comments

Comments
 (0)