diff options
author | luhua.xu <luhua.xu@mediatek.com> | 2019-09-11 12:55:30 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-09-13 12:40:37 +0300 |
commit | 2c231e0ab638519759c9a7203ecced0aa457c6c3 (patch) | |
tree | f76923ed29ac28c89c2c61c679b7d8ec9c9ee511 /drivers/spi | |
parent | 7359d108d44b823d5da049ee12302125a08f2216 (diff) | |
download | linux-2c231e0ab638519759c9a7203ecced0aa457c6c3.tar.xz |
spi: mediatek: add spi support for mt6765 IC
This patch add spi support for mt6765 IC.
Signed-off-by: luhua.xu <luhua.xu@mediatek.com>
Link: https://lore.kernel.org/r/1568195731-3239-3-git-send-email-luhua.xu@mediatek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi-mt65xx.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/spi/spi-mt65xx.c b/drivers/spi/spi-mt65xx.c index 1f5f716016a2..c70911e2a6e1 100644 --- a/drivers/spi/spi-mt65xx.c +++ b/drivers/spi/spi-mt65xx.c @@ -102,6 +102,12 @@ static const struct mtk_spi_compatible mt2712_compat = { .must_tx = true, }; +static const struct mtk_spi_compatible mt6765_compat = { + .need_pad_sel = true, + .must_tx = true, + .enhance_timing = true, +}; + static const struct mtk_spi_compatible mt7622_compat = { .must_tx = true, .enhance_timing = true, @@ -137,6 +143,9 @@ static const struct of_device_id mtk_spi_of_match[] = { { .compatible = "mediatek,mt6589-spi", .data = (void *)&mtk_common_compat, }, + { .compatible = "mediatek,mt6765-spi", + .data = (void *)&mt6765_compat, + }, { .compatible = "mediatek,mt7622-spi", .data = (void *)&mt7622_compat, }, |