memory: tegra: Add EMC frequency debugfs entry
authorMikko Perttunen <mperttunen@nvidia.com>
Thu, 12 Mar 2015 14:48:06 +0000 (15:48 +0100)
committerThierry Reding <treding@nvidia.com>
Tue, 5 May 2015 09:39:48 +0000 (11:39 +0200)
commit9c77a81f215bfeee8f96c50c8ab27dbebffec80d
treea4249ef84e5da6a23c907b4e742dd39124ada3ff
parent73a7f0a90641b09300d47308682b674c570dd6a2
memory: tegra: Add EMC frequency debugfs entry

This file in debugfs can be used to get or set the EMC frequency.
Reading the file will return the currently set frequency in Hz, while
writing the file sets the specified frequency rounded to the next
highest frequency supported by the board.

Will be very useful when tuning memory scaling.

Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
[treding@nvidia.com: add "emc" debugfs directory]
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/memory/tegra/tegra124-emc.c