aboutsummaryrefslogtreecommitdiff
path: root/drivers/i2c/mvtwsi.c
diff options
context:
space:
mode:
authorJernej Skrabec <jernej.skrabec@siol.net>2021-01-11 21:11:36 +0100
committerAndre Przywara <andre.przywara@arm.com>2021-01-25 21:52:00 +0000
commitb296800203da1aafb5057359845d45f01b5895de (patch)
treeb25d6cfbdc4ab7b35947a5545e284d1fbd7446c9 /drivers/i2c/mvtwsi.c
parentaaebb900c60c12110f6dd2ae5ec3dc83984f8a18 (diff)
downloadu-boot-b296800203da1aafb5057359845d45f01b5895de.zip
u-boot-b296800203da1aafb5057359845d45f01b5895de.tar.gz
u-boot-b296800203da1aafb5057359845d45f01b5895de.tar.bz2
i2c: mvtwsi: sunxi: update macro
While currently none of the newer Allwinner SoCs currently has I2C support implemented in U-Boot, this will change soon. mvtwsi driver is good as it is for them except one macro. Update it to be ready once I2C support lands for those SoCs. Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net> Reviewed-by: Heiko Schocher <hs@denx.de> Reviewed-by: Samuel Holland <samuel@sholland.org> Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Diffstat (limited to 'drivers/i2c/mvtwsi.c')
-rw-r--r--drivers/i2c/mvtwsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/mvtwsi.c b/drivers/i2c/mvtwsi.c
index a4d59b6..37b1a06 100644
--- a/drivers/i2c/mvtwsi.c
+++ b/drivers/i2c/mvtwsi.c
@@ -121,7 +121,7 @@ enum mvtwsi_ctrl_register_fields {
* on other platforms, it is a normal r/w bit, which is cleared by writing 0.
*/
-#ifdef CONFIG_SUNXI_GEN_SUN6I
+#if defined(CONFIG_SUNXI_GEN_SUN6I) || defined(CONFIG_SUN50I_GEN_H6)
#define MVTWSI_CONTROL_CLEAR_IFLG 0x00000008
#else
#define MVTWSI_CONTROL_CLEAR_IFLG 0x00000000