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

2017-12-12 Thread Simon Glass
On 11 December 2017 at 09:41, Marek Vasut wrote: > On 12/11/2017 05:37 PM, Eugeniy Paltsev wrote: >> On Mon, 2017-12-11 at 17:21 +0100, Marek Vasut wrote: >>> On 12/11/2017 05:18 PM, Eugeniy Paltsev wrote: Add option to set spi controller clock frequency via device tree using standard cl

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

2017-12-12 Thread Eugeniy Paltsev
On Mon, 2017-12-11 at 17:41 +0100, Marek Vasut wrote: > On 12/11/2017 05:37 PM, Eugeniy Paltsev wrote: > > On Mon, 2017-12-11 at 17:21 +0100, Marek Vasut wrote: > > > On 12/11/2017 05:18 PM, Eugeniy Paltsev wrote: > > > > Add option to set spi controller clock frequency via device tree > > > > usin

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

2017-12-11 Thread Marek Vasut
On 12/11/2017 05:37 PM, Eugeniy Paltsev wrote: > On Mon, 2017-12-11 at 17:21 +0100, Marek Vasut wrote: >> On 12/11/2017 05:18 PM, Eugeniy Paltsev wrote: >>> Add option to set spi controller clock frequency via device tree >>> using standard clock bindings. >>> >>> Define dw_spi_get_clk function as

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

2017-12-11 Thread Eugeniy Paltsev
On Mon, 2017-12-11 at 17:21 +0100, Marek Vasut wrote: > On 12/11/2017 05:18 PM, Eugeniy Paltsev wrote: > > 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

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

2017-12-11 Thread Marek Vasut
On 12/11/2017 05:18 PM, Eugeniy Paltsev wrote: > 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_

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

2017-12-11 Thread Eugeniy Paltsev
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