]> git.ipfire.org Git - thirdparty/u-boot.git/commit
pci: pcie-rcar-gen4: Add missing 1ms delay after PWR reset assertion
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Wed, 24 Sep 2025 01:47:14 +0000 (03:47 +0200)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Thu, 25 Sep 2025 21:19:17 +0000 (23:19 +0200)
commit19c292a8c5d0e2d0b85279d22643c6a4f6db9139
tree86281a83edae5a7cd49b05ec5d277f91d9a48c84
parent38541b5db5b1de67f5fbab3d9971ac7ba818cb46
pci: pcie-rcar-gen4: Add missing 1ms delay after PWR reset assertion

R-Car V4H Reference Manual R19UH0186EJ0130 Rev.1.30 Apr. 21, 2025 page 585
Figure 9.3.2 Software Reset flow (B) indicates that for peripherals in HSC
domain, after reset has been asserted by writing a matching reset bit into
register SRCR, it is mandatory to wait 1ms.

Because it is the controller driver which can determine whether or not the
controller is in HSC domain based on its compatible string, add the missing
delay into the controller driver.

This 1ms delay is documented on R-Car V4H and V4M, it is currently unclear
whether S4 is affected as well. This patch does apply the extra delay on
R-Car S4 as well.

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