diff options
author | Paul Mundt <lethal@linux-sh.org> | 2006-11-26 22:10:23 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2006-12-05 20:45:39 -0500 |
commit | 6fc21b82ef74911887ced1aff8d37ce079bb8b36 (patch) | |
tree | 7accfcb402a530dcddb4d755f413e8098037801f /arch/sh/Kconfig.debug | |
parent | 510c72ad2dd4e05e6908755f51ac89482c6eb987 (diff) |
sh: More flexible + SH7780 earlyprintk SCIF support.
This makes the early printk support somewhat more flexible,
moving the port definition to a config option, and making the
port initialization configurable for sh-ipl+g users.
At the same time, this allows us to trivially wire up the
SH7780 SCIF0, so that's thrown in too more or less for free.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/Kconfig.debug')
-rw-r--r-- | arch/sh/Kconfig.debug | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/arch/sh/Kconfig.debug b/arch/sh/Kconfig.debug index 48479e014dac..dcceec95a2d5 100644 --- a/arch/sh/Kconfig.debug +++ b/arch/sh/Kconfig.debug | |||
@@ -17,7 +17,18 @@ config SH_STANDARD_BIOS | |||
17 | 17 | ||
18 | config EARLY_SCIF_CONSOLE | 18 | config EARLY_SCIF_CONSOLE |
19 | bool "Use early SCIF console" | 19 | bool "Use early SCIF console" |
20 | depends on CPU_SH4 || CPU_SH2A && !SH_STANDARD_BIOS | 20 | help |
21 | This enables an early console using a fixed SCIF port. This can | ||
22 | be used by platforms that are either not running the SH | ||
23 | standard BIOS, or do not wish to use the BIOS callbacks for the | ||
24 | serial I/O. | ||
25 | |||
26 | config EARLY_SCIF_CONSOLE_PORT | ||
27 | hex "SCIF port for early console" | ||
28 | depends on EARLY_SCIF_CONSOLE | ||
29 | default "0xffe00000" if CPU_SUBTYPE_SH7780 | ||
30 | default "0xfffe9800" if CPU_SUBTYPE_SH72060 | ||
31 | default "0xffe80000" if CPU_SH4 | ||
21 | 32 | ||
22 | config EARLY_PRINTK | 33 | config EARLY_PRINTK |
23 | bool "Early printk support" | 34 | bool "Early printk support" |
@@ -30,6 +41,11 @@ config EARLY_PRINTK | |||
30 | when the kernel may crash or hang before the serial console is | 41 | when the kernel may crash or hang before the serial console is |
31 | initialised. If unsure, say N. | 42 | initialised. If unsure, say N. |
32 | 43 | ||
44 | On devices that are running SH-IPL and want to keep the port | ||
45 | initialization consistent while not using the BIOS callbacks, | ||
46 | select both the EARLY_SCIF_CONSOLE and SH_STANDARD_BIOS, using | ||
47 | the kernel command line option to toggle back and forth. | ||
48 | |||
33 | config DEBUG_STACKOVERFLOW | 49 | config DEBUG_STACKOVERFLOW |
34 | bool "Check for stack overflows" | 50 | bool "Check for stack overflows" |
35 | depends on DEBUG_KERNEL | 51 | depends on DEBUG_KERNEL |