diff options
author | Simon Glass <sjg@chromium.org> | 2011-05-15 07:56:25 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2011-08-24 10:01:33 -0700 |
commit | 3a47c614c2f5f204ee9a6428df03df3e85fe0b51 (patch) | |
tree | b320ae1cb0ec40fc99d737f9a86b3bfbfa042737 /include/serial_fdt.h | |
parent | 16016e7f644ba2301848f7769af6192cafc45c20 (diff) |
fdt: Add serial port controlled by device tree
This adds a new console serial port which is implemented by the driver
selected in the device tree.
BUG=chromium-os:11623
TEST=build and boot U-Boot on Seaboard
Change-Id: I0e41f795a78d165c2907a9f8faeeabe1a2639a18
Reviewed-on: http://gerrit.chromium.org/gerrit/958
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/serial_fdt.h')
-rw-r--r-- | include/serial_fdt.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/include/serial_fdt.h b/include/serial_fdt.h new file mode 100644 index 0000000000..c53e0a5ca2 --- /dev/null +++ b/include/serial_fdt.h @@ -0,0 +1,36 @@ +/* + * Copyright (c) 2011 The Chromium OS Authors. + * See file CREDITS for list of people who contributed to this + * project. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + */ + + +/* + * Provides a serial port defined by an FDT. This makes calls to the + * driver selected by the FDT. + */ + +/** + * Return a pointer to the serial console device before relocation. + */ +struct serial_device *serial_fdt_get_console_f(void); + +/** + * Return a pointer to the serial console device after relocation. + */ +struct serial_device *serial_fdt_get_console_r(void); |