提交 2aff7226 编写于 作者: H Hannes Schmelzer 提交者: Michal Simek

ARM: zynq: Add missing i2c get_rate for fixing i2c SPL

The commit 'f48ef0d8' 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: NHannes Schmelzer <hannes.schmelzer@br-automation.com>
Reviewed-by: NHeiko Schocher <hs@denx.de>
Signed-off-by: NMichal Simek <michal.simek@xilinx.com>
上级 1922a7b3
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册