From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Sun, 8 Dec 2019 16:07:30 +0800 Subject: [PATCH v6 085/102] x86: apl: Add UART driver In-Reply-To: <20191207044315.51770-5-sjg@chromium.org> References: <20191207044315.51770-1-sjg@chromium.org> <20191207044315.51770-5-sjg@chromium.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, Dec 7, 2019 at 12:54 PM Simon Glass wrote: > > 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 > --- > > Changes in v6: > - Drop code to handle !CONFIG_OF_TRANSLATE case > - Update comment to reference board_debug_uart_init() (its in a later patch) > > Changes in v5: None > Changes in v4: > - Add an extra comment to apl_uart_init() > - Tidy up header guards > - apollolake -> Apollo Lake > > Changes in v3: > - Use the LPSS code from a separate file > > Changes in v2: None > > arch/x86/cpu/apollolake/Makefile | 1 + > arch/x86/cpu/apollolake/uart.c | 133 ++++++++++++++++++++ > arch/x86/include/asm/arch-apollolake/uart.h | 20 +++ > 3 files changed, 154 insertions(+) > create mode 100644 arch/x86/cpu/apollolake/uart.c > create mode 100644 arch/x86/include/asm/arch-apollolake/uart.h > Reviewed-by: Bin Meng