X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/ms2-kexec/blobdiff_plain/8eb83dc7c5741ddd510fa6bf4c6abde7ac8dc109..66526df8bc7977cde11d1f6d0696de8494f2688f:/hs_cons.c diff --git a/hs_cons.c b/hs_cons.c index 858fbf1..8ca5b80 100644 --- a/hs_cons.c +++ b/hs_cons.c @@ -33,6 +33,7 @@ static int (*add_preferred_console)(char *, int, char*) = (int (*)(char*, int, c void my_omap_serial_init(int wake_gpio_strobe, unsigned int wake_strobe_enable_mask); int my_omap_hs_init(void); +int my_serial_omap_init(void); #define MAPPHONE_BPWAKE_STROBE_GPIO 157 @@ -43,19 +44,21 @@ static int __init headphone_cons_init(void) 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; + printk(KERN_INFO "Loading slightly modified omap serial driver...\n"); + my_serial_omap_init(); + printk(KERN_INFO "Enabling UART3...\n"); my_omap_serial_init(MAPPHONE_BPWAKE_STROBE_GPIO, 0x01); my_omap_hs_init(); /* 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;