Commit a2425e6207d7c75906a15410f4c8c0a5d0519349

Authored by Michal Simek
1 parent 12c9e7d622

serial: Extend structure comments with register offset

This information help with debugging issues with uart.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>

Showing 1 changed file with 6 additions and 6 deletions Side-by-side Diff

drivers/serial/serial_zynq.c
... ... @@ -27,14 +27,14 @@
27 27 #define ZYNQ_UART_MR_PARITY_NONE 0x00000020 /* No parity mode */
28 28  
29 29 struct uart_zynq {
30   - u32 control; /* Control Register [8:0] */
31   - u32 mode; /* Mode Register [10:0] */
  30 + u32 control; /* 0x0 - Control Register [8:0] */
  31 + u32 mode; /* 0x4 - Mode Register [10:0] */
32 32 u32 reserved1[4];
33   - u32 baud_rate_gen; /* Baud Rate Generator [15:0] */
  33 + u32 baud_rate_gen; /* 0x18 - Baud Rate Generator [15:0] */
34 34 u32 reserved2[4];
35   - u32 channel_sts; /* Channel Status [11:0] */
36   - u32 tx_rx_fifo; /* FIFO [15:0] or [7:0] */
37   - u32 baud_rate_divider; /* Baud Rate Divider [7:0] */
  35 + u32 channel_sts; /* 0x2c - Channel Status [11:0] */
  36 + u32 tx_rx_fifo; /* 0x30 - FIFO [15:0] or [7:0] */
  37 + u32 baud_rate_divider; /* 0x34 - Baud Rate Divider [7:0] */
38 38 };
39 39  
40 40 static struct uart_zynq *uart_zynq_ports[2] = {