OSDN Git Service

ARC: [arcfpga] Early ARC UART to be only activated by cmdline
authorVineet Gupta <vgupta@synopsys.com>
Mon, 31 Mar 2014 10:52:09 +0000 (16:22 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Tue, 3 Jun 2014 08:50:09 +0000 (14:20 +0530)
commite87a850b9c92be6a8cf5735c516ec864d65f24dd
tree5121fa121b6bd6ce2d6dbed6eee0ac5c213d7fa0
parentc00bfd974fb0b7a5a501aebada2a94945e38a9a5
ARC: [arcfpga] Early ARC UART to be only activated by cmdline

Earlier CONFIG_SERIAL_ARC_CONSOLE would unconditionally enable the
legacy ARC UART based early console even if platform lacked that UART
(e.g. nSIM OSCI platform).

So a multi-platform image containing the 2 UART drivers won't work.

Fix that by probing the driver only if "earlyprintk=ttyARC0" is present
in cmdline.

Reported-by: Chuck Jordan <cjordan@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/boot/dts/angel4.dts
arch/arc/plat-arcfpga/platform.c