mediatek: fix, clean and unify SD card image generation
[openwrt/staging/dangole.git] / target / linux / mediatek / patches-5.15 / 803-i2c-busses-add-mt7986-support.patch
1 --- a/drivers/i2c/busses/i2c-mt65xx.c
2 +++ b/drivers/i2c/busses/i2c-mt65xx.c
3 @@ -365,6 +365,19 @@ static const struct mtk_i2c_compatible m
4 .max_dma_support = 32,
5 };
6
7 +static const struct mtk_i2c_compatible mt7986_compat = {
8 + .quirks = &mt7622_i2c_quirks,
9 + .regs = mt_i2c_regs_v1,
10 + .pmic_i2c = 0,
11 + .dcm = 1,
12 + .auto_restart = 1,
13 + .aux_len_reg = 1,
14 + .max_dma_support = 32,
15 + .timing_adjust = 0,
16 + .dma_sync = 1,
17 + .ltiming_adjust = 0,
18 +};
19 +
20 static const struct mtk_i2c_compatible mt8173_compat = {
21 .regs = mt_i2c_regs_v1,
22 .pmic_i2c = 0,
23 @@ -411,6 +424,7 @@ static const struct of_device_id mtk_i2c
24 { .compatible = "mediatek,mt6577-i2c", .data = &mt6577_compat },
25 { .compatible = "mediatek,mt6589-i2c", .data = &mt6589_compat },
26 { .compatible = "mediatek,mt7622-i2c", .data = &mt7622_compat },
27 + { .compatible = "mediatek,mt7986-i2c", .data = &mt7986_compat },
28 { .compatible = "mediatek,mt8173-i2c", .data = &mt8173_compat },
29 { .compatible = "mediatek,mt8183-i2c", .data = &mt8183_compat },
30 { .compatible = "mediatek,mt8192-i2c", .data = &mt8192_compat },