]> git.sur5r.net Git - u-boot/commitdiff
rockchip: spi: enable support for the rk_spi driver for the RK3399
authorJakob Unterwurzacher <jakob.unterwurzacher@theobroma-systems.com>
Thu, 20 Apr 2017 20:05:54 +0000 (22:05 +0200)
committerSimon Glass <sjg@chromium.org>
Wed, 10 May 2017 19:37:21 +0000 (13:37 -0600)
The existing Rockchip SPI (rk_spi.c) driver also matches the hardware
block found in the RK3399.  This has been confirmed both with SPI NOR
flashes and general SPI transfers on the RK3399-Q7 for SPI1 and SPI5.

This change adds the 'rockchip,rk3399-spi' string to its compatible
list to allow reuse of the existing driver.

X-AffectedPlatforms: RK3399-Q7
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tested-by: Jakob Unterwurzacher <jakob.unterwurzacher@theobroma-systems.com>
Acked-by: Simon Glass <sjg@chromium.org>
drivers/spi/rk_spi.c

index 050eacb27ccd57a76deaaaa80c18657ecc7e4bb5..ea209801a73322ecf80fc967b9dc76d7813960bd 100644 (file)
@@ -444,6 +444,7 @@ static const struct dm_spi_ops rockchip_spi_ops = {
 
 static const struct udevice_id rockchip_spi_ids[] = {
        { .compatible = "rockchip,rk3288-spi" },
+       { .compatible = "rockchip,rk3399-spi" },
        { }
 };