# Re: \[PATCH v5 3/8\] clk: tegra: Implement Tegra210 EMC clock

- From: Dmitry Osipenko \<digetx@gmail.com\>
- Date: 2020-03-10 16:26:35 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2020/03/8177650
- Thread: https://ratatoskr.run/linux-devicetree/2020/03/8177638/t.md

```text
10.03.2020 18:19, Thierry Reding пишет:
> From: Joseph Lo <redacted>
> 
> The EMC clock needs to carefully coordinate with the EMC controller
> programming to make sure external memory can be properly clocked. Do so
> by hooking up the EMC clock with an EMC provider that will specify which
> rates are supported by the EMC and provide a callback to use for setting
> the clock rate at the EMC.
> 
> Based on work by Peter De Schrijver [ref].
> 
> Signed-off-by: Joseph Lo <redacted>
> Signed-off-by: Thierry Reding <redacted>
> ---
> Changes in v5:
> - major rework and cleanup

...

> +u32 emc_readl(struct tegra_emc *emc, unsigned long offset)
> +{
> +	return readl_relaxed(emc->emc_base[REG_EMC] + offset);
> +}

static u32 emc_readl()

> +u32 emc_readl_per_ch(struct tegra_emc *emc, int type,
> +			    unsigned long offset)

static u32 emc_readl_per_ch()

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
```
