mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-25 03:55:09 +08:00
6ec006ede5
The TILE-Gx chip includes an on-chip UART. This change adds support for using the UART from within the kernel. The UART shim has more functionality than is exposed here, but to keep the kernel code and binary simpler, this is a subset of the full API designed to enable a standard Linux tty serial driver only. Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
34 lines
1007 B
C
34 lines
1007 B
C
/*
|
|
* Copyright 2013 Tilera Corporation. All Rights Reserved.
|
|
*
|
|
* 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, version 2.
|
|
*
|
|
* 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, GOOD TITLE or
|
|
* NON INFRINGEMENT. See the GNU General Public License for
|
|
* more details.
|
|
*/
|
|
|
|
/**
|
|
* Interface definitions for the UART driver.
|
|
*/
|
|
|
|
#ifndef _SYS_HV_DRV_UART_INTF_H
|
|
#define _SYS_HV_DRV_UART_INTF_H
|
|
|
|
#include <arch/uart.h>
|
|
|
|
/** Number of UART ports supported. */
|
|
#define TILEGX_UART_NR 2
|
|
|
|
/** The mmap file offset (PA) of the UART MMIO region. */
|
|
#define HV_UART_MMIO_OFFSET 0
|
|
|
|
/** The maximum size of the UARTs MMIO region (64K Bytes). */
|
|
#define HV_UART_MMIO_SIZE (1UL << 16)
|
|
|
|
#endif /* _SYS_HV_DRV_UART_INTF_H */
|