projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1922a7b
)
ARM: zynq: Add missing i2c get_rate for fixing i2c SPL
author
Hannes Schmelzer
<
[email protected]
>
Thu, 14 Feb 2019 07:54:42 +0000
(08:54 +0100)
committer
Michal Simek
<
[email protected]
>
Tue, 16 Apr 2019 09:51:34 +0000
(11:51 +0200)
The commit '
f48ef0d81aa837a33020f8d61abb3929ba613774
' did break I2C
support because requesting the clock for the I2C ip-block isn't
supported during SPL.
To fixup this we add support requesting clocks for:
- i2c0
- i2c1
Signed-off-by: Hannes Schmelzer <
[email protected]
>
Reviewed-by: Heiko Schocher <
[email protected]
>
Signed-off-by: Michal Simek <
[email protected]
>
drivers/clk/clk_zynq.c
patch
|
blob
|
history
diff --git
a/drivers/clk/clk_zynq.c
b/drivers/clk/clk_zynq.c
index 482f0937cb5a94947e919dedcdca68a29638cac2..b09c37db40f1565ab95bdf3704b739ed6183180e 100644
(file)
--- a/
drivers/clk/clk_zynq.c
+++ b/
drivers/clk/clk_zynq.c
@@
-434,6
+434,8
@@
static ulong zynq_clk_get_rate(struct clk *clk)
case lqspi_clk ... pcap_clk:
case sdio0_clk ... spi1_clk:
return zynq_clk_get_peripheral_rate(priv, id, 0);
+ case i2c0_aper_clk ... i2c1_aper_clk:
+ return zynq_clk_get_cpu_rate(priv, cpu_1x_clk);
default:
return -ENXIO;
}