diff options
author | Finn Thain <fthain@telegraphics.com.au> | 2014-04-12 09:49:30 -0400 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2014-05-28 04:11:53 -0400 |
commit | c46f46d02c90959b82b99badfadc575081666aae (patch) | |
tree | eef1f9bde612c02693fbd8042e4a57b89783ade8 /arch/m68k/kernel/head.S | |
parent | 7913ad1ad83409e7f9ed5758bb4324bf64c95a73 (diff) |
m68k/mvme16x: Adopt common boot console
In a multi-platform kernel binary we only need one early console instance.
The difficulty here is that the common early console is started by
early_param(), whereas the MVME16x instance is started later by
config_mvme16x(). That means some interrupt setup must be done earlier.
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Tested-by: Stephen N Chivers <schivers@csc.com.au>
[Geert] Tag debug_cons_write() with __ref to kill section mismatch warning
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch/m68k/kernel/head.S')
-rw-r--r-- | arch/m68k/kernel/head.S | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/m68k/kernel/head.S b/arch/m68k/kernel/head.S index a3cfada88368..b671f07aeb81 100644 --- a/arch/m68k/kernel/head.S +++ b/arch/m68k/kernel/head.S | |||
@@ -2936,6 +2936,15 @@ L(serial_init_not_mac): | |||
2936 | 2: | 2936 | 2: |
2937 | #endif | 2937 | #endif |
2938 | 2938 | ||
2939 | #ifdef CONFIG_MVME16x | ||
2940 | is_not_mvme16x(L(serial_init_not_mvme16x)) | ||
2941 | moveb #0x10,M167_PCSCCMICR | ||
2942 | moveb #0x10,M167_PCSCCTICR | ||
2943 | moveb #0x10,M167_PCSCCRICR | ||
2944 | jra L(serial_init_done) | ||
2945 | L(serial_init_not_mvme16x): | ||
2946 | #endif | ||
2947 | |||
2939 | #ifdef CONFIG_APOLLO | 2948 | #ifdef CONFIG_APOLLO |
2940 | /* We count on the PROM initializing SIO1 */ | 2949 | /* We count on the PROM initializing SIO1 */ |
2941 | #endif | 2950 | #endif |
@@ -3768,7 +3777,9 @@ M167_CYIER = 0xfff45011 | |||
3768 | M167_CYLICR = 0xfff45026 | 3777 | M167_CYLICR = 0xfff45026 |
3769 | M167_CYTEOIR = 0xfff45085 | 3778 | M167_CYTEOIR = 0xfff45085 |
3770 | M167_CYTDR = 0xfff450f8 | 3779 | M167_CYTDR = 0xfff450f8 |
3780 | M167_PCSCCMICR = 0xfff4201d | ||
3771 | M167_PCSCCTICR = 0xfff4201e | 3781 | M167_PCSCCTICR = 0xfff4201e |
3782 | M167_PCSCCRICR = 0xfff4201f | ||
3772 | M167_PCTPIACKR = 0xfff42025 | 3783 | M167_PCTPIACKR = 0xfff42025 |
3773 | #endif | 3784 | #endif |
3774 | 3785 | ||