mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-14 08:57:58 +00:00
7656582378
Add a driver for the Apollo Lake UART. It uses the standard ns16550 device but also sets up the input clock with LPSS and supports configuration via of-platdata. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
20 lines
496 B
C
20 lines
496 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright 2019 Google LLC
|
|
*/
|
|
|
|
#ifndef _ASM_ARCH_UART_H
|
|
#define _ASM_ARCH_UART_H
|
|
|
|
/**
|
|
* apl_uart_init() - Set up the APL UART device and clock
|
|
*
|
|
* This enables the PCI device, sets up the MMIO region and turns on the clock
|
|
* using LPSS.
|
|
*
|
|
* The UART won't actually work unless the GPIO settings are correct and the
|
|
* signals actually exit the SoC. See board_debug_uart_init() for that.
|
|
*/
|
|
int apl_uart_init(pci_dev_t bdf, ulong base);
|
|
|
|
#endif
|