arm64: tegra: Let the EMC hardware use the EMC clock
authorThierry Reding <treding@nvidia.com>
Sun, 22 Dec 2019 11:39:19 +0000 (12:39 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 9 Jan 2020 18:06:39 +0000 (19:06 +0100)
The EMC hardware block needs access to the EMC clock in order to scale
the external memory frequency. Add the clocks property so that drivers
for the EMC can acquire a reference to the EMC clock.

Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm64/boot/dts/nvidia/tegra132.dtsi

index 631a7f77c38696f9d4e29e99a22c3ffeac7445fc..a2c25176710ac671764362322a2dc71402d37661 100644 (file)
        emc: emc@7001b000 {
                compatible = "nvidia,tegra132-emc", "nvidia,tegra124-emc";
                reg = <0x0 0x7001b000 0x0 0x1000>;
+               clocks = <&tegra_car TEGRA124_CLK_EMC>;
+               clock-names = "emc";
 
                nvidia,memory-controller = <&mc>;
        };