mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-30 08:31:03 +00:00
cd0fa5bff8
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 <eric@anholt.net> Reviewed-by: Tom Rini <trini@konsulko.com> Tested-by: Stephen Warren <swarren@wwwdotorg.org>
30 lines
562 B
C
30 lines
562 B
C
/*
|
|
* Copyright (c) 2014 Google, Inc
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#ifndef __serial_pl01x_h
|
|
#define __serial_pl01x_h
|
|
|
|
enum pl01x_type {
|
|
TYPE_PL010,
|
|
TYPE_PL011,
|
|
};
|
|
|
|
/*
|
|
*Information about a serial port
|
|
*
|
|
* @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
|