public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v8 0/2] DW SPI: Get clock value from Device Tree
@ 2017-12-28 12:09 Eugeniy Paltsev
  2017-12-28 12:09 ` [U-Boot] [PATCH v8 1/2] SOCFPGA: clock manager: implement dw_spi_get_clk function Eugeniy Paltsev
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Eugeniy Paltsev @ 2017-12-28 12:09 UTC (permalink / raw)
  To: u-boot

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(-)

-- 
2.9.3

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-01-26  5:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-28 12:09 [U-Boot] [PATCH v8 0/2] DW SPI: Get clock value from Device Tree Eugeniy Paltsev
2017-12-28 12:09 ` [U-Boot] [PATCH v8 1/2] SOCFPGA: clock manager: implement dw_spi_get_clk function Eugeniy Paltsev
2017-12-28 12:09 ` [U-Boot] [PATCH v8 2/2] DW SPI: Get clock value from Device Tree Eugeniy Paltsev
2018-01-19 13:17   ` Eugeniy Paltsev
2018-01-25 12:45     ` Alexey Brodkin
2018-01-25 13:07       ` Jagan Teki
2018-01-25 16:31         ` Tom Rini
2018-01-26  5:57           ` Jagan Teki
2017-12-28 12:18 ` [U-Boot] [PATCH v8 0/2] " Marek Vasut

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox