build/patch/kernel/archive/rockchip-6.2/2013-spi-Added-support-for-Tinkerboard-s-SPI-interface.patch

21 lines
777 B
Diff
Raw Normal View History

diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c
index b2775d82d2d..555dd3cb7d7 100644
--- a/drivers/spi/spidev.c
+++ b/drivers/spi/spidev.c
@@ -691,6 +691,7 @@ static const struct spi_device_id spidev_spi_ids[] = {
{ .name = "m53cpld" },
{ .name = "spi-petra" },
{ .name = "spi-authenta" },
+ { .name = "spi_tinker" },
{},
};
MODULE_DEVICE_TABLE(spi, spidev_spi_ids);
@@ -717,6 +718,7 @@ static const struct of_device_id spidev_dt_ids[] = {
{ .compatible = "menlo,m53cpld", .data = &spidev_of_check },
{ .compatible = "cisco,spi-petra", .data = &spidev_of_check },
{ .compatible = "micron,spi-authenta", .data = &spidev_of_check },
+ { .compatible = "rockchip,spi_tinker", .data = &spidev_of_check },
{},
};
MODULE_DEVICE_TABLE(of, spidev_dt_ids);