From cd0fa5bff8052b19bde6967c2734f323c9848568 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Sun, 13 Mar 2016 18:16:54 -0700 Subject: serial: pl01x: Add support for devices with the rate pre-configured. For Raspberry Pi, we had the input clock rate to the pl011 fixed in the rpi.c file, but it may be changed by firmware due to user changes to config.txt. Since the firmware always sets up the uart (default 115200 output unless the user changes it), we can just skip our own uart init to simplify the boot process and more reliably get serial output. Signed-off-by: Eric Anholt Reviewed-by: Tom Rini Tested-by: Stephen Warren --- include/dm/platform_data/serial_pl01x.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/dm/platform_data/serial_pl01x.h b/include/dm/platform_data/serial_pl01x.h index 5e068f390b..ccfa808e23 100644 --- a/include/dm/platform_data/serial_pl01x.h +++ b/include/dm/platform_data/serial_pl01x.h @@ -17,11 +17,14 @@ enum pl01x_type { * @base: Register base address * @type: Port type * @clock: Input clock rate, used for calculating the baud rate divisor + * @skip_init: Don't attempt to change port configuration (also means @clock + * is ignored) */ struct pl01x_serial_platdata { unsigned long base; enum pl01x_type type; unsigned int clock; + bool skip_init; }; #endif -- cgit v1.2.3