]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
i2c: designware_i2c: Add more registers
authorSimon Glass <sjg@chromium.org>
Thu, 23 Jan 2020 18:48:04 +0000 (11:48 -0700)
committerHeiko Schocher <hs@denx.de>
Mon, 27 Jan 2020 06:18:17 +0000 (07:18 +0100)
Some versions of this peripherals provide more control of the bus
behaviour. Add definitions for these registers.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Ley Foon Tan <ley.foon.tan@intel.com>
Reviewed-by: Jun Chen <ptchentw@gmail.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
drivers/i2c/designware_i2c.h

index 48766d080671db7d3749e6e0555af191facaf015..3b407d2bede86b5a0c57666a539cff7cfa0ea766 100644 (file)
@@ -43,8 +43,20 @@ struct i2c_regs {
        u32 ic_rxflr;           /* 0x78 */
        u32 ic_sda_hold;        /* 0x7c */
        u32 ic_tx_abrt_source;  /* 0x80 */
-       u8 res1[0x18];          /* 0x84 */
+       u32 slv_data_nak_only;
+       u32 dma_cr;
+       u32 dma_tdlr;
+       u32 dma_rdlr;
+       u32 sda_setup;
+       u32 ack_general_call;
        u32 ic_enable_status;   /* 0x9c */
+       u32 fs_spklen;
+       u32 hs_spklen;
+       u32 clr_restart_det;
+       u8 reserved[0xf4 - 0xac];
+       u32 comp_param1;        /* 0xf4 */
+       u32 comp_version;
+       u32 comp_type;
 };
 
 #if !defined(IC_CLK)