[U-Boot] [PATCH v4 1/7] rockchip: clk: rk3399: add clock support for SCLK_SPI1 and SCLK_SPI5

Simon Glass sjg at chromium.org
Thu Apr 20 21:05:40 UTC 2017


On 20 April 2017 at 14:05, Philipp Tomsich
<philipp.tomsich at theobroma-systems.com> wrote:
> This change adds support for configuring the module clocks for SPI1 and
> SPI5 from the 594MHz GPLL.
>
> Note that the driver (rk_spi.c) always sets this to 99MHz, but the
> implemented functionality is more general and will also support
> different clock configurations.
>
> X-AffectedPlatforms: RK3399-Q7
> Signed-off-by: Philipp Tomsich <philipp.tomsich at theobroma-systems.com>
> Tested-by: Jakob Unterwurzacher <jakob.unterwurzacher at theobroma-systems.com>
> Tested-by: Klaus Goger <klaus.goger at theobroma-systems.com>
> Acked-by: Simon Glass <sjg at chromium.org>
>
> ---
>
> Changes in v4: None
> Changes in v3:
> - replaced macro-pasting with a lookup table to improve readability
>   (as suggested by Simon)
>
> Changes in v2:
> - fixes a wrong macro usage, which caused the SPI module input clock
>   frequency to be significantly higher than intended
> - frequencies have now been validated using an oscilloscope (keep in mind
>   that all frequencies are derived from a 99MHz module input clock) at the
>   following measurement points (assuming the other fix for the usage of
>   DIV_RATE from the series):
>     *  1 MHz ...  0.99 MHz
>     *  5 MHz ...  4.95 MHz
>     * 10 MHz ...  9.9  MHz
>     * 30 MHz ... 33    MHz
>     * 50 MHz ... 49.5  MHz
>
>  drivers/clk/rockchip/clk_rk3399.c | 112 ++++++++++++++++++++++++++++++++++++--
>  1 file changed, 106 insertions(+), 6 deletions(-)
>

Applied to u-boot-rockchip/next, thanks!


More information about the U-Boot mailing list