diff options
author | Chris Metcalf <cmetcalf@tilera.com> | 2013-08-12 14:09:28 -0400 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2013-09-03 14:50:36 -0400 |
commit | 6ec006ede5e0526c20cd7ed5e20df637ea592b1f (patch) | |
tree | a05b7f36199a31d11e54ae1e87a8c2fa6dafdfa0 /arch/tile/include/hv | |
parent | acbde1db294932623aad15dd8cc6e37b28340f26 (diff) |
tilegx: provide kernel support for the tilegx UART shim
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>
Diffstat (limited to 'arch/tile/include/hv')
-rw-r--r-- | arch/tile/include/hv/drv_uart_intf.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/arch/tile/include/hv/drv_uart_intf.h b/arch/tile/include/hv/drv_uart_intf.h new file mode 100644 index 000000000000..f5379e2404fd --- /dev/null +++ b/arch/tile/include/hv/drv_uart_intf.h | |||
@@ -0,0 +1,33 @@ | |||
1 | /* | ||
2 | * Copyright 2013 Tilera Corporation. All Rights Reserved. | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or | ||
5 | * modify it under the terms of the GNU General Public License | ||
6 | * as published by the Free Software Foundation, version 2. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, but | ||
9 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or | ||
11 | * NON INFRINGEMENT. See the GNU General Public License for | ||
12 | * more details. | ||
13 | */ | ||
14 | |||
15 | /** | ||
16 | * Interface definitions for the UART driver. | ||
17 | */ | ||
18 | |||
19 | #ifndef _SYS_HV_DRV_UART_INTF_H | ||
20 | #define _SYS_HV_DRV_UART_INTF_H | ||
21 | |||
22 | #include <arch/uart.h> | ||
23 | |||
24 | /** Number of UART ports supported. */ | ||
25 | #define TILEGX_UART_NR 2 | ||
26 | |||
27 | /** The mmap file offset (PA) of the UART MMIO region. */ | ||
28 | #define HV_UART_MMIO_OFFSET 0 | ||
29 | |||
30 | /** The maximum size of the UARTs MMIO region (64K Bytes). */ | ||
31 | #define HV_UART_MMIO_SIZE (1UL << 16) | ||
32 | |||
33 | #endif /* _SYS_HV_DRV_UART_INTF_H */ | ||