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

As discussed with Marek during the LINUX-PITER here is v4 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) fon'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 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] 8+ messages in thread

end of thread, other threads:[~2017-12-13  2:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-11 16:18 [U-Boot] [PATCH v6 0/2] DW SPI: Get clock value from Device Tree Eugeniy Paltsev
2017-12-11 16:18 ` [U-Boot] [PATCH v6 1/2] SOCFPGA: clock manager: implement dw_spi_get_clk function Eugeniy Paltsev
2017-12-11 16:18 ` [U-Boot] [PATCH v6 2/2] DW SPI: Get clock value from Device Tree Eugeniy Paltsev
2017-12-11 16:21   ` Marek Vasut
2017-12-11 16:37     ` Eugeniy Paltsev
2017-12-11 16:41       ` Marek Vasut
2017-12-12 14:30         ` Eugeniy Paltsev
2017-12-13  2:18         ` Simon Glass

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