diff options
author | Leilk Liu <leilk.liu@mediatek.com> | 2021-03-22 08:52:44 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-03-23 20:19:45 +0300 |
commit | 1527b09bc80018f02fe0b6d14e97c95f93596221 (patch) | |
tree | 7fe8a335c550302041a5d7efa231d8aa9163f361 /drivers/spi/spi-slave-mt27xx.c | |
parent | d666a833b0b9f5b8e08ecdc002a4cf5d34932b7a (diff) | |
download | linux-1527b09bc80018f02fe0b6d14e97c95f93596221.tar.xz |
spi: mediatek: add mt8195 spi slave support
this patch adds mt8195 spi slave compatible support.
Signed-off-by: Leilk Liu <leilk.liu@mediatek.com>
Link: https://lore.kernel.org/r/20210322055244.30179-5-leilk.liu@mediatek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-slave-mt27xx.c')
-rw-r--r-- | drivers/spi/spi-slave-mt27xx.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/spi/spi-slave-mt27xx.c b/drivers/spi/spi-slave-mt27xx.c index 7e6fadc88cef..f199a6c4738a 100644 --- a/drivers/spi/spi-slave-mt27xx.c +++ b/drivers/spi/spi-slave-mt27xx.c @@ -77,12 +77,20 @@ struct mtk_spi_compatible { const u32 max_fifo_size; bool must_rx; }; + static const struct mtk_spi_compatible mt2712_compat = { .max_fifo_size = 512, }; +static const struct mtk_spi_compatible mt8195_compat = { + .max_fifo_size = 128, + .must_rx = true, +}; + static const struct of_device_id mtk_spi_slave_of_match[] = { { .compatible = "mediatek,mt2712-spi-slave", .data = (void *)&mt2712_compat,}, + { .compatible = "mediatek,mt8195-spi-slave", + .data = (void *)&mt8195_compat,}, {} }; MODULE_DEVICE_TABLE(of, mtk_spi_slave_of_match); |