memory: tegra: Add API needed by the EMC driver
authorMikko Perttunen <mperttunen@nvidia.com>
Thu, 12 Mar 2015 14:48:02 +0000 (15:48 +0100)
committerThierry Reding <treding@nvidia.com>
Tue, 5 May 2015 09:10:19 +0000 (11:10 +0200)
commit3d9dd6fdd23695a038633f1a87aee0708fe4b8e0
treeba3f42569584f9eae8377be535acf160cd070fb0
parent6b22194d5e34f45b71628b7fd0a61e63df9e7dd7
memory: tegra: Add API needed by the EMC driver

The EMC driver needs to know the number of external memory devices and
also needs to update the EMEM configuration based on the new rate of the
memory bus.

To know how to update the EMEM config, looks up the values of the burst
regs in the DT, for a given timing.

Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/memory/tegra/mc.c
drivers/memory/tegra/tegra124.c
include/soc/tegra/mc.h