pwm: tegra: Set maximum pwm clock source per SoC tapeout
authorLaxman Dewangan <ldewangan@nvidia.com>
Tue, 2 May 2017 14:05:37 +0000 (19:35 +0530)
committerThierry Reding <thierry.reding@gmail.com>
Tue, 13 Jun 2017 12:30:22 +0000 (14:30 +0200)
commit0527eb372301bfd9b84160adb6c132b443ae3013
treed016dee26d584a2579fd2b20c916cf2a062d3cb5
parent2ea659a9ef488125eb46da6eb571de5eae5c43f6
pwm: tegra: Set maximum pwm clock source per SoC tapeout

The PWM hardware IP is taped-out with different maximum frequency
on different SoCs.

From HW team:

Before Tegra186, it is 48 MHz.
In Tegra186, it is 102 MHz.

Add support to limit the clock source frequency to the maximum IP
supported frequency. Provide these values via SoC chipdata.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Acked-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-tegra.c