···642642 select SERIAL_CORE_CONSOLE643643644644config SERIAL_SH_SCI645645- tristate "SH SCI(F) serial port support"645645+ tristate "SuperH SCI(F) serial port support"646646 depends on SUPERH || H8300647647 select SERIAL_CORE648648649649+config SERIAL_SH_SCI_NR_UARTS650650+ int "Maximum number of SCI(F) serial ports"651651+ depends on SERIAL_SH_SCI652652+ default "2"653653+649654config SERIAL_SH_SCI_CONSOLE650650- bool "Support for console on SH SCI(F)"655655+ bool "Support for console on SuperH SCI(F)"651656 depends on SERIAL_SH_SCI=y652657 select SERIAL_CORE_CONSOLE653658
+34
include/asm-sh/sci.h
···11+#ifndef __ASM_SH_SCI_H22+#define __ASM_SH_SCI_H33+44+#include <linux/serial_core.h>55+66+/*77+ * Generic header for SuperH SCI(F)88+ *99+ * Do not place SH-specific parts in here, sh64 and h8300 depend on this too.1010+ */1111+1212+/* Offsets into the sci_port->irqs array */1313+enum {1414+ SCIx_ERI_IRQ,1515+ SCIx_RXI_IRQ,1616+ SCIx_TXI_IRQ,1717+ SCIx_BRI_IRQ,1818+ SCIx_NR_IRQS,1919+};2020+2121+/*2222+ * Platform device specific platform_data struct2323+ */2424+struct plat_sci_port {2525+ void __iomem *membase; /* io cookie */2626+ unsigned long mapbase; /* resource base */2727+ unsigned int irqs[SCIx_NR_IRQS]; /* ERI, RXI, TXI, BRI */2828+ unsigned int type; /* SCI / SCIF / IRDA */2929+ upf_t flags; /* UPF_* flags */3030+};3131+3232+int early_sci_setup(struct uart_port *port);3333+3434+#endif /* __ASM_SH_SCI_H */