[U-Boot] [PATCH v8 0/2] DW SPI: Get clock value from Device Tree

Marek Vasut marex at denx.de
Thu Dec 28 12:18:11 UTC 2017


On 12/28/2017 01:09 PM, Eugeniy Paltsev wrote:
> As discussed with Marek during the LINUX-PITER here is v* patch:
> 
> Add option to set spi controller clock frequency via device tree
> using standard clock bindings.
> 
> Define dw_spi_get_clk function as 'weak' as some targets
> (like SOCFPGA_GEN5 and SOCFPGA_ARRIA10) don't use standard clock API
> and implement dw_spi_get_clk their own way in their clock manager.
> 
> Get rid of clock_manager.h include in designware_spi.c as we don't use
> cm_get_spi_controller_clk_hz function anymore - we use redefined
> dw_spi_get_clk in SOCFPGA clock managers (clock_manager_gen5.c and
> clock_manager_arria10.c) instead.
> 
> Changes v7->v8:
>   * Fix typo in comments.
> 
> Changes v6->v7:
>   * Cleanup error handling.
>   * Don't free clock after we successfully requeste it.
> 
> Changes v5->v6:
>   * Put the clock handle into the private data
> 
> Changes v4->v5:
>   * Get rid of usless ifdef in dw_spi_get_clk function
> 
> Eugeniy Paltsev (2):
>   SOCFPGA: clock manager: implement dw_spi_get_clk function
>   DW SPI: Get clock value from Device Tree
> 
>  arch/arm/mach-socfpga/clock_manager_arria10.c |  9 +++++
>  arch/arm/mach-socfpga/clock_manager_gen5.c    |  9 +++++
>  drivers/spi/designware_spi.c                  | 47 +++++++++++++++++++++++++--
>  3 files changed, 63 insertions(+), 2 deletions(-)
> 

Thanks for keeping it up ! And I hope this ends up in after 2018.01 :-)
Please keep an eye on these patches and poke in case these patches
aren't in after 2018.01 is out ...

btw it was nice talking during Piter, I hope to come back next year too!

-- 
Best regards,
Marek Vasut


More information about the U-Boot mailing list