Commit 05aa7882 authored by Rafael Ignacio Zurita's avatar Rafael Ignacio Zurita Committed by Paul Mundt

sh: Add early printk support for SH770x CPUs.

This adds early printk support for SH770x (tested on SH7709 based hp6xx).
Signed-off-by: default avatarRafael Ignacio Zurita <rizurita@yahoo.com>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent fdeb076f
...@@ -43,6 +43,7 @@ config EARLY_SCIF_CONSOLE_PORT ...@@ -43,6 +43,7 @@ config EARLY_SCIF_CONSOLE_PORT
default "0xfffe8000" if CPU_SUBTYPE_SH7203 default "0xfffe8000" if CPU_SUBTYPE_SH7203
default "0xfffe9800" if CPU_SUBTYPE_SH7206 || CPU_SUBTYPE_SH7263 default "0xfffe9800" if CPU_SUBTYPE_SH7206 || CPU_SUBTYPE_SH7263
default "0xffe80000" if CPU_SH4 default "0xffe80000" if CPU_SH4
default "0xa4000150" if CPU_SH3
default "0x00000000" default "0x00000000"
config EARLY_PRINTK config EARLY_PRINTK
......
...@@ -134,7 +134,7 @@ static void scif_sercon_init(char *s) ...@@ -134,7 +134,7 @@ static void scif_sercon_init(char *s)
sci_out(&scif_port, SCFCR, 0x0030); /* TTRG=b'11 */ sci_out(&scif_port, SCFCR, 0x0030); /* TTRG=b'11 */
sci_out(&scif_port, SCSCR, 0x0030); /* TE, RE */ sci_out(&scif_port, SCSCR, 0x0030); /* TE, RE */
} }
#elif defined(CONFIG_CPU_SH4) #elif defined(CONFIG_CPU_SH4) || defined(CONFIG_CPU_SH3)
#define DEFAULT_BAUD 115200 #define DEFAULT_BAUD 115200
/* /*
* Simple SCIF init, primarily aimed at SH7750 and other similar SH-4 * Simple SCIF init, primarily aimed at SH7750 and other similar SH-4
...@@ -220,10 +220,8 @@ static int __init setup_early_printk(char *buf) ...@@ -220,10 +220,8 @@ static int __init setup_early_printk(char *buf)
early_console = &scif_console; early_console = &scif_console;
#if !defined(CONFIG_SH_STANDARD_BIOS) #if !defined(CONFIG_SH_STANDARD_BIOS)
#if defined(CONFIG_CPU_SH4) || defined(CONFIG_CPU_SUBTYPE_SH7720) || \ #if defined(CONFIG_CPU_SH4) || defined(CONFIG_CPU_SH3)
defined(CONFIG_CPU_SUBTYPE_SH7721)
scif_sercon_init(buf + 6); scif_sercon_init(buf + 6);
#endif
#endif #endif
} }
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment