From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tan, Ley Foon Date: Mon, 23 Dec 2019 08:15:55 +0000 Subject: [PATCH 01/12] i2c: designware_i2c: Add more registers In-Reply-To: <20191221161525.27976-2-sjg@chromium.org> References: <20191221161525.27976-1-sjg@chromium.org> <20191221161525.27976-2-sjg@chromium.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > -----Original Message----- > From: Simon Glass > Sent: Sunday, December 22, 2019 12:15 AM > To: U-Boot Mailing List > Cc: Jun Chen ; Heiko Schocher ; Tan, > Ley Foon ; Simon Glass > Subject: [PATCH 01/12] i2c: designware_i2c: Add more registers > > Some versions of this peripherals previde more control of the bus behaviour. > Add definitions for these registers. > > Signed-off-by: Simon Glass Typo for 'previde' in commit message. Reviewed-by: Ley Foon Tan > --- > > drivers/i2c/designware_i2c.h | 13 ++++++++++++- > 1 file changed, 12 insertions(+), 1 deletion(-) > > diff --git a/drivers/i2c/designware_i2c.h b/drivers/i2c/designware_i2c.h > index 48766d0806..d359c8c3f8 100644 > --- a/drivers/i2c/designware_i2c.h > +++ b/drivers/i2c/designware_i2c.h > @@ -43,8 +43,19 @@ 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; > + u32 comp_param1; > + u32 comp_version; > + u32 comp_type; > }; > > #if !defined(IC_CLK) > -- > 2.24.1.735.g03f4e72817-goog