Skip to content

Commit b7169a5

Browse files
ehristevWolfram Sang
authored andcommitted
i2c: at91: fix clk_offset for sam9x60
In SAM9X60 datasheet, FLEX_TWI_CWGR register description mentions clock offset of 3 cycles (compared to 4 in eg. SAMA5D3). This is the same offset as in SAMA5D2. Fixes: b002779 ("i2c: at91: add new platform support for sam9x60") Suggested-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com> Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com> Acked-by: Ludovic Desroches <ludovic.desroches@microchip.com> Reviewed-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
1 parent c79f46a commit b7169a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/i2c/busses/i2c-at91-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ static struct at91_twi_pdata sama5d2_config = {
174174

175175
static struct at91_twi_pdata sam9x60_config = {
176176
.clk_max_div = 7,
177-
.clk_offset = 4,
177+
.clk_offset = 3,
178178
.has_unre_flag = true,
179179
.has_alt_cmd = true,
180180
.has_hold_field = true,

0 commit comments

Comments
 (0)