diff options
-rw-r--r-- | arch/arc/boot/dts/angel4.dts | 2 | ||||
-rw-r--r-- | arch/arc/plat-arcfpga/platform.c | 13 |
2 files changed, 5 insertions, 10 deletions
diff --git a/arch/arc/boot/dts/angel4.dts b/arch/arc/boot/dts/angel4.dts index bcf662d21a57..5bb2fdaca02f 100644 --- a/arch/arc/boot/dts/angel4.dts +++ b/arch/arc/boot/dts/angel4.dts | |||
@@ -17,7 +17,7 @@ | |||
17 | interrupt-parent = <&intc>; | 17 | interrupt-parent = <&intc>; |
18 | 18 | ||
19 | chosen { | 19 | chosen { |
20 | bootargs = "console=ttyARC0,115200n8"; | 20 | bootargs = "console=ttyARC0,115200n8 earlyprintk=ttyARC0"; |
21 | }; | 21 | }; |
22 | 22 | ||
23 | aliases { | 23 | aliases { |
diff --git a/arch/arc/plat-arcfpga/platform.c b/arch/arc/plat-arcfpga/platform.c index f09e771b4bbd..61c7e5997387 100644 --- a/arch/arc/plat-arcfpga/platform.c +++ b/arch/arc/plat-arcfpga/platform.c | |||
@@ -79,16 +79,11 @@ static void arc_fpga_serial_init(void) | |||
79 | ARRAY_SIZE(fpga_early_devs)); | 79 | ARRAY_SIZE(fpga_early_devs)); |
80 | 80 | ||
81 | /* | 81 | /* |
82 | * ARC console driver registers itself as an early platform driver | 82 | * ARC console driver registers (build time) as an early platform driver |
83 | * of class "earlyprintk". | 83 | * of class "earlyprintk". However it needs explicit cmdline toggle |
84 | * Install it here, followed by probe of devices. | 84 | * "earlyprintk=ttyARC0" to be successfuly runtime registered. |
85 | * The installation here doesn't require earlyprintk in command line | 85 | * Otherwise the early probe below fails to find the driver |
86 | * To do so however, replace the lines below with | ||
87 | * parse_early_param(); | ||
88 | * early_platform_driver_probe("earlyprintk", 1, 1); | ||
89 | * ^^ | ||
90 | */ | 86 | */ |
91 | early_platform_driver_register_all("earlyprintk"); | ||
92 | early_platform_driver_probe("earlyprintk", 1, 0); | 87 | early_platform_driver_probe("earlyprintk", 1, 0); |
93 | 88 | ||
94 | /* | 89 | /* |