From patchwork Wed Jul 8 21:57:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Krottmayer X-Patchwork-Id: 241072 List-Id: U-Boot discussion From: krjdev at gmail.com (Johannes Krottmayer) Date: Wed, 8 Jul 2020 23:57:39 +0200 Subject: [PATCH 2/3] drivers: spi: rk_spi: Add support for RK3328 In-Reply-To: <20200708215740.28515-1-krjdev@gmail.com> References: <20200708215740.28515-1-krjdev@gmail.com> Message-ID: <20200708215740.28515-3-krjdev@gmail.com> Add support for the RK3328 SPI controller Signed-off-by: Johannes Krottmayer Cc: Kever Yang Cc: Jagan Teki --- I don't know if "rk3399_spi_params" is also required for the RK3328 SPI controller. Probing, Reading, Writing and Erasing of a flash device works with the SF command. Tested it with the PINE64 Rock64 board. drivers/spi/rk_spi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/spi/rk_spi.c b/drivers/spi/rk_spi.c index 833cb04922..0495e04945 100644 --- a/drivers/spi/rk_spi.c +++ b/drivers/spi/rk_spi.c @@ -545,7 +545,9 @@ const struct rockchip_spi_params rk3399_spi_params = { }; static const struct udevice_id rockchip_spi_ids[] = { + { .compatible = "rockchip,rk3066-spi" }, { .compatible = "rockchip,rk3288-spi" }, + { .compatible = "rockchip,rk3328-spi" }, { .compatible = "rockchip,rk3368-spi", .data = (ulong)&rk3399_spi_params }, { .compatible = "rockchip,rk3399-spi",