[U-Boot] [PATCH 2/4] ARM: zynq: Remove spi-max-frequency
Moritz Fischer
moritz.fischer at ettus.com
Fri Dec 16 18:28:20 CET 2016
Hi Michal,
On Fri, Dec 16, 2016 at 5:38 AM, Michal Simek <michal.simek at xilinx.com> wrote:
> spi-max-frequency for spi bus depends on devices which are
> connected to it. Remove this parameter from dtsi file.
>
> Signed-off-by: Michal Simek <michal.simek at xilinx.com>
> ---
>
> arch/arm/dts/zynq-7000.dtsi | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/arch/arm/dts/zynq-7000.dtsi b/arch/arm/dts/zynq-7000.dtsi
> index 668f54ec219d..fa9ee276cb59 100644
> --- a/arch/arm/dts/zynq-7000.dtsi
> +++ b/arch/arm/dts/zynq-7000.dtsi
> @@ -177,7 +177,6 @@
> interrupts = <0 26 4>;
> clocks = <&clkc 25>, <&clkc 34>;
> clock-names = "ref_clk", "pclk";
> - spi-max-frequency = <166666700>;
> #address-cells = <1>;
> #size-cells = <0>;
> };
> @@ -190,7 +189,6 @@
> interrupts = <0 49 4>;
> clocks = <&clkc 26>, <&clkc 35>;
> clock-names = "ref_clk", "pclk";
> - spi-max-frequency = <166666700>;
> #address-cells = <1>;
> #size-cells = <0>;
> };
> --
> 1.9.1
>
While I agree with the patch, doesn't the drivers/spi/zynq_spi.c in u-boot
(wrongly) use this to determine it's peripheral clock speed?
<snip>
plat->frequency = fdtdec_get_int(blob, node, "spi-max-frequency",
250000000);
</snip>
and later in zynq_spi_set_speed() to calculate divisors?
Cheers,
Moritz
More information about the U-Boot
mailing list