if (hs_switch < 0)
return -EINVAL;
- printk(KERN_INFO "headset_uart_switch: %d\n", hs_switch);
+ printk(KERN_INFO "headset_uart_switch: %d, value: %d\n", hs_switch, gpio_get_value(hs_switch));
- printk(KERN_INFO "value: %d\n", gpio_get_value(hs_switch));
if (!gpio_get_value(hs_switch))
return -ENODEV;
/* route kernel uart out headset jack */
gpio_direction_output(hs_switch, 0);
- printk(KERN_INFO "value: %d\n", gpio_get_value(hs_switch));
+ printk(KERN_INFO "headset_uart_switch: %d, value: %d\n", hs_switch, gpio_get_value(hs_switch));
//add_preferred_console("ttyS", 2, "115200");
return 0;
{
struct uart_omap_port *up = (struct uart_omap_port *)port;
- DPRINTK("serial_omap_type+%d\n", up->pdev->id);
+ DPRINTK("serial_omap_hs_type+%d\n", up->pdev->id);
return up->name;
}
.driver_name = "OMAP-HS-SERIAL",
.dev_name = "ttyS",
.major = TTY_MAJOR,
- .minor = 64,
+ .minor = 128,
.nr = 4,
.cons = OMAP_CONSOLE,
};
struct uart_omap_port *up;
struct resource *mem, *irq;
int ret = -ENOSPC;
+#if 0
char str[7];
+#endif
if (!pdata) {
dev_err(&pdev->dev, "no platform data?\n");
ret = -ENOMEM;
goto do_release_region;
}
- sprintf(up->name, "OMAP UART%d", pdev->id);
+ sprintf(up->name, "OMAP HS UART%d", pdev->id);
up->pdev = pdev;
up->port.dev = &pdev->dev;
up->uart_dma.tx_dma_channel = 0xFF;
up->uart_dma.rx_dma_channel = 0xFF;
}
+#if 0
if (console_detect(str))
printk("Invalid console paramter. UART Library Init Failed!\n");
+#endif
up->use_console = 0;
fcr[pdev->id - 1] = 0;
+#if 0
if (!strcmp(str, "ttyS0"))
up->use_console = 1;
else if (!strcmp(str, "ttyS1"))
else
printk(KERN_INFO
"!!!!!!!! Unable to recongnize Console UART........\n");
+#endif
+ up->use_console = 1;
ui[pdev->id - 1] = up;
serial_omap_add_console_port(up);
serial_omap_clear_fifos(up);
{
int ret;
+ printk(KERN_INFO "registering omap-hs-uart...\n");
wake_lock_init(&omap_serial_wakelock, WAKE_LOCK_SUSPEND,
"omap_hs_serial");
omap_serial_workqueue = create_singlethread_workqueue("omap_hs_serial");