diff options
author | Archit Taneja <architt@codeaurora.org> | 2015-04-30 10:59:09 +0530 |
---|---|---|
committer | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2015-04-30 08:01:20 +0100 |
commit | eac16d1c05734524bb8732c7c7cb88a61a6c4785 (patch) | |
tree | e1e41d15c4a0c033852ffda2ebd30540eabd9770 | |
parent | 0802e3533f7d2e086867752673787d7959fe8b21 (diff) |
drm/msm/dsi: Add 28nm DSI PLL register definitions
Don't include non-existent pll.xml.h, replace this with DSI PLL register
definitions within dsi_pll.c itself.
Signed-off-by: Archit Taneja <architt@codeaurora.org>
-rw-r--r-- | drivers/gpu/drm/msm/dsi/dsi_pll.c | 121 |
1 files changed, 118 insertions, 3 deletions
diff --git a/drivers/gpu/drm/msm/dsi/dsi_pll.c b/drivers/gpu/drm/msm/dsi/dsi_pll.c index 22d8acdf3248..158a7a5415d5 100644 --- a/drivers/gpu/drm/msm/dsi/dsi_pll.c +++ b/drivers/gpu/drm/msm/dsi/dsi_pll.c @@ -13,7 +13,6 @@ #include "dsi.h" #include "dsi.xml.h" -#include "pll.xml.h" #ifndef CONFIG_COMMON_CLK struct msm_dsi_pll *msm_dsi_pll_init(struct platform_device *pdev, @@ -28,11 +27,127 @@ void msm_dsi_pll_destroy(struct msm_dsi_pll *pll) #include <linux/clk.h> #include <linux/clk-provider.h> -#include "pll.xml.h" - #define NUM_DSI_CLOCKS_MAX 6 #define MAX_DSI_PLL_EN_SEQS 10 +#define REG_PLL_28nm_REFCLK_CFG 0x00000000 + +#define REG_PLL_28nm_POSTDIV1_CFG 0x00000004 + +#define REG_PLL_28nm_CHGPUMP_CFG 0x00000008 + +#define REG_PLL_28nm_VCOLPF_CFG 0x0000000c + +#define REG_PLL_28nm_VREG_CFG 0x00000010 + +#define REG_PLL_28nm_PWRGEN_CFG 0x00000014 + +#define REG_PLL_28nm_DMUX_CFG 0x00000018 + +#define REG_PLL_28nm_AMUX_CFG 0x0000001c + +#define REG_PLL_28nm_GLB_CFG 0x00000020 + +#define REG_PLL_28nm_POSTDIV2_CFG 0x00000024 + +#define REG_PLL_28nm_POSTDIV3_CFG 0x00000028 + +#define REG_PLL_28nm_LPFR_CFG 0x0000002c + +#define REG_PLL_28nm_LPFC1_CFG 0x00000030 + +#define REG_PLL_28nm_LPFC2_CFG 0x00000034 + +#define REG_PLL_28nm_SDM_CFG0 0x00000038 + +#define REG_PLL_28nm_SDM_CFG1 0x0000003c + +#define REG_PLL_28nm_SDM_CFG2 0x00000040 + +#define REG_PLL_28nm_SDM_CFG3 0x00000044 + +#define REG_PLL_28nm_SDM_CFG4 0x00000048 + +#define REG_PLL_28nm_SSC_CFG0 0x0000004c + +#define REG_PLL_28nm_SSC_CFG1 0x00000050 + +#define REG_PLL_28nm_SSC_CFG2 0x00000054 + +#define REG_PLL_28nm_SSC_CFG3 0x00000058 + +#define REG_PLL_28nm_LKDET_CFG0 0x0000005c + +#define REG_PLL_28nm_LKDET_CFG1 0x00000060 + +#define REG_PLL_28nm_LKDET_CFG2 0x00000064 + +#define REG_PLL_28nm_TEST_CFG 0x00000068 + +#define REG_PLL_28nm_CAL_CFG0 0x0000006c + +#define REG_PLL_28nm_CAL_CFG1 0x00000070 + +#define REG_PLL_28nm_CAL_CFG2 0x00000074 + +#define REG_PLL_28nm_CAL_CFG3 0x00000078 + +#define REG_PLL_28nm_CAL_CFG4 0x0000007c + +#define REG_PLL_28nm_CAL_CFG5 0x00000080 + +#define REG_PLL_28nm_CAL_CFG6 0x00000084 + +#define REG_PLL_28nm_CAL_CFG7 0x00000088 + +#define REG_PLL_28nm_CAL_CFG8 0x0000008c + +#define REG_PLL_28nm_CAL_CFG9 0x00000090 + +#define REG_PLL_28nm_CAL_CFG10 0x00000094 + +#define REG_PLL_28nm_CAL_CFG11 0x00000098 + +#define REG_PLL_28nm_EFUSE_CFG 0x0000009c + +#define REG_PLL_28nm_DEBUG_BUS_SEL 0x000000a0 + +#define REG_PLL_28nm_CTRL_42 0x000000a4 + +#define REG_PLL_28nm_CTRL_43 0x000000a8 + +#define REG_PLL_28nm_CTRL_44 0x000000ac + +#define REG_PLL_28nm_CTRL_45 0x000000b0 + +#define REG_PLL_28nm_CTRL_46 0x000000b4 + +#define REG_PLL_28nm_CTRL_47 0x000000b8 + +#define REG_PLL_28nm_CTRL_48 0x000000bc + +#define REG_PLL_28nm_STATUS 0x000000c0 + +#define REG_PLL_28nm_DEBUG_BUS0 0x000000c4 + +#define REG_PLL_28nm_DEBUG_BUS1 0x000000c8 + +#define REG_PLL_28nm_DEBUG_BUS2 0x000000cc + +#define REG_PLL_28nm_DEBUG_BUS3 0x000000d0 + +#define REG_PLL_28nm_CTRL_54 0x000000d4 + + +#define PLL_28nm_STATUS_PLL_RDY BIT(0) +#define PLL_28nm_TEST_CFG_PLL_SW_RESET 0x1 + +#define PLL_28nm_GLB_CFG_PLL_PWRDN_B 1 +#define PLL_28nm_GLB_CFG_PLL_PWRGEN_PWRDN_B 5 +#define PLL_28nm_GLB_CFG_PLL_LDO_PWRDN_B 7 +#define PLL_28nm_GLB_CFG_PLL_ENABLE 0xf + + struct msm_dsi_pll { struct platform_device *pdev; void __iomem *mmio; |