summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-davinci/da8xx-dt.c
diff options
context:
space:
mode:
authorBartosz Golaszewski2017-01-30 11:02:03 +0100
committerSekhar Nori2017-01-31 16:18:24 +0100
commit00bacfbfaf508940fd5fba22372a0935c4a01358 (patch)
tree7eff288b50a24f01e7ccd22f828c51d843490480 /arch/arm/mach-davinci/da8xx-dt.c
parentARM: davinci: da850: add con_id for the SATA clock (diff)
downloadkernel-qcow2-linux-00bacfbfaf508940fd5fba22372a0935c4a01358.tar.gz
kernel-qcow2-linux-00bacfbfaf508940fd5fba22372a0935c4a01358.tar.xz
kernel-qcow2-linux-00bacfbfaf508940fd5fba22372a0935c4a01358.zip
ARM: davinci: da850: model the SATA refclk
Register a fixed rate clock modelling the external SATA oscillator for da850 (both DT and board file mode). Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Diffstat (limited to 'arch/arm/mach-davinci/da8xx-dt.c')
-rw-r--r--arch/arm/mach-davinci/da8xx-dt.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/da8xx-dt.c b/arch/arm/mach-davinci/da8xx-dt.c
index 62c3d5174d4a..071933b16a0c 100644
--- a/arch/arm/mach-davinci/da8xx-dt.c
+++ b/arch/arm/mach-davinci/da8xx-dt.c
@@ -50,6 +50,9 @@ static struct of_dev_auxdata da850_auxdata_lookup[] __initdata = {
static void __init da850_init_machine(void)
{
+ /* All existing boards use 100MHz SATA refclkpn */
+ static const unsigned long sata_refclkpn = 100 * 1000 * 1000;
+
int ret;
ret = da8xx_register_usb20_phy_clk(false);
@@ -61,6 +64,11 @@ static void __init da850_init_machine(void)
pr_warn("%s: registering USB 1.1 PHY clock failed: %d",
__func__, ret);
+ ret = da850_register_sata_refclk(sata_refclkpn);
+ if (ret)
+ pr_warn("%s: registering SATA REFCLK failed: %d",
+ __func__, ret);
+
of_platform_default_populate(NULL, da850_auxdata_lookup, NULL);
davinci_pm_init();
pdata_quirks_init();