/* * IP Cores Z025 and Z057 can have up to 4 UART * The UARTs available are stored in a global * register saved in physical address + 0x40 * Is saved as follows: * * 7 0 * +------+-------+-------+-------+-------+-------+-------+-------+ * |UART4 | UART3 | UART2 | UART1 | U4irq | U3irq | U2irq | U1irq | * +------+-------+-------+-------+-------+-------+-------+-------+
*/ #define MEN_UART1_MASK 0x01 #define MEN_UART2_MASK 0x02 #define MEN_UART3_MASK 0x04 #define MEN_UART4_MASK 0x08
struct serial_8250_men_mcb_data { int num_ports; int line[MAX_PORTS]; unsignedint offset[MAX_PORTS];
};
/* * The Z125 16550-compatible UART has no fixed base clock assigned * So, depending on the board we're on, we need to adjust the * parameter in order to really set the correct baudrate, and * do so if possible without user interaction
*/ static u32 men_lookup_uartclk(struct mcb_device *mdev)
{ /* use default value if board is not available below */
u32 clkval = 1041666;
/* ok, register the port */
res = serial8250_register_8250_port(&uart); if (res < 0) {
dev_err(&mdev->dev, "unable to register UART port\n"); return res;
}
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.11Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.
(vorverarbeitet am 2026-06-07)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.