Loading drivers/clk/qcom/mdss/mdss-dsi-20nm-pll-util.c +5 −5 Original line number Diff line number Diff line /* Copyright (c) 2014, The Linux Foundation. All rights reserved. /* Copyright (c) 2014-2015, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -124,8 +124,8 @@ #define MMSS_DSI_DYNAMIC_REFRESH_PLL_CTRL16 0x054 #define MMSS_DSI_DYNAMIC_REFRESH_PLL_CTRL17 0x058 #define DSI_PLL_POLL_MAX_READS 15 #define DSI_PLL_POLL_TIMEOUT_US 1000 #define DSI_PLL_POLL_DELAY_US 1000 #define DSI_PLL_POLL_TIMEOUT_US 15000 int set_mdss_byte_mux_sel(struct mux_clk *clk, int sel) { Loading Loading @@ -465,7 +465,7 @@ static bool pll_20nm_is_pll_locked(struct mdss_pll_resources *dsi_pll_res) MMSS_DSI_PHY_PLL_RESET_SM), status, ((status & BIT(5)) > 0), DSI_PLL_POLL_MAX_READS, DSI_PLL_POLL_DELAY_US, DSI_PLL_POLL_TIMEOUT_US)) { pr_debug("DSI PLL status=%x failed to Lock\n", status); pll_locked = false; Loading @@ -473,7 +473,7 @@ static bool pll_20nm_is_pll_locked(struct mdss_pll_resources *dsi_pll_res) MMSS_DSI_PHY_PLL_RESET_SM), status, ((status & BIT(6)) > 0), DSI_PLL_POLL_MAX_READS, DSI_PLL_POLL_DELAY_US, DSI_PLL_POLL_TIMEOUT_US)) { pr_debug("DSI PLL status=%x PLl not ready\n", status); pll_locked = false; Loading drivers/clk/qcom/mdss/mdss-dsi-pll-util.c +4 −4 Original line number Diff line number Diff line /* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved. /* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -51,8 +51,8 @@ #define DSI_PHY_PLL_UNIPHY_PLL_EFUSE_CFG (0x009C) #define DSI_PHY_PLL_UNIPHY_PLL_STATUS (0x00C0) #define DSI_PLL_POLL_MAX_READS 10 #define DSI_PLL_POLL_TIMEOUT_US 50 #define DSI_PLL_POLL_DELAY_US 50 #define DSI_PLL_POLL_TIMEOUT_US 500 int set_byte_mux_sel(struct mux_clk *clk, int sel) { Loading Loading @@ -255,7 +255,7 @@ int dsi_pll_lock_status(struct mdss_pll_resources *dsi_pll_res) DSI_PHY_PLL_UNIPHY_PLL_STATUS), status, ((status & BIT(0)) == 1), DSI_PLL_POLL_MAX_READS, DSI_PLL_POLL_DELAY_US, DSI_PLL_POLL_TIMEOUT_US)) { pr_debug("DSI PLL status=%x failed to Lock\n", status); pll_locked = 0; Loading drivers/clk/qcom/mdss/mdss-edp-pll-28hpm.c +4 −4 Original line number Diff line number Diff line /* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved. /* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -54,8 +54,8 @@ #define EDP_PHY_PLL_UNIPHY_PLL_LKDET_CFG0 (0x005C) #define EDP_PHY_PLL_UNIPHY_PLL_LKDET_CFG1 (0x0060) #define EDP_PLL_POLL_MAX_READS 10 #define EDP_PLL_POLL_TIMEOUT_US 50 #define EDP_PLL_POLL_DELAY_US 50 #define EDP_PLL_POLL_TIMEOUT_US 500 static const struct clk_ops edp_mainlink_clk_src_ops; static struct clk_div_ops fixed_5div_ops; /* null ops */ Loading Loading @@ -384,7 +384,7 @@ static int edp_pll_lock_status(struct mdss_pll_resources *edp_pll_res) /* poll for PLL ready status */ if (readl_poll_timeout_atomic((edp_pll_res->pll_base + 0xc0), status, ((status & BIT(0)) == 1), EDP_PLL_POLL_MAX_READS, EDP_PLL_POLL_DELAY_US, EDP_PLL_POLL_TIMEOUT_US)) { pr_debug("EDP PLL status=%x failed to Lock\n", status); pll_locked = 0; Loading drivers/clk/qcom/mdss/mdss-hdmi-pll-20nm.c +5 −5 Original line number Diff line number Diff line /* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved. /* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -385,8 +385,8 @@ #define HDMI_PHY_REVISION_ID2 (0xC4) #define HDMI_PHY_REVISION_ID3 (0xC8) #define HDMI_PLL_POLL_MAX_READS 2500 #define HDMI_PLL_POLL_TIMEOUT_US 50 #define HDMI_PLL_POLL_DELAY_US 50 #define HDMI_PLL_POLL_TIMEOUT_US 125000 #define HDMI_PLL_REF_CLK_RATE 192ULL #define HDMI_PLL_DIVISOR 10000000000ULL #define HDMI_PLL_DIVISOR_32 100000U Loading Loading @@ -414,7 +414,7 @@ static int hdmi_20nm_pll_lock_status(struct mdss_pll_resources *io) if (!readl_poll_timeout_atomic( (io->pll_base + QSERDES_COM_RESET_SM), status, ((status & BIT(6)) == 1), HDMI_PLL_POLL_MAX_READS, HDMI_PLL_POLL_DELAY_US, HDMI_PLL_POLL_TIMEOUT_US)) { pr_debug("%s: C READY\n", __func__); pll_locked = 1; Loading @@ -427,7 +427,7 @@ static int hdmi_20nm_pll_lock_status(struct mdss_pll_resources *io) if (pll_locked && !readl_poll_timeout_atomic( (io->phy_base + HDMI_PHY_STATUS), status, ((status & BIT(0)) == 1), HDMI_PLL_POLL_MAX_READS, HDMI_PLL_POLL_DELAY_US, HDMI_PLL_POLL_TIMEOUT_US)) { pr_debug("%s: PHY READY\n", __func__); phy_ready = 1; Loading drivers/clk/qcom/mdss/mdss-hdmi-pll-28hpm.c +11 −11 Original line number Diff line number Diff line /* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved. /* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -85,8 +85,8 @@ #define HDMI_UNI_PLL_CAL_CFG11 (0x0098) #define HDMI_UNI_PLL_STATUS (0x00C0) #define HDMI_PLL_POLL_MAX_READS 10 #define HDMI_PLL_POLL_TIMEOUT_US 50 #define HDMI_PLL_POLL_DELAY_US 50 #define HDMI_PLL_POLL_TIMEOUT_US 500 static inline struct hdmi_pll_vco_clk *to_hdmi_vco_clk(struct clk *clk) { Loading Loading @@ -121,7 +121,7 @@ static void hdmi_vco_disable(struct clk *c) static int hdmi_vco_enable(struct clk *c) { u32 status; u32 max_reads, timeout_us; u32 delay_us, timeout_us; int rc; struct hdmi_pll_vco_clk *vco = to_hdmi_vco_clk(c); struct mdss_pll_resources *hdmi_pll_res = vco->priv; Loading Loading @@ -150,11 +150,11 @@ static int hdmi_vco_enable(struct clk *c) udelay(350); /* poll for PLL ready status */ max_reads = 20; timeout_us = 100; delay_us = 100; timeout_us = 2000; if (readl_poll_timeout_atomic( (hdmi_pll_res->pll_base + HDMI_UNI_PLL_STATUS), status, ((status & BIT(0)) == 1), max_reads, timeout_us)) { status, ((status & BIT(0)) == 1), delay_us, timeout_us)) { pr_err("hdmi phy pll status=%x failed to Lock\n", status); hdmi_vco_disable(c); mdss_pll_resource_enable(hdmi_pll_res, false); Loading @@ -164,11 +164,11 @@ static int hdmi_vco_enable(struct clk *c) udelay(350); /* poll for PHY ready status */ max_reads = 20; timeout_us = 100; delay_us = 100; timeout_us = 2000; if (readl_poll_timeout_atomic( (hdmi_pll_res->phy_base + HDMI_PHY_STATUS), status, ((status & BIT(0)) == 1), max_reads, timeout_us)) { status, ((status & BIT(0)) == 1), delay_us, timeout_us)) { pr_err("hdmi phy status=%x failed to Lock\n", status); hdmi_vco_disable(c); mdss_pll_resource_enable(hdmi_pll_res, false); Loading Loading @@ -853,7 +853,7 @@ static int hdmi_pll_lock_status(struct mdss_pll_resources *hdmi_pll_res) if (readl_poll_timeout_atomic( (hdmi_pll_res->phy_base + HDMI_PHY_STATUS), status, ((status & BIT(0)) == 1), HDMI_PLL_POLL_MAX_READS, HDMI_PLL_POLL_DELAY_US, HDMI_PLL_POLL_TIMEOUT_US)) { pr_debug("HDMI PLL status=%x failed to Lock\n", status); pll_locked = 0; Loading Loading
drivers/clk/qcom/mdss/mdss-dsi-20nm-pll-util.c +5 −5 Original line number Diff line number Diff line /* Copyright (c) 2014, The Linux Foundation. All rights reserved. /* Copyright (c) 2014-2015, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -124,8 +124,8 @@ #define MMSS_DSI_DYNAMIC_REFRESH_PLL_CTRL16 0x054 #define MMSS_DSI_DYNAMIC_REFRESH_PLL_CTRL17 0x058 #define DSI_PLL_POLL_MAX_READS 15 #define DSI_PLL_POLL_TIMEOUT_US 1000 #define DSI_PLL_POLL_DELAY_US 1000 #define DSI_PLL_POLL_TIMEOUT_US 15000 int set_mdss_byte_mux_sel(struct mux_clk *clk, int sel) { Loading Loading @@ -465,7 +465,7 @@ static bool pll_20nm_is_pll_locked(struct mdss_pll_resources *dsi_pll_res) MMSS_DSI_PHY_PLL_RESET_SM), status, ((status & BIT(5)) > 0), DSI_PLL_POLL_MAX_READS, DSI_PLL_POLL_DELAY_US, DSI_PLL_POLL_TIMEOUT_US)) { pr_debug("DSI PLL status=%x failed to Lock\n", status); pll_locked = false; Loading @@ -473,7 +473,7 @@ static bool pll_20nm_is_pll_locked(struct mdss_pll_resources *dsi_pll_res) MMSS_DSI_PHY_PLL_RESET_SM), status, ((status & BIT(6)) > 0), DSI_PLL_POLL_MAX_READS, DSI_PLL_POLL_DELAY_US, DSI_PLL_POLL_TIMEOUT_US)) { pr_debug("DSI PLL status=%x PLl not ready\n", status); pll_locked = false; Loading
drivers/clk/qcom/mdss/mdss-dsi-pll-util.c +4 −4 Original line number Diff line number Diff line /* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved. /* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -51,8 +51,8 @@ #define DSI_PHY_PLL_UNIPHY_PLL_EFUSE_CFG (0x009C) #define DSI_PHY_PLL_UNIPHY_PLL_STATUS (0x00C0) #define DSI_PLL_POLL_MAX_READS 10 #define DSI_PLL_POLL_TIMEOUT_US 50 #define DSI_PLL_POLL_DELAY_US 50 #define DSI_PLL_POLL_TIMEOUT_US 500 int set_byte_mux_sel(struct mux_clk *clk, int sel) { Loading Loading @@ -255,7 +255,7 @@ int dsi_pll_lock_status(struct mdss_pll_resources *dsi_pll_res) DSI_PHY_PLL_UNIPHY_PLL_STATUS), status, ((status & BIT(0)) == 1), DSI_PLL_POLL_MAX_READS, DSI_PLL_POLL_DELAY_US, DSI_PLL_POLL_TIMEOUT_US)) { pr_debug("DSI PLL status=%x failed to Lock\n", status); pll_locked = 0; Loading
drivers/clk/qcom/mdss/mdss-edp-pll-28hpm.c +4 −4 Original line number Diff line number Diff line /* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved. /* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -54,8 +54,8 @@ #define EDP_PHY_PLL_UNIPHY_PLL_LKDET_CFG0 (0x005C) #define EDP_PHY_PLL_UNIPHY_PLL_LKDET_CFG1 (0x0060) #define EDP_PLL_POLL_MAX_READS 10 #define EDP_PLL_POLL_TIMEOUT_US 50 #define EDP_PLL_POLL_DELAY_US 50 #define EDP_PLL_POLL_TIMEOUT_US 500 static const struct clk_ops edp_mainlink_clk_src_ops; static struct clk_div_ops fixed_5div_ops; /* null ops */ Loading Loading @@ -384,7 +384,7 @@ static int edp_pll_lock_status(struct mdss_pll_resources *edp_pll_res) /* poll for PLL ready status */ if (readl_poll_timeout_atomic((edp_pll_res->pll_base + 0xc0), status, ((status & BIT(0)) == 1), EDP_PLL_POLL_MAX_READS, EDP_PLL_POLL_DELAY_US, EDP_PLL_POLL_TIMEOUT_US)) { pr_debug("EDP PLL status=%x failed to Lock\n", status); pll_locked = 0; Loading
drivers/clk/qcom/mdss/mdss-hdmi-pll-20nm.c +5 −5 Original line number Diff line number Diff line /* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved. /* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -385,8 +385,8 @@ #define HDMI_PHY_REVISION_ID2 (0xC4) #define HDMI_PHY_REVISION_ID3 (0xC8) #define HDMI_PLL_POLL_MAX_READS 2500 #define HDMI_PLL_POLL_TIMEOUT_US 50 #define HDMI_PLL_POLL_DELAY_US 50 #define HDMI_PLL_POLL_TIMEOUT_US 125000 #define HDMI_PLL_REF_CLK_RATE 192ULL #define HDMI_PLL_DIVISOR 10000000000ULL #define HDMI_PLL_DIVISOR_32 100000U Loading Loading @@ -414,7 +414,7 @@ static int hdmi_20nm_pll_lock_status(struct mdss_pll_resources *io) if (!readl_poll_timeout_atomic( (io->pll_base + QSERDES_COM_RESET_SM), status, ((status & BIT(6)) == 1), HDMI_PLL_POLL_MAX_READS, HDMI_PLL_POLL_DELAY_US, HDMI_PLL_POLL_TIMEOUT_US)) { pr_debug("%s: C READY\n", __func__); pll_locked = 1; Loading @@ -427,7 +427,7 @@ static int hdmi_20nm_pll_lock_status(struct mdss_pll_resources *io) if (pll_locked && !readl_poll_timeout_atomic( (io->phy_base + HDMI_PHY_STATUS), status, ((status & BIT(0)) == 1), HDMI_PLL_POLL_MAX_READS, HDMI_PLL_POLL_DELAY_US, HDMI_PLL_POLL_TIMEOUT_US)) { pr_debug("%s: PHY READY\n", __func__); phy_ready = 1; Loading
drivers/clk/qcom/mdss/mdss-hdmi-pll-28hpm.c +11 −11 Original line number Diff line number Diff line /* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved. /* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -85,8 +85,8 @@ #define HDMI_UNI_PLL_CAL_CFG11 (0x0098) #define HDMI_UNI_PLL_STATUS (0x00C0) #define HDMI_PLL_POLL_MAX_READS 10 #define HDMI_PLL_POLL_TIMEOUT_US 50 #define HDMI_PLL_POLL_DELAY_US 50 #define HDMI_PLL_POLL_TIMEOUT_US 500 static inline struct hdmi_pll_vco_clk *to_hdmi_vco_clk(struct clk *clk) { Loading Loading @@ -121,7 +121,7 @@ static void hdmi_vco_disable(struct clk *c) static int hdmi_vco_enable(struct clk *c) { u32 status; u32 max_reads, timeout_us; u32 delay_us, timeout_us; int rc; struct hdmi_pll_vco_clk *vco = to_hdmi_vco_clk(c); struct mdss_pll_resources *hdmi_pll_res = vco->priv; Loading Loading @@ -150,11 +150,11 @@ static int hdmi_vco_enable(struct clk *c) udelay(350); /* poll for PLL ready status */ max_reads = 20; timeout_us = 100; delay_us = 100; timeout_us = 2000; if (readl_poll_timeout_atomic( (hdmi_pll_res->pll_base + HDMI_UNI_PLL_STATUS), status, ((status & BIT(0)) == 1), max_reads, timeout_us)) { status, ((status & BIT(0)) == 1), delay_us, timeout_us)) { pr_err("hdmi phy pll status=%x failed to Lock\n", status); hdmi_vco_disable(c); mdss_pll_resource_enable(hdmi_pll_res, false); Loading @@ -164,11 +164,11 @@ static int hdmi_vco_enable(struct clk *c) udelay(350); /* poll for PHY ready status */ max_reads = 20; timeout_us = 100; delay_us = 100; timeout_us = 2000; if (readl_poll_timeout_atomic( (hdmi_pll_res->phy_base + HDMI_PHY_STATUS), status, ((status & BIT(0)) == 1), max_reads, timeout_us)) { status, ((status & BIT(0)) == 1), delay_us, timeout_us)) { pr_err("hdmi phy status=%x failed to Lock\n", status); hdmi_vco_disable(c); mdss_pll_resource_enable(hdmi_pll_res, false); Loading Loading @@ -853,7 +853,7 @@ static int hdmi_pll_lock_status(struct mdss_pll_resources *hdmi_pll_res) if (readl_poll_timeout_atomic( (hdmi_pll_res->phy_base + HDMI_PHY_STATUS), status, ((status & BIT(0)) == 1), HDMI_PLL_POLL_MAX_READS, HDMI_PLL_POLL_DELAY_US, HDMI_PLL_POLL_TIMEOUT_US)) { pr_debug("HDMI PLL status=%x failed to Lock\n", status); pll_locked = 0; Loading