diff options
author | Guochun Mao <guochun.mao@mediatek.com> | 2022-01-18 15:28:19 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-01-24 14:32:11 +0100 |
commit | 4e8bfe5cdf77621cb4e7b196448ceeff20d9d6a6 (patch) | |
tree | e1eba3a9d3410d4076e58fcf7038b842cb876dfe /drivers/spi | |
parent | spi: spi-mtk-nor: improve device table for adding more capabilities (diff) | |
download | linux-4e8bfe5cdf77621cb4e7b196448ceeff20d9d6a6.tar.xz linux-4e8bfe5cdf77621cb4e7b196448ceeff20d9d6a6.zip |
spi: spi-mtk-nor: add new soc mt8186 support
Add compatible mediatek,mt8186-nor implementation.
Signed-off-by: Guochun Mao <guochun.mao@mediatek.com>
Signed-off-by: Zhen Zhang <zhen.zhang@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20220118142820.2729-4-guochun.mao@mediatek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi-mtk-nor.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/spi/spi-mtk-nor.c b/drivers/spi/spi-mtk-nor.c index f5ff01f61f42..e44fdf7c9e4b 100644 --- a/drivers/spi/spi-mtk-nor.c +++ b/drivers/spi/spi-mtk-nor.c @@ -765,6 +765,11 @@ const struct mtk_nor_caps mtk_nor_caps_mt8173 = { .extra_dummy_bit = 0, }; +const struct mtk_nor_caps mtk_nor_caps_mt8186 = { + .dma_bits = 32, + .extra_dummy_bit = 1, +}; + const struct mtk_nor_caps mtk_nor_caps_mt8192 = { .dma_bits = 36, .extra_dummy_bit = 0, @@ -772,6 +777,7 @@ const struct mtk_nor_caps mtk_nor_caps_mt8192 = { static const struct of_device_id mtk_nor_match[] = { { .compatible = "mediatek,mt8173-nor", .data = &mtk_nor_caps_mt8173 }, + { .compatible = "mediatek,mt8186-nor", .data = &mtk_nor_caps_mt8186 }, { .compatible = "mediatek,mt8192-nor", .data = &mtk_nor_caps_mt8192 }, { /* sentinel */ } }; |