Commit d78ecc733988d07a87c97f7f1c19171c437a8712
Committed by
Heiko Schocher
1 parent
173ec35191
Exists in
smarc_8mq_lf_v2020.04
and in
11 other branches
mvebu: turris_omnia: add note about i2c slave disable
Code that disables the i2c slave is now in the mvtwsi i2c driver. Platform must enable DM_I2C to use that code. Add a comment in the code as a reminder for the planned DM_I2C migration of Turris Omnia. Reviewed-by: Heiko Schocher <hs@denx.de> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Showing 1 changed file with 5 additions and 1 deletions Side-by-side Diff
board/CZ.NIC/turris_omnia/turris_omnia.c
... | ... | @@ -321,7 +321,11 @@ |
321 | 321 | writel(OMNIA_GPP_OUT_ENA_LOW, MVEBU_GPIO0_BASE + 0x04); |
322 | 322 | writel(OMNIA_GPP_OUT_ENA_MID, MVEBU_GPIO1_BASE + 0x04); |
323 | 323 | |
324 | - /* Disable I2C debug mode blocking 0x64 I2C address */ | |
324 | + /* | |
325 | + * Disable I2C debug mode blocking 0x64 I2C address. | |
326 | + * Note: that would be redundant once Turris Omnia migrates to DM_I2C, | |
327 | + * because the mvtwsi driver includes equivalent code. | |
328 | + */ | |
325 | 329 | i2c_debug_reg = readl(MVEBU_TWSI_BASE + MVTWSI_ARMADA_DEBUG_REG); |
326 | 330 | i2c_debug_reg &= ~(1<<18); |
327 | 331 | writel(i2c_debug_reg, MVEBU_TWSI_BASE + MVTWSI_ARMADA_DEBUG_REG); |