aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/uart_select.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/uart_select.h')
-rw-r--r--include/linux/uart_select.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/linux/uart_select.h b/include/linux/uart_select.h
new file mode 100644
index 0000000..5e23628
--- /dev/null
+++ b/include/linux/uart_select.h
@@ -0,0 +1,26 @@
+/*
+ * uart_select.h - UART Selection Driver
+ *
+ * Copyright (C) 2009 Samsung Electronics
+ * Kim Kyuwon <q1.kim@samsung.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ */
+#ifndef _UART_SELECT_H_
+#define _UART_SELECT_H_
+
+#define UART_SW_PATH_NA -1
+#define UART_SW_PATH_AP 1
+#define UART_SW_PATH_CP 0
+
+struct uart_select_platform_data {
+ int (*get_uart_switch)(void);
+ void (*set_uart_switch)(int path);
+};
+
+extern int uart_sel_get_state(void);
+#endif /* _UART_SELECT_H_ */
+