]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: spi: renesas: Configure RPC PHY timing registers
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sat, 31 Aug 2024 20:31:47 +0000 (22:31 +0200)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 8 Sep 2024 23:10:33 +0000 (01:10 +0200)
commitd5162463243da66b27ac7ea96fcffb5da4c9a639
treee515fe6a1e4504870fc11c6cc3c6fa1251f81b11
parentc90795076b30c33a95bcaf6d89979543d31fdde1
mtd: spi: renesas: Configure RPC PHY timing registers

Make sure RPC PHY timing registers are configured before performing
bus access. These registers might have been left unconfigured or may
have been configured by a prior stage bootloader and leaving them
unconfigured or misconfigured would interfere with U-Boot operation.

Set PHYOFFSET1 DDRTMG field to 3 which enables DDR timing adjustment
when SPIDRE or DRDRE = 0 and set PHYOFFSET2 OCTTMG field to 4 which
makes the interface operate in Serial flash or HyperFlash mode.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
drivers/spi/renesas_rpc_spi.c