mtd: spi: renesas: Extract strobe delay setting code into separate function
authorHai Pham <hai.pham.ud@renesas.com>
Mon, 16 Aug 2021 02:26:36 +0000 (09:26 +0700)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Sat, 10 Jun 2023 09:50:45 +0000 (11:50 +0200)
commit49096f9924a7ec94e16a9736254f6fa752779dcb
treeffa7f4c2972b02fe128a3939b7f5a53cc8ebcc3a
parent5f41ef792c307dedc12647cdde2ade273aa11805
mtd: spi: renesas: Extract strobe delay setting code into separate function

Move strobe delay setting code into extra function and reflect the latest
setting in datasheet (R-Car Gen3 v2.20, R-Car V3U v0.50).
i.e. STRTIM[2:0] should be set to 110 (RCar M3-W) or 111 (Other products)

This is also a preparation for new R-Car Gen4 SoC which has 4-bits STRTIM

Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Signed-off-by: Hai Pham <hai.pham.ud@renesas.com>
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org> # Fix for RZ/A1
drivers/spi/renesas_rpc_spi.c