11 #include <linux/module.h>
12 #include <linux/kernel.h>
16 #include <linux/serial.h>
17 #include <linux/tty.h>
30 static struct clk * uart1_ck;
31 static struct clk * uart2_ck;
32 static struct clk * uart3_ck;
99 .platform_data = serial_platform_data,
113 serial_platform_data[0].
regshift = 0;
114 serial_platform_data[1].
regshift = 0;
125 for (i = 0; i <
ARRAY_SIZE(serial_platform_data) - 1; i++) {
130 serial_platform_data[
i].
mapbase = 0;
137 if (!serial_platform_data[i].membase) {
144 if (IS_ERR(uart1_ck))
145 printk(
"Could not get uart1_ck\n");
154 if (IS_ERR(uart2_ck))
155 printk(
"Could not get uart2_ck\n");
166 if (IS_ERR(uart3_ck))
167 printk(
"Could not get uart3_ck\n");
175 omap_serial_reset(&serial_platform_data[i]);
179 #ifdef CONFIG_OMAP_SERIAL_WAKE
197 if (uart1_ck !=
NULL) {
203 if (uart2_ck !=
NULL) {
209 if (uart3_ck !=
NULL) {
217 static void __init omap_serial_set_port_wakeup(
int gpio_nr)
244 if (uart1_ck !=
NULL)
245 omap_serial_set_port_wakeup(37);
246 if (uart2_ck !=
NULL)
247 omap_serial_set_port_wakeup(18);
248 if (uart3_ck !=
NULL)
249 omap_serial_set_port_wakeup(49);
256 static int __init omap_init(
void)