aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2014-02-10 13:18:34 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-02-13 12:34:48 -0500
commit55367c620aed6bc27a82bb1763366931d7f2ee66 (patch)
treeb61316e9f2e13061aa3d2cf28175886c5853c0fd /include/linux/platform_data
parent0fbae8874eea124591aee10efae98d244a2d072d (diff)
serial: max310x: Add support for RS-485 mode
This patch adds support for RS-485 (TIOCSRS485/TIOCGRS485) IOCTLs. As a result this patch eliminate private driver header. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r--include/linux/platform_data/max310x.h49
1 files changed, 0 insertions, 49 deletions
diff --git a/include/linux/platform_data/max310x.h b/include/linux/platform_data/max310x.h
deleted file mode 100644
index 1140a57e735f..000000000000
--- a/include/linux/platform_data/max310x.h
+++ /dev/null
@@ -1,49 +0,0 @@
1/*
2 * Maxim (Dallas) MAX3107/8/9, MAX14830 serial driver
3 *
4 * Copyright (C) 2012 Alexander Shiyan <shc_work@mail.ru>
5 *
6 * Based on max3100.c, by Christian Pellegrin <chripell@evolware.org>
7 * Based on max3110.c, by Feng Tang <feng.tang@intel.com>
8 * Based on max3107.c, by Aavamobile
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
14 */
15
16#ifndef _MAX310X_H_
17#define _MAX310X_H_
18
19/*
20 * Example board initialization data:
21 *
22 * static struct max310x_pdata max3107_pdata = {
23 * .uart_flags[0] = MAX310X_ECHO_SUPRESS | MAX310X_AUTO_DIR_CTRL,
24 * };
25 *
26 * static struct spi_board_info spi_device_max3107[] = {
27 * {
28 * .modalias = "max3107",
29 * .irq = IRQ_EINT3,
30 * .bus_num = 1,
31 * .chip_select = 1,
32 * .platform_data = &max3107_pdata,
33 * },
34 * };
35 */
36
37#define MAX310X_MAX_UARTS 4
38
39/* MAX310X platform data structure */
40struct max310x_pdata {
41 /* Flags global to UART port */
42 const u8 uart_flags[MAX310X_MAX_UARTS];
43#define MAX310X_ECHO_SUPRESS (0x00000002) /* Enable echo supress */
44#define MAX310X_AUTO_DIR_CTRL (0x00000004) /* Enable Auto direction
45 * control (RS-485)
46 */
47};
48
49#endif