13 #include <linux/serial.h>
14 #include <linux/serial_core.h>
22 return ssb_read32(extif->dev, offset);
27 ssb_write32(extif->dev, offset, value);
34 value |= extif_read32(extif, offset) & ~mask;
35 extif_write32(extif, offset, value);
40 #ifdef CONFIG_SSB_SERIAL
41 static bool serial_exists(
u8 *
regs)
55 int ssb_extif_serial_init(
struct ssb_extif *
extif,
struct ssb_serial_port *ports)
63 for (i = 0; i < 2; i++) {
70 if (serial_exists(uart_regs) && ports) {
76 ports[
i].baud_base = 13500000;
77 ports[
i].reg_shift = 0;