diff options
author | Magnus Damm <damm@opensource.se> | 2009-12-14 07:52:53 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-12-14 22:07:35 -0500 |
commit | e76fe57447e88916954bdcab1c0d2c708ec3c943 (patch) | |
tree | 990bd22c068284f2f8b962efceed6a2b10f125fc /arch/sh/Kconfig.debug | |
parent | d8d3fbb0248dd0bc9b961f9ccfad8aa8e6b3ccfe (diff) |
sh: Remove old early serial console code V2
Now when the sh-sci driver can do early serial output,
get rid of the old duplicated code. This patch is V2 and
removes support for "earlyprintk=serial" together with
the following kconfig options:
CONFIG_EARLY_SCIF_CONSOLE
CONFIG_EARLY_SCIF_CONSOLE_PORT
CONFIG_EARLY_PRINTK
With this patch applied "earlyprintk=" support is always
built-in the SuperH kernel. For this to work the serial
driver must have early platform support and in the case
of sh-sci the serial console needs to be enabled:
CONFIG_SERIAL_SH_SCI_CONSOLE=y
So after enabling the SuperH SCI console kconfig option
you also need to point out port using the kernel command
line: "earlyprintk=sh-sci.N[,baudrate][,keep]"
Remember that clocks may be disabled by the boot loader
so you may have to do some board specific static clock
setup before earlyprintk will work on your platform.
Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/Kconfig.debug')
-rw-r--r-- | arch/sh/Kconfig.debug | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/arch/sh/Kconfig.debug b/arch/sh/Kconfig.debug index 55907af1dc25..12fec72fec5f 100644 --- a/arch/sh/Kconfig.debug +++ b/arch/sh/Kconfig.debug | |||
@@ -19,50 +19,6 @@ config SH_STANDARD_BIOS | |||
19 | mask ROM and no flash (WindowsCE machines fall in this category). | 19 | mask ROM and no flash (WindowsCE machines fall in this category). |
20 | If unsure, say N. | 20 | If unsure, say N. |
21 | 21 | ||
22 | config EARLY_SCIF_CONSOLE | ||
23 | bool "Use early SCIF console" | ||
24 | help | ||
25 | This enables an early console using a fixed SCIF port. This can | ||
26 | be used by platforms that are either not running the SH | ||
27 | standard BIOS, or do not wish to use the BIOS callbacks for the | ||
28 | serial I/O. | ||
29 | |||
30 | config EARLY_SCIF_CONSOLE_PORT | ||
31 | hex | ||
32 | depends on EARLY_SCIF_CONSOLE | ||
33 | default "0xa4400000" if CPU_SUBTYPE_SH7712 || CPU_SUBTYPE_SH7705 | ||
34 | default "0xa4430000" if CPU_SUBTYPE_SH7720 || CPU_SUBTYPE_SH7721 | ||
35 | default "0xf8420000" if CPU_SUBTYPE_SH7619 | ||
36 | default "0xff804000" if CPU_SUBTYPE_MXG | ||
37 | default "0xffc30000" if CPU_SUBTYPE_SHX3 | ||
38 | default "0xffe00000" if CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7763 || \ | ||
39 | CPU_SUBTYPE_SH7722 || CPU_SUBTYPE_SH7366 || \ | ||
40 | CPU_SUBTYPE_SH7343 | ||
41 | default "0xfe4c0000" if CPU_SUBTYPE_SH7757 | ||
42 | default "0xffeb0000" if CPU_SUBTYPE_SH7785 | ||
43 | default "0xffeb0000" if CPU_SUBTYPE_SH7786 | ||
44 | default "0xfffe8000" if CPU_SUBTYPE_SH7203 | ||
45 | default "0xfffe9800" if CPU_SUBTYPE_SH7206 || CPU_SUBTYPE_SH7263 | ||
46 | default "0xffe80000" if CPU_SH4 | ||
47 | default "0xa4000150" if CPU_SH3 | ||
48 | default "0x00000000" | ||
49 | |||
50 | config EARLY_PRINTK | ||
51 | bool "Early printk support" | ||
52 | depends on SH_STANDARD_BIOS || EARLY_SCIF_CONSOLE | ||
53 | help | ||
54 | Say Y here to redirect kernel printk messages to the serial port | ||
55 | used by the SH-IPL bootloader, starting very early in the boot | ||
56 | process and ending when the kernel's serial console is initialised. | ||
57 | This option is only useful porting the kernel to a new machine, | ||
58 | when the kernel may crash or hang before the serial console is | ||
59 | initialised. If unsure, say N. | ||
60 | |||
61 | On devices that are running SH-IPL and want to keep the port | ||
62 | initialization consistent while not using the BIOS callbacks, | ||
63 | select both the EARLY_SCIF_CONSOLE and SH_STANDARD_BIOS, using | ||
64 | the kernel command line option to toggle back and forth. | ||
65 | |||
66 | config STACK_DEBUG | 22 | config STACK_DEBUG |
67 | bool "Check for stack overflows" | 23 | bool "Check for stack overflows" |
68 | depends on DEBUG_KERNEL && SUPERH32 | 24 | depends on DEBUG_KERNEL && SUPERH32 |