Revision 58a26b47 hw/nseries.c

b/hw/nseries.c
741 741
    cbus_attach(cbus, s->tahvo = tahvo_init(tahvo_irq, 1));
742 742
}
743 743

  
744
static void n8x0_uart_setup(struct n800_s *s)
745
{
746
    CharDriverState *radio = uart_hci_init(
747
                    omap2_gpio_in_get(s->cpu->gpif,
748
                            N8X0_BT_HOST_WKUP_GPIO)[0]);
749

  
750
    omap2_gpio_out_set(s->cpu->gpif, N8X0_BT_RESET_GPIO,
751
                    csrhci_pins_get(radio)[csrhci_pin_reset]);
752
    omap2_gpio_out_set(s->cpu->gpif, N8X0_BT_WKUP_GPIO,
753
                    csrhci_pins_get(radio)[csrhci_pin_wakeup]);
754

  
755
    omap_uart_attach(s->cpu->uart[BT_UART], radio);
756
}
757

  
744 758
static void n8x0_usb_power_cb(void *opaque, int line, int level)
745 759
{
746 760
    struct n800_s *s = opaque;
......
1306 1320
    n8x0_spi_setup(s);
1307 1321
    n8x0_dss_setup(s, ds);
1308 1322
    n8x0_cbus_setup(s);
1323
    n8x0_uart_setup(s);
1309 1324
    if (usb_enabled)
1310 1325
        n8x0_usb_setup(s);
1311 1326

  

Also available in: Unified diff