i2c: at91: fix clk_offset for sam9x60
authorEugen Hristev <eugen.hristev@microchip.com>
Mon, 9 Dec 2019 10:20:02 +0000 (10:20 +0000)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 6 Jan 2020 14:31:26 +0000 (15:31 +0100)
commitb7169a57982383a81d4227712c894e6ec2516e8c
tree22060eee98b66b902181dc12fd9ecb7d30acab12
parentc79f46a282390e0f5b306007bf7b11a46d529538
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: b00277923743 ("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>
drivers/i2c/busses/i2c-at91-core.c