blob: 77d96c49f03a65a80cb1f85698c1a0dea4b167e6 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Simon Glassf35484d2014-09-22 17:30:57 -06002/*
3 * Copyright (c) 2014 Google, Inc
Simon Glassf35484d2014-09-22 17:30:57 -06004 */
5
6#ifndef __serial_pl01x_h
7#define __serial_pl01x_h
8
9enum pl01x_type {
10 TYPE_PL010,
11 TYPE_PL011,
12};
13
14/*
15 *Information about a serial port
16 *
17 * @base: Register base address
18 * @type: Port type
19 * @clock: Input clock rate, used for calculating the baud rate divisor
Eric Anholtbe5a7dd2016-03-13 18:16:54 -070020 * @skip_init: Don't attempt to change port configuration (also means @clock
21 * is ignored)
Simon Glassf35484d2014-09-22 17:30:57 -060022 */
23struct pl01x_serial_platdata {
24 unsigned long base;
25 enum pl01x_type type;
26 unsigned int clock;
Eric Anholtbe5a7dd2016-03-13 18:16:54 -070027 bool skip_init;
Simon Glassf35484d2014-09-22 17:30:57 -060028};
29
30#endif