Merge branch 'clk-qcom-9615' into clk-next
* clk-qcom-9615: dt-bindings: clock: Update bindings for MDM9615 GCC and LCC clk: mdm9615: Add support for MDM9615 Clock Controllers dt-bindings: Add MDM9615 DT bindings include files for GCC and LCC
This commit is contained in:
commit
cd1e29a93c
@ -15,6 +15,7 @@ Required properties :
|
||||
"qcom,gcc-msm8974pro"
|
||||
"qcom,gcc-msm8974pro-ac"
|
||||
"qcom,gcc-msm8996"
|
||||
"qcom,gcc-mdm9615"
|
||||
|
||||
- reg : shall contain base register location and length
|
||||
- #clock-cells : shall contain 1
|
||||
|
@ -7,6 +7,7 @@ Required properties :
|
||||
"qcom,lcc-msm8960"
|
||||
"qcom,lcc-apq8064"
|
||||
"qcom,lcc-ipq8064"
|
||||
"qcom,lcc-mdm9615"
|
||||
|
||||
- reg : shall contain base register location and length
|
||||
- #clock-cells : shall contain 1
|
||||
|
@ -87,6 +87,23 @@ config MSM_LCC_8960
|
||||
Say Y if you want to use audio devices such as i2s, pcm,
|
||||
SLIMBus, etc.
|
||||
|
||||
config MDM_GCC_9615
|
||||
tristate "MDM9615 Global Clock Controller"
|
||||
depends on COMMON_CLK_QCOM
|
||||
help
|
||||
Support for the global clock controller on mdm9615 devices.
|
||||
Say Y if you want to use peripheral devices such as UART, SPI,
|
||||
i2c, USB, SD/eMMC, etc.
|
||||
|
||||
config MDM_LCC_9615
|
||||
tristate "MDM9615 LPASS Clock Controller"
|
||||
select MDM_GCC_9615
|
||||
depends on COMMON_CLK_QCOM
|
||||
help
|
||||
Support for the LPASS clock controller on mdm9615 devices.
|
||||
Say Y if you want to use audio devices such as i2s, pcm,
|
||||
SLIMBus, etc.
|
||||
|
||||
config MSM_MMCC_8960
|
||||
tristate "MSM8960 Multimedia Clock Controller"
|
||||
select MSM_GCC_8960
|
||||
|
@ -26,3 +26,5 @@ obj-$(CONFIG_MSM_GCC_8996) += gcc-msm8996.o
|
||||
obj-$(CONFIG_MSM_MMCC_8960) += mmcc-msm8960.o
|
||||
obj-$(CONFIG_MSM_MMCC_8974) += mmcc-msm8974.o
|
||||
obj-$(CONFIG_MSM_MMCC_8996) += mmcc-msm8996.o
|
||||
obj-$(CONFIG_MDM_GCC_9615) += gcc-mdm9615.o
|
||||
obj-$(CONFIG_MDM_LCC_9615) += lcc-mdm9615.o
|
||||
|
1727
drivers/clk/qcom/gcc-mdm9615.c
Normal file
1727
drivers/clk/qcom/gcc-mdm9615.c
Normal file
File diff suppressed because it is too large
Load Diff
580
drivers/clk/qcom/lcc-mdm9615.c
Normal file
580
drivers/clk/qcom/lcc-mdm9615.c
Normal file
@ -0,0 +1,580 @@
|
||||
/*
|
||||
* Copyright (c) 2014, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) BayLibre, SAS.
|
||||
* Author : Neil Armstrong <narmstrong@baylibre.com>
|
||||
*
|
||||
* This software is licensed under the terms of the GNU General Public
|
||||
* License version 2, as published by the Free Software Foundation, and
|
||||
* may be copied, distributed, and modified under those terms.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/bitops.h>
|
||||
#include <linux/err.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/of.h>
|
||||
#include <linux/of_device.h>
|
||||
#include <linux/clk-provider.h>
|
||||
#include <linux/regmap.h>
|
||||
|
||||
#include <dt-bindings/clock/qcom,lcc-mdm9615.h>
|
||||
|
||||
#include "common.h"
|
||||
#include "clk-regmap.h"
|
||||
#include "clk-pll.h"
|
||||
#include "clk-rcg.h"
|
||||
#include "clk-branch.h"
|
||||
#include "clk-regmap-divider.h"
|
||||
#include "clk-regmap-mux.h"
|
||||
|
||||
static struct clk_pll pll4 = {
|
||||
.l_reg = 0x4,
|
||||
.m_reg = 0x8,
|
||||
.n_reg = 0xc,
|
||||
.config_reg = 0x14,
|
||||
.mode_reg = 0x0,
|
||||
.status_reg = 0x18,
|
||||
.status_bit = 16,
|
||||
.clkr.hw.init = &(struct clk_init_data){
|
||||
.name = "pll4",
|
||||
.parent_names = (const char *[]){ "cxo" },
|
||||
.num_parents = 1,
|
||||
.ops = &clk_pll_ops,
|
||||
},
|
||||
};
|
||||
|
||||
enum {
|
||||
P_CXO,
|
||||
P_PLL4,
|
||||
};
|
||||
|
||||
static const struct parent_map lcc_cxo_pll4_map[] = {
|
||||
{ P_CXO, 0 },
|
||||
{ P_PLL4, 2 }
|
||||
};
|
||||
|
||||
static const char * const lcc_cxo_pll4[] = {
|
||||
"cxo",
|
||||
"pll4_vote",
|
||||
};
|
||||
|
||||
static struct freq_tbl clk_tbl_aif_osr_492[] = {
|
||||
{ 512000, P_PLL4, 4, 1, 240 },
|
||||
{ 768000, P_PLL4, 4, 1, 160 },
|
||||
{ 1024000, P_PLL4, 4, 1, 120 },
|
||||
{ 1536000, P_PLL4, 4, 1, 80 },
|
||||
{ 2048000, P_PLL4, 4, 1, 60 },
|
||||
{ 3072000, P_PLL4, 4, 1, 40 },
|
||||
{ 4096000, P_PLL4, 4, 1, 30 },
|
||||
{ 6144000, P_PLL4, 4, 1, 20 },
|
||||
{ 8192000, P_PLL4, 4, 1, 15 },
|
||||
{ 12288000, P_PLL4, 4, 1, 10 },
|
||||
{ 24576000, P_PLL4, 4, 1, 5 },
|
||||
{ 27000000, P_CXO, 1, 0, 0 },
|
||||
{ }
|
||||
};
|
||||
|
||||
static struct freq_tbl clk_tbl_aif_osr_393[] = {
|
||||
{ 512000, P_PLL4, 4, 1, 192 },
|
||||
{ 768000, P_PLL4, 4, 1, 128 },
|
||||
{ 1024000, P_PLL4, 4, 1, 96 },
|
||||
{ 1536000, P_PLL4, 4, 1, 64 },
|
||||
{ 2048000, P_PLL4, 4, 1, 48 },
|
||||
{ 3072000, P_PLL4, 4, 1, 32 },
|
||||
{ 4096000, P_PLL4, 4, 1, 24 },
|
||||
{ 6144000, P_PLL4, 4, 1, 16 },
|
||||
{ 8192000, P_PLL4, 4, 1, 12 },
|
||||
{ 12288000, P_PLL4, 4, 1, 8 },
|
||||
{ 24576000, P_PLL4, 4, 1, 4 },
|
||||
{ 27000000, P_CXO, 1, 0, 0 },
|
||||
{ }
|
||||
};
|
||||
|
||||
static struct clk_rcg mi2s_osr_src = {
|
||||
.ns_reg = 0x48,
|
||||
.md_reg = 0x4c,
|
||||
.mn = {
|
||||
.mnctr_en_bit = 8,
|
||||
.mnctr_reset_bit = 7,
|
||||
.mnctr_mode_shift = 5,
|
||||
.n_val_shift = 24,
|
||||
.m_val_shift = 8,
|
||||
.width = 8,
|
||||
},
|
||||
.p = {
|
||||
.pre_div_shift = 3,
|
||||
.pre_div_width = 2,
|
||||
},
|
||||
.s = {
|
||||
.src_sel_shift = 0,
|
||||
.parent_map = lcc_cxo_pll4_map,
|
||||
},
|
||||
.freq_tbl = clk_tbl_aif_osr_393,
|
||||
.clkr = {
|
||||
.enable_reg = 0x48,
|
||||
.enable_mask = BIT(9),
|
||||
.hw.init = &(struct clk_init_data){
|
||||
.name = "mi2s_osr_src",
|
||||
.parent_names = lcc_cxo_pll4,
|
||||
.num_parents = 2,
|
||||
.ops = &clk_rcg_ops,
|
||||
.flags = CLK_SET_RATE_GATE,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
static const char * const lcc_mi2s_parents[] = {
|
||||
"mi2s_osr_src",
|
||||
};
|
||||
|
||||
static struct clk_branch mi2s_osr_clk = {
|
||||
.halt_reg = 0x50,
|
||||
.halt_bit = 1,
|
||||
.halt_check = BRANCH_HALT_ENABLE,
|
||||
.clkr = {
|
||||
.enable_reg = 0x48,
|
||||
.enable_mask = BIT(17),
|
||||
.hw.init = &(struct clk_init_data){
|
||||
.name = "mi2s_osr_clk",
|
||||
.parent_names = lcc_mi2s_parents,
|
||||
.num_parents = 1,
|
||||
.ops = &clk_branch_ops,
|
||||
.flags = CLK_SET_RATE_PARENT,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
static struct clk_regmap_div mi2s_div_clk = {
|
||||
.reg = 0x48,
|
||||
.shift = 10,
|
||||
.width = 4,
|
||||
.clkr = {
|
||||
.enable_reg = 0x48,
|
||||
.enable_mask = BIT(15),
|
||||
.hw.init = &(struct clk_init_data){
|
||||
.name = "mi2s_div_clk",
|
||||
.parent_names = lcc_mi2s_parents,
|
||||
.num_parents = 1,
|
||||
.ops = &clk_regmap_div_ops,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
static struct clk_branch mi2s_bit_div_clk = {
|
||||
.halt_reg = 0x50,
|
||||
.halt_bit = 0,
|
||||
.halt_check = BRANCH_HALT_ENABLE,
|
||||
.clkr = {
|
||||
.enable_reg = 0x48,
|
||||
.enable_mask = BIT(15),
|
||||
.hw.init = &(struct clk_init_data){
|
||||
.name = "mi2s_bit_div_clk",
|
||||
.parent_names = (const char *[]){ "mi2s_div_clk" },
|
||||
.num_parents = 1,
|
||||
.ops = &clk_branch_ops,
|
||||
.flags = CLK_SET_RATE_PARENT,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
static struct clk_regmap_mux mi2s_bit_clk = {
|
||||
.reg = 0x48,
|
||||
.shift = 14,
|
||||
.width = 1,
|
||||
.clkr = {
|
||||
.hw.init = &(struct clk_init_data){
|
||||
.name = "mi2s_bit_clk",
|
||||
.parent_names = (const char *[]){
|
||||
"mi2s_bit_div_clk",
|
||||
"mi2s_codec_clk",
|
||||
},
|
||||
.num_parents = 2,
|
||||
.ops = &clk_regmap_mux_closest_ops,
|
||||
.flags = CLK_SET_RATE_PARENT,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
#define CLK_AIF_OSR_DIV(prefix, _ns, _md, hr) \
|
||||
static struct clk_rcg prefix##_osr_src = { \
|
||||
.ns_reg = _ns, \
|
||||
.md_reg = _md, \
|
||||
.mn = { \
|
||||
.mnctr_en_bit = 8, \
|
||||
.mnctr_reset_bit = 7, \
|
||||
.mnctr_mode_shift = 5, \
|
||||
.n_val_shift = 24, \
|
||||
.m_val_shift = 8, \
|
||||
.width = 8, \
|
||||
}, \
|
||||
.p = { \
|
||||
.pre_div_shift = 3, \
|
||||
.pre_div_width = 2, \
|
||||
}, \
|
||||
.s = { \
|
||||
.src_sel_shift = 0, \
|
||||
.parent_map = lcc_cxo_pll4_map, \
|
||||
}, \
|
||||
.freq_tbl = clk_tbl_aif_osr_393, \
|
||||
.clkr = { \
|
||||
.enable_reg = _ns, \
|
||||
.enable_mask = BIT(9), \
|
||||
.hw.init = &(struct clk_init_data){ \
|
||||
.name = #prefix "_osr_src", \
|
||||
.parent_names = lcc_cxo_pll4, \
|
||||
.num_parents = 2, \
|
||||
.ops = &clk_rcg_ops, \
|
||||
.flags = CLK_SET_RATE_GATE, \
|
||||
}, \
|
||||
}, \
|
||||
}; \
|
||||
\
|
||||
static const char * const lcc_##prefix##_parents[] = { \
|
||||
#prefix "_osr_src", \
|
||||
}; \
|
||||
\
|
||||
static struct clk_branch prefix##_osr_clk = { \
|
||||
.halt_reg = hr, \
|
||||
.halt_bit = 1, \
|
||||
.halt_check = BRANCH_HALT_ENABLE, \
|
||||
.clkr = { \
|
||||
.enable_reg = _ns, \
|
||||
.enable_mask = BIT(21), \
|
||||
.hw.init = &(struct clk_init_data){ \
|
||||
.name = #prefix "_osr_clk", \
|
||||
.parent_names = lcc_##prefix##_parents, \
|
||||
.num_parents = 1, \
|
||||
.ops = &clk_branch_ops, \
|
||||
.flags = CLK_SET_RATE_PARENT, \
|
||||
}, \
|
||||
}, \
|
||||
}; \
|
||||
\
|
||||
static struct clk_regmap_div prefix##_div_clk = { \
|
||||
.reg = _ns, \
|
||||
.shift = 10, \
|
||||
.width = 8, \
|
||||
.clkr = { \
|
||||
.hw.init = &(struct clk_init_data){ \
|
||||
.name = #prefix "_div_clk", \
|
||||
.parent_names = lcc_##prefix##_parents, \
|
||||
.num_parents = 1, \
|
||||
.ops = &clk_regmap_div_ops, \
|
||||
}, \
|
||||
}, \
|
||||
}; \
|
||||
\
|
||||
static struct clk_branch prefix##_bit_div_clk = { \
|
||||
.halt_reg = hr, \
|
||||
.halt_bit = 0, \
|
||||
.halt_check = BRANCH_HALT_ENABLE, \
|
||||
.clkr = { \
|
||||
.enable_reg = _ns, \
|
||||
.enable_mask = BIT(19), \
|
||||
.hw.init = &(struct clk_init_data){ \
|
||||
.name = #prefix "_bit_div_clk", \
|
||||
.parent_names = (const char *[]){ \
|
||||
#prefix "_div_clk" \
|
||||
}, \
|
||||
.num_parents = 1, \
|
||||
.ops = &clk_branch_ops, \
|
||||
.flags = CLK_SET_RATE_PARENT, \
|
||||
}, \
|
||||
}, \
|
||||
}; \
|
||||
\
|
||||
static struct clk_regmap_mux prefix##_bit_clk = { \
|
||||
.reg = _ns, \
|
||||
.shift = 18, \
|
||||
.width = 1, \
|
||||
.clkr = { \
|
||||
.hw.init = &(struct clk_init_data){ \
|
||||
.name = #prefix "_bit_clk", \
|
||||
.parent_names = (const char *[]){ \
|
||||
#prefix "_bit_div_clk", \
|
||||
#prefix "_codec_clk", \
|
||||
}, \
|
||||
.num_parents = 2, \
|
||||
.ops = &clk_regmap_mux_closest_ops, \
|
||||
.flags = CLK_SET_RATE_PARENT, \
|
||||
}, \
|
||||
}, \
|
||||
}
|
||||
|
||||
CLK_AIF_OSR_DIV(codec_i2s_mic, 0x60, 0x64, 0x68);
|
||||
CLK_AIF_OSR_DIV(spare_i2s_mic, 0x78, 0x7c, 0x80);
|
||||
CLK_AIF_OSR_DIV(codec_i2s_spkr, 0x6c, 0x70, 0x74);
|
||||
CLK_AIF_OSR_DIV(spare_i2s_spkr, 0x84, 0x88, 0x8c);
|
||||
|
||||
static struct freq_tbl clk_tbl_pcm_492[] = {
|
||||
{ 256000, P_PLL4, 4, 1, 480 },
|
||||
{ 512000, P_PLL4, 4, 1, 240 },
|
||||
{ 768000, P_PLL4, 4, 1, 160 },
|
||||
{ 1024000, P_PLL4, 4, 1, 120 },
|
||||
{ 1536000, P_PLL4, 4, 1, 80 },
|
||||
{ 2048000, P_PLL4, 4, 1, 60 },
|
||||
{ 3072000, P_PLL4, 4, 1, 40 },
|
||||
{ 4096000, P_PLL4, 4, 1, 30 },
|
||||
{ 6144000, P_PLL4, 4, 1, 20 },
|
||||
{ 8192000, P_PLL4, 4, 1, 15 },
|
||||
{ 12288000, P_PLL4, 4, 1, 10 },
|
||||
{ 24576000, P_PLL4, 4, 1, 5 },
|
||||
{ 27000000, P_CXO, 1, 0, 0 },
|
||||
{ }
|
||||
};
|
||||
|
||||
static struct freq_tbl clk_tbl_pcm_393[] = {
|
||||
{ 256000, P_PLL4, 4, 1, 384 },
|
||||
{ 512000, P_PLL4, 4, 1, 192 },
|
||||
{ 768000, P_PLL4, 4, 1, 128 },
|
||||
{ 1024000, P_PLL4, 4, 1, 96 },
|
||||
{ 1536000, P_PLL4, 4, 1, 64 },
|
||||
{ 2048000, P_PLL4, 4, 1, 48 },
|
||||
{ 3072000, P_PLL4, 4, 1, 32 },
|
||||
{ 4096000, P_PLL4, 4, 1, 24 },
|
||||
{ 6144000, P_PLL4, 4, 1, 16 },
|
||||
{ 8192000, P_PLL4, 4, 1, 12 },
|
||||
{ 12288000, P_PLL4, 4, 1, 8 },
|
||||
{ 24576000, P_PLL4, 4, 1, 4 },
|
||||
{ 27000000, P_CXO, 1, 0, 0 },
|
||||
{ }
|
||||
};
|
||||
|
||||
static struct clk_rcg pcm_src = {
|
||||
.ns_reg = 0x54,
|
||||
.md_reg = 0x58,
|
||||
.mn = {
|
||||
.mnctr_en_bit = 8,
|
||||
.mnctr_reset_bit = 7,
|
||||
.mnctr_mode_shift = 5,
|
||||
.n_val_shift = 16,
|
||||
.m_val_shift = 16,
|
||||
.width = 16,
|
||||
},
|
||||
.p = {
|
||||
.pre_div_shift = 3,
|
||||
.pre_div_width = 2,
|
||||
},
|
||||
.s = {
|
||||
.src_sel_shift = 0,
|
||||
.parent_map = lcc_cxo_pll4_map,
|
||||
},
|
||||
.freq_tbl = clk_tbl_pcm_393,
|
||||
.clkr = {
|
||||
.enable_reg = 0x54,
|
||||
.enable_mask = BIT(9),
|
||||
.hw.init = &(struct clk_init_data){
|
||||
.name = "pcm_src",
|
||||
.parent_names = lcc_cxo_pll4,
|
||||
.num_parents = 2,
|
||||
.ops = &clk_rcg_ops,
|
||||
.flags = CLK_SET_RATE_GATE,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
static struct clk_branch pcm_clk_out = {
|
||||
.halt_reg = 0x5c,
|
||||
.halt_bit = 0,
|
||||
.halt_check = BRANCH_HALT_ENABLE,
|
||||
.clkr = {
|
||||
.enable_reg = 0x54,
|
||||
.enable_mask = BIT(11),
|
||||
.hw.init = &(struct clk_init_data){
|
||||
.name = "pcm_clk_out",
|
||||
.parent_names = (const char *[]){ "pcm_src" },
|
||||
.num_parents = 1,
|
||||
.ops = &clk_branch_ops,
|
||||
.flags = CLK_SET_RATE_PARENT,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
static struct clk_regmap_mux pcm_clk = {
|
||||
.reg = 0x54,
|
||||
.shift = 10,
|
||||
.width = 1,
|
||||
.clkr = {
|
||||
.hw.init = &(struct clk_init_data){
|
||||
.name = "pcm_clk",
|
||||
.parent_names = (const char *[]){
|
||||
"pcm_clk_out",
|
||||
"pcm_codec_clk",
|
||||
},
|
||||
.num_parents = 2,
|
||||
.ops = &clk_regmap_mux_closest_ops,
|
||||
.flags = CLK_SET_RATE_PARENT,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
static struct clk_rcg slimbus_src = {
|
||||
.ns_reg = 0xcc,
|
||||
.md_reg = 0xd0,
|
||||
.mn = {
|
||||
.mnctr_en_bit = 8,
|
||||
.mnctr_reset_bit = 7,
|
||||
.mnctr_mode_shift = 5,
|
||||
.n_val_shift = 24,
|
||||
.m_val_shift = 8,
|
||||
.width = 8,
|
||||
},
|
||||
.p = {
|
||||
.pre_div_shift = 3,
|
||||
.pre_div_width = 2,
|
||||
},
|
||||
.s = {
|
||||
.src_sel_shift = 0,
|
||||
.parent_map = lcc_cxo_pll4_map,
|
||||
},
|
||||
.freq_tbl = clk_tbl_aif_osr_393,
|
||||
.clkr = {
|
||||
.enable_reg = 0xcc,
|
||||
.enable_mask = BIT(9),
|
||||
.hw.init = &(struct clk_init_data){
|
||||
.name = "slimbus_src",
|
||||
.parent_names = lcc_cxo_pll4,
|
||||
.num_parents = 2,
|
||||
.ops = &clk_rcg_ops,
|
||||
.flags = CLK_SET_RATE_GATE,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
static const char * const lcc_slimbus_parents[] = {
|
||||
"slimbus_src",
|
||||
};
|
||||
|
||||
static struct clk_branch audio_slimbus_clk = {
|
||||
.halt_reg = 0xd4,
|
||||
.halt_bit = 0,
|
||||
.halt_check = BRANCH_HALT_ENABLE,
|
||||
.clkr = {
|
||||
.enable_reg = 0xcc,
|
||||
.enable_mask = BIT(10),
|
||||
.hw.init = &(struct clk_init_data){
|
||||
.name = "audio_slimbus_clk",
|
||||
.parent_names = lcc_slimbus_parents,
|
||||
.num_parents = 1,
|
||||
.ops = &clk_branch_ops,
|
||||
.flags = CLK_SET_RATE_PARENT,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
static struct clk_branch sps_slimbus_clk = {
|
||||
.halt_reg = 0xd4,
|
||||
.halt_bit = 1,
|
||||
.halt_check = BRANCH_HALT_ENABLE,
|
||||
.clkr = {
|
||||
.enable_reg = 0xcc,
|
||||
.enable_mask = BIT(12),
|
||||
.hw.init = &(struct clk_init_data){
|
||||
.name = "sps_slimbus_clk",
|
||||
.parent_names = lcc_slimbus_parents,
|
||||
.num_parents = 1,
|
||||
.ops = &clk_branch_ops,
|
||||
.flags = CLK_SET_RATE_PARENT,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
static struct clk_regmap *lcc_mdm9615_clks[] = {
|
||||
[PLL4] = &pll4.clkr,
|
||||
[MI2S_OSR_SRC] = &mi2s_osr_src.clkr,
|
||||
[MI2S_OSR_CLK] = &mi2s_osr_clk.clkr,
|
||||
[MI2S_DIV_CLK] = &mi2s_div_clk.clkr,
|
||||
[MI2S_BIT_DIV_CLK] = &mi2s_bit_div_clk.clkr,
|
||||
[MI2S_BIT_CLK] = &mi2s_bit_clk.clkr,
|
||||
[PCM_SRC] = &pcm_src.clkr,
|
||||
[PCM_CLK_OUT] = &pcm_clk_out.clkr,
|
||||
[PCM_CLK] = &pcm_clk.clkr,
|
||||
[SLIMBUS_SRC] = &slimbus_src.clkr,
|
||||
[AUDIO_SLIMBUS_CLK] = &audio_slimbus_clk.clkr,
|
||||
[SPS_SLIMBUS_CLK] = &sps_slimbus_clk.clkr,
|
||||
[CODEC_I2S_MIC_OSR_SRC] = &codec_i2s_mic_osr_src.clkr,
|
||||
[CODEC_I2S_MIC_OSR_CLK] = &codec_i2s_mic_osr_clk.clkr,
|
||||
[CODEC_I2S_MIC_DIV_CLK] = &codec_i2s_mic_div_clk.clkr,
|
||||
[CODEC_I2S_MIC_BIT_DIV_CLK] = &codec_i2s_mic_bit_div_clk.clkr,
|
||||
[CODEC_I2S_MIC_BIT_CLK] = &codec_i2s_mic_bit_clk.clkr,
|
||||
[SPARE_I2S_MIC_OSR_SRC] = &spare_i2s_mic_osr_src.clkr,
|
||||
[SPARE_I2S_MIC_OSR_CLK] = &spare_i2s_mic_osr_clk.clkr,
|
||||
[SPARE_I2S_MIC_DIV_CLK] = &spare_i2s_mic_div_clk.clkr,
|
||||
[SPARE_I2S_MIC_BIT_DIV_CLK] = &spare_i2s_mic_bit_div_clk.clkr,
|
||||
[SPARE_I2S_MIC_BIT_CLK] = &spare_i2s_mic_bit_clk.clkr,
|
||||
[CODEC_I2S_SPKR_OSR_SRC] = &codec_i2s_spkr_osr_src.clkr,
|
||||
[CODEC_I2S_SPKR_OSR_CLK] = &codec_i2s_spkr_osr_clk.clkr,
|
||||
[CODEC_I2S_SPKR_DIV_CLK] = &codec_i2s_spkr_div_clk.clkr,
|
||||
[CODEC_I2S_SPKR_BIT_DIV_CLK] = &codec_i2s_spkr_bit_div_clk.clkr,
|
||||
[CODEC_I2S_SPKR_BIT_CLK] = &codec_i2s_spkr_bit_clk.clkr,
|
||||
[SPARE_I2S_SPKR_OSR_SRC] = &spare_i2s_spkr_osr_src.clkr,
|
||||
[SPARE_I2S_SPKR_OSR_CLK] = &spare_i2s_spkr_osr_clk.clkr,
|
||||
[SPARE_I2S_SPKR_DIV_CLK] = &spare_i2s_spkr_div_clk.clkr,
|
||||
[SPARE_I2S_SPKR_BIT_DIV_CLK] = &spare_i2s_spkr_bit_div_clk.clkr,
|
||||
[SPARE_I2S_SPKR_BIT_CLK] = &spare_i2s_spkr_bit_clk.clkr,
|
||||
};
|
||||
|
||||
static const struct regmap_config lcc_mdm9615_regmap_config = {
|
||||
.reg_bits = 32,
|
||||
.reg_stride = 4,
|
||||
.val_bits = 32,
|
||||
.max_register = 0xfc,
|
||||
.fast_io = true,
|
||||
};
|
||||
|
||||
static const struct qcom_cc_desc lcc_mdm9615_desc = {
|
||||
.config = &lcc_mdm9615_regmap_config,
|
||||
.clks = lcc_mdm9615_clks,
|
||||
.num_clks = ARRAY_SIZE(lcc_mdm9615_clks),
|
||||
};
|
||||
|
||||
static const struct of_device_id lcc_mdm9615_match_table[] = {
|
||||
{ .compatible = "qcom,lcc-mdm9615" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, lcc_mdm9615_match_table);
|
||||
|
||||
static int lcc_mdm9615_probe(struct platform_device *pdev)
|
||||
{
|
||||
u32 val;
|
||||
struct regmap *regmap;
|
||||
|
||||
regmap = qcom_cc_map(pdev, &lcc_mdm9615_desc);
|
||||
if (IS_ERR(regmap))
|
||||
return PTR_ERR(regmap);
|
||||
|
||||
/* Use the correct frequency plan depending on speed of PLL4 */
|
||||
regmap_read(regmap, 0x4, &val);
|
||||
if (val == 0x12) {
|
||||
slimbus_src.freq_tbl = clk_tbl_aif_osr_492;
|
||||
mi2s_osr_src.freq_tbl = clk_tbl_aif_osr_492;
|
||||
codec_i2s_mic_osr_src.freq_tbl = clk_tbl_aif_osr_492;
|
||||
spare_i2s_mic_osr_src.freq_tbl = clk_tbl_aif_osr_492;
|
||||
codec_i2s_spkr_osr_src.freq_tbl = clk_tbl_aif_osr_492;
|
||||
spare_i2s_spkr_osr_src.freq_tbl = clk_tbl_aif_osr_492;
|
||||
pcm_src.freq_tbl = clk_tbl_pcm_492;
|
||||
}
|
||||
/* Enable PLL4 source on the LPASS Primary PLL Mux */
|
||||
regmap_write(regmap, 0xc4, 0x1);
|
||||
|
||||
return qcom_cc_really_probe(pdev, &lcc_mdm9615_desc, regmap);
|
||||
}
|
||||
|
||||
static struct platform_driver lcc_mdm9615_driver = {
|
||||
.probe = lcc_mdm9615_probe,
|
||||
.driver = {
|
||||
.name = "lcc-mdm9615",
|
||||
.of_match_table = lcc_mdm9615_match_table,
|
||||
},
|
||||
};
|
||||
module_platform_driver(lcc_mdm9615_driver);
|
||||
|
||||
MODULE_DESCRIPTION("QCOM LCC MDM9615 Driver");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_ALIAS("platform:lcc-mdm9615");
|
327
include/dt-bindings/clock/qcom,gcc-mdm9615.h
Normal file
327
include/dt-bindings/clock/qcom,gcc-mdm9615.h
Normal file
@ -0,0 +1,327 @@
|
||||
/*
|
||||
* Copyright (c) 2013, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) BayLibre, SAS.
|
||||
* Author : Neil Armstrong <narmstrong@baylibre.com>
|
||||
*
|
||||
* This software is licensed under the terms of the GNU General Public
|
||||
* License version 2, as published by the Free Software Foundation, and
|
||||
* may be copied, distributed, and modified under those terms.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#ifndef _DT_BINDINGS_CLK_MDM_GCC_9615_H
|
||||
#define _DT_BINDINGS_CLK_MDM_GCC_9615_H
|
||||
|
||||
#define AFAB_CLK_SRC 0
|
||||
#define AFAB_CORE_CLK 1
|
||||
#define SFAB_MSS_Q6_SW_A_CLK 2
|
||||
#define SFAB_MSS_Q6_FW_A_CLK 3
|
||||
#define QDSS_STM_CLK 4
|
||||
#define SCSS_A_CLK 5
|
||||
#define SCSS_H_CLK 6
|
||||
#define SCSS_XO_SRC_CLK 7
|
||||
#define AFAB_EBI1_CH0_A_CLK 8
|
||||
#define AFAB_EBI1_CH1_A_CLK 9
|
||||
#define AFAB_AXI_S0_FCLK 10
|
||||
#define AFAB_AXI_S1_FCLK 11
|
||||
#define AFAB_AXI_S2_FCLK 12
|
||||
#define AFAB_AXI_S3_FCLK 13
|
||||
#define AFAB_AXI_S4_FCLK 14
|
||||
#define SFAB_CORE_CLK 15
|
||||
#define SFAB_AXI_S0_FCLK 16
|
||||
#define SFAB_AXI_S1_FCLK 17
|
||||
#define SFAB_AXI_S2_FCLK 18
|
||||
#define SFAB_AXI_S3_FCLK 19
|
||||
#define SFAB_AXI_S4_FCLK 20
|
||||
#define SFAB_AHB_S0_FCLK 21
|
||||
#define SFAB_AHB_S1_FCLK 22
|
||||
#define SFAB_AHB_S2_FCLK 23
|
||||
#define SFAB_AHB_S3_FCLK 24
|
||||
#define SFAB_AHB_S4_FCLK 25
|
||||
#define SFAB_AHB_S5_FCLK 26
|
||||
#define SFAB_AHB_S6_FCLK 27
|
||||
#define SFAB_AHB_S7_FCLK 28
|
||||
#define QDSS_AT_CLK_SRC 29
|
||||
#define QDSS_AT_CLK 30
|
||||
#define QDSS_TRACECLKIN_CLK_SRC 31
|
||||
#define QDSS_TRACECLKIN_CLK 32
|
||||
#define QDSS_TSCTR_CLK_SRC 33
|
||||
#define QDSS_TSCTR_CLK 34
|
||||
#define SFAB_ADM0_M0_A_CLK 35
|
||||
#define SFAB_ADM0_M1_A_CLK 36
|
||||
#define SFAB_ADM0_M2_H_CLK 37
|
||||
#define ADM0_CLK 38
|
||||
#define ADM0_PBUS_CLK 39
|
||||
#define MSS_XPU_CLK 40
|
||||
#define IMEM0_A_CLK 41
|
||||
#define QDSS_H_CLK 42
|
||||
#define PCIE_A_CLK 43
|
||||
#define PCIE_AUX_CLK 44
|
||||
#define PCIE_PHY_REF_CLK 45
|
||||
#define PCIE_H_CLK 46
|
||||
#define SFAB_CLK_SRC 47
|
||||
#define MAHB0_CLK 48
|
||||
#define Q6SW_CLK_SRC 49
|
||||
#define Q6SW_CLK 50
|
||||
#define Q6FW_CLK_SRC 51
|
||||
#define Q6FW_CLK 52
|
||||
#define SFAB_MSS_M_A_CLK 53
|
||||
#define SFAB_USB3_M_A_CLK 54
|
||||
#define SFAB_LPASS_Q6_A_CLK 55
|
||||
#define SFAB_AFAB_M_A_CLK 56
|
||||
#define AFAB_SFAB_M0_A_CLK 57
|
||||
#define AFAB_SFAB_M1_A_CLK 58
|
||||
#define SFAB_SATA_S_H_CLK 59
|
||||
#define DFAB_CLK_SRC 60
|
||||
#define DFAB_CLK 61
|
||||
#define SFAB_DFAB_M_A_CLK 62
|
||||
#define DFAB_SFAB_M_A_CLK 63
|
||||
#define DFAB_SWAY0_H_CLK 64
|
||||
#define DFAB_SWAY1_H_CLK 65
|
||||
#define DFAB_ARB0_H_CLK 66
|
||||
#define DFAB_ARB1_H_CLK 67
|
||||
#define PPSS_H_CLK 68
|
||||
#define PPSS_PROC_CLK 69
|
||||
#define PPSS_TIMER0_CLK 70
|
||||
#define PPSS_TIMER1_CLK 71
|
||||
#define PMEM_A_CLK 72
|
||||
#define DMA_BAM_H_CLK 73
|
||||
#define SIC_H_CLK 74
|
||||
#define SPS_TIC_H_CLK 75
|
||||
#define SLIMBUS_H_CLK 76
|
||||
#define SLIMBUS_XO_SRC_CLK 77
|
||||
#define CFPB_2X_CLK_SRC 78
|
||||
#define CFPB_CLK 79
|
||||
#define CFPB0_H_CLK 80
|
||||
#define CFPB1_H_CLK 81
|
||||
#define CFPB2_H_CLK 82
|
||||
#define SFAB_CFPB_M_H_CLK 83
|
||||
#define CFPB_MASTER_H_CLK 84
|
||||
#define SFAB_CFPB_S_H_CLK 85
|
||||
#define CFPB_SPLITTER_H_CLK 86
|
||||
#define TSIF_H_CLK 87
|
||||
#define TSIF_INACTIVITY_TIMERS_CLK 88
|
||||
#define TSIF_REF_SRC 89
|
||||
#define TSIF_REF_CLK 90
|
||||
#define CE1_H_CLK 91
|
||||
#define CE1_CORE_CLK 92
|
||||
#define CE1_SLEEP_CLK 93
|
||||
#define CE2_H_CLK 94
|
||||
#define CE2_CORE_CLK 95
|
||||
#define SFPB_H_CLK_SRC 97
|
||||
#define SFPB_H_CLK 98
|
||||
#define SFAB_SFPB_M_H_CLK 99
|
||||
#define SFAB_SFPB_S_H_CLK 100
|
||||
#define RPM_PROC_CLK 101
|
||||
#define RPM_BUS_H_CLK 102
|
||||
#define RPM_SLEEP_CLK 103
|
||||
#define RPM_TIMER_CLK 104
|
||||
#define RPM_MSG_RAM_H_CLK 105
|
||||
#define PMIC_ARB0_H_CLK 106
|
||||
#define PMIC_ARB1_H_CLK 107
|
||||
#define PMIC_SSBI2_SRC 108
|
||||
#define PMIC_SSBI2_CLK 109
|
||||
#define SDC1_H_CLK 110
|
||||
#define SDC2_H_CLK 111
|
||||
#define SDC3_H_CLK 112
|
||||
#define SDC4_H_CLK 113
|
||||
#define SDC5_H_CLK 114
|
||||
#define SDC1_SRC 115
|
||||
#define SDC2_SRC 116
|
||||
#define SDC3_SRC 117
|
||||
#define SDC4_SRC 118
|
||||
#define SDC5_SRC 119
|
||||
#define SDC1_CLK 120
|
||||
#define SDC2_CLK 121
|
||||
#define SDC3_CLK 122
|
||||
#define SDC4_CLK 123
|
||||
#define SDC5_CLK 124
|
||||
#define DFAB_A2_H_CLK 125
|
||||
#define USB_HS1_H_CLK 126
|
||||
#define USB_HS1_XCVR_SRC 127
|
||||
#define USB_HS1_XCVR_CLK 128
|
||||
#define USB_HSIC_H_CLK 129
|
||||
#define USB_HSIC_XCVR_FS_SRC 130
|
||||
#define USB_HSIC_XCVR_FS_CLK 131
|
||||
#define USB_HSIC_SYSTEM_CLK_SRC 132
|
||||
#define USB_HSIC_SYSTEM_CLK 133
|
||||
#define CFPB0_C0_H_CLK 134
|
||||
#define CFPB0_C1_H_CLK 135
|
||||
#define CFPB0_D0_H_CLK 136
|
||||
#define CFPB0_D1_H_CLK 137
|
||||
#define USB_FS1_H_CLK 138
|
||||
#define USB_FS1_XCVR_FS_SRC 139
|
||||
#define USB_FS1_XCVR_FS_CLK 140
|
||||
#define USB_FS1_SYSTEM_CLK 141
|
||||
#define USB_FS2_H_CLK 142
|
||||
#define USB_FS2_XCVR_FS_SRC 143
|
||||
#define USB_FS2_XCVR_FS_CLK 144
|
||||
#define USB_FS2_SYSTEM_CLK 145
|
||||
#define GSBI_COMMON_SIM_SRC 146
|
||||
#define GSBI1_H_CLK 147
|
||||
#define GSBI2_H_CLK 148
|
||||
#define GSBI3_H_CLK 149
|
||||
#define GSBI4_H_CLK 150
|
||||
#define GSBI5_H_CLK 151
|
||||
#define GSBI6_H_CLK 152
|
||||
#define GSBI7_H_CLK 153
|
||||
#define GSBI8_H_CLK 154
|
||||
#define GSBI9_H_CLK 155
|
||||
#define GSBI10_H_CLK 156
|
||||
#define GSBI11_H_CLK 157
|
||||
#define GSBI12_H_CLK 158
|
||||
#define GSBI1_UART_SRC 159
|
||||
#define GSBI1_UART_CLK 160
|
||||
#define GSBI2_UART_SRC 161
|
||||
#define GSBI2_UART_CLK 162
|
||||
#define GSBI3_UART_SRC 163
|
||||
#define GSBI3_UART_CLK 164
|
||||
#define GSBI4_UART_SRC 165
|
||||
#define GSBI4_UART_CLK 166
|
||||
#define GSBI5_UART_SRC 167
|
||||
#define GSBI5_UART_CLK 168
|
||||
#define GSBI6_UART_SRC 169
|
||||
#define GSBI6_UART_CLK 170
|
||||
#define GSBI7_UART_SRC 171
|
||||
#define GSBI7_UART_CLK 172
|
||||
#define GSBI8_UART_SRC 173
|
||||
#define GSBI8_UART_CLK 174
|
||||
#define GSBI9_UART_SRC 175
|
||||
#define GSBI9_UART_CLK 176
|
||||
#define GSBI10_UART_SRC 177
|
||||
#define GSBI10_UART_CLK 178
|
||||
#define GSBI11_UART_SRC 179
|
||||
#define GSBI11_UART_CLK 180
|
||||
#define GSBI12_UART_SRC 181
|
||||
#define GSBI12_UART_CLK 182
|
||||
#define GSBI1_QUP_SRC 183
|
||||
#define GSBI1_QUP_CLK 184
|
||||
#define GSBI2_QUP_SRC 185
|
||||
#define GSBI2_QUP_CLK 186
|
||||
#define GSBI3_QUP_SRC 187
|
||||
#define GSBI3_QUP_CLK 188
|
||||
#define GSBI4_QUP_SRC 189
|
||||
#define GSBI4_QUP_CLK 190
|
||||
#define GSBI5_QUP_SRC 191
|
||||
#define GSBI5_QUP_CLK 192
|
||||
#define GSBI6_QUP_SRC 193
|
||||
#define GSBI6_QUP_CLK 194
|
||||
#define GSBI7_QUP_SRC 195
|
||||
#define GSBI7_QUP_CLK 196
|
||||
#define GSBI8_QUP_SRC 197
|
||||
#define GSBI8_QUP_CLK 198
|
||||
#define GSBI9_QUP_SRC 199
|
||||
#define GSBI9_QUP_CLK 200
|
||||
#define GSBI10_QUP_SRC 201
|
||||
#define GSBI10_QUP_CLK 202
|
||||
#define GSBI11_QUP_SRC 203
|
||||
#define GSBI11_QUP_CLK 204
|
||||
#define GSBI12_QUP_SRC 205
|
||||
#define GSBI12_QUP_CLK 206
|
||||
#define GSBI1_SIM_CLK 207
|
||||
#define GSBI2_SIM_CLK 208
|
||||
#define GSBI3_SIM_CLK 209
|
||||
#define GSBI4_SIM_CLK 210
|
||||
#define GSBI5_SIM_CLK 211
|
||||
#define GSBI6_SIM_CLK 212
|
||||
#define GSBI7_SIM_CLK 213
|
||||
#define GSBI8_SIM_CLK 214
|
||||
#define GSBI9_SIM_CLK 215
|
||||
#define GSBI10_SIM_CLK 216
|
||||
#define GSBI11_SIM_CLK 217
|
||||
#define GSBI12_SIM_CLK 218
|
||||
#define USB_HSIC_HSIC_CLK_SRC 219
|
||||
#define USB_HSIC_HSIC_CLK 220
|
||||
#define USB_HSIC_HSIO_CAL_CLK 221
|
||||
#define SPDM_CFG_H_CLK 222
|
||||
#define SPDM_MSTR_H_CLK 223
|
||||
#define SPDM_FF_CLK_SRC 224
|
||||
#define SPDM_FF_CLK 225
|
||||
#define SEC_CTRL_CLK 226
|
||||
#define SEC_CTRL_ACC_CLK_SRC 227
|
||||
#define SEC_CTRL_ACC_CLK 228
|
||||
#define TLMM_H_CLK 229
|
||||
#define TLMM_CLK 230
|
||||
#define SFAB_MSS_S_H_CLK 231
|
||||
#define MSS_SLP_CLK 232
|
||||
#define MSS_Q6SW_JTAG_CLK 233
|
||||
#define MSS_Q6FW_JTAG_CLK 234
|
||||
#define MSS_S_H_CLK 235
|
||||
#define MSS_CXO_SRC_CLK 236
|
||||
#define SATA_H_CLK 237
|
||||
#define SATA_CLK_SRC 238
|
||||
#define SATA_RXOOB_CLK 239
|
||||
#define SATA_PMALIVE_CLK 240
|
||||
#define SATA_PHY_REF_CLK 241
|
||||
#define TSSC_CLK_SRC 242
|
||||
#define TSSC_CLK 243
|
||||
#define PDM_SRC 244
|
||||
#define PDM_CLK 245
|
||||
#define GP0_SRC 246
|
||||
#define GP0_CLK 247
|
||||
#define GP1_SRC 248
|
||||
#define GP1_CLK 249
|
||||
#define GP2_SRC 250
|
||||
#define GP2_CLK 251
|
||||
#define MPM_CLK 252
|
||||
#define EBI1_CLK_SRC 253
|
||||
#define EBI1_CH0_CLK 254
|
||||
#define EBI1_CH1_CLK 255
|
||||
#define EBI1_2X_CLK 256
|
||||
#define EBI1_CH0_DQ_CLK 257
|
||||
#define EBI1_CH1_DQ_CLK 258
|
||||
#define EBI1_CH0_CA_CLK 259
|
||||
#define EBI1_CH1_CA_CLK 260
|
||||
#define EBI1_XO_CLK 261
|
||||
#define SFAB_SMPSS_S_H_CLK 262
|
||||
#define PRNG_SRC 263
|
||||
#define PRNG_CLK 264
|
||||
#define PXO_SRC 265
|
||||
#define LPASS_CXO_CLK 266
|
||||
#define LPASS_PXO_CLK 267
|
||||
#define SPDM_CY_PORT0_CLK 268
|
||||
#define SPDM_CY_PORT1_CLK 269
|
||||
#define SPDM_CY_PORT2_CLK 270
|
||||
#define SPDM_CY_PORT3_CLK 271
|
||||
#define SPDM_CY_PORT4_CLK 272
|
||||
#define SPDM_CY_PORT5_CLK 273
|
||||
#define SPDM_CY_PORT6_CLK 274
|
||||
#define SPDM_CY_PORT7_CLK 275
|
||||
#define PLL0 276
|
||||
#define PLL0_VOTE 277
|
||||
#define PLL3 278
|
||||
#define PLL3_VOTE 279
|
||||
#define PLL4_VOTE 280
|
||||
#define PLL5 281
|
||||
#define PLL5_VOTE 282
|
||||
#define PLL6 283
|
||||
#define PLL6_VOTE 284
|
||||
#define PLL7_VOTE 285
|
||||
#define PLL8 286
|
||||
#define PLL8_VOTE 287
|
||||
#define PLL9 288
|
||||
#define PLL10 289
|
||||
#define PLL11 290
|
||||
#define PLL12 291
|
||||
#define PLL13 292
|
||||
#define PLL14 293
|
||||
#define PLL14_VOTE 294
|
||||
#define USB_HS3_H_CLK 295
|
||||
#define USB_HS3_XCVR_SRC 296
|
||||
#define USB_HS3_XCVR_CLK 297
|
||||
#define USB_HS4_H_CLK 298
|
||||
#define USB_HS4_XCVR_SRC 299
|
||||
#define USB_HS4_XCVR_CLK 300
|
||||
#define SATA_PHY_CFG_CLK 301
|
||||
#define SATA_A_CLK 302
|
||||
#define CE3_SRC 303
|
||||
#define CE3_CORE_CLK 304
|
||||
#define CE3_H_CLK 305
|
||||
#define USB_HS1_SYSTEM_CLK_SRC 306
|
||||
#define USB_HS1_SYSTEM_CLK 307
|
||||
|
||||
#endif
|
52
include/dt-bindings/clock/qcom,lcc-mdm9615.h
Normal file
52
include/dt-bindings/clock/qcom,lcc-mdm9615.h
Normal file
@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright (c) 2014, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) BayLibre, SAS.
|
||||
* Author : Neil Armstrong <narmstrong@baylibre.com>
|
||||
*
|
||||
* This software is licensed under the terms of the GNU General Public
|
||||
* License version 2, as published by the Free Software Foundation, and
|
||||
* may be copied, distributed, and modified under those terms.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#ifndef _DT_BINDINGS_CLK_LCC_MDM9615_H
|
||||
#define _DT_BINDINGS_CLK_LCC_MDM9615_H
|
||||
|
||||
#define PLL4 0
|
||||
#define MI2S_OSR_SRC 1
|
||||
#define MI2S_OSR_CLK 2
|
||||
#define MI2S_DIV_CLK 3
|
||||
#define MI2S_BIT_DIV_CLK 4
|
||||
#define MI2S_BIT_CLK 5
|
||||
#define PCM_SRC 6
|
||||
#define PCM_CLK_OUT 7
|
||||
#define PCM_CLK 8
|
||||
#define SLIMBUS_SRC 9
|
||||
#define AUDIO_SLIMBUS_CLK 10
|
||||
#define SPS_SLIMBUS_CLK 11
|
||||
#define CODEC_I2S_MIC_OSR_SRC 12
|
||||
#define CODEC_I2S_MIC_OSR_CLK 13
|
||||
#define CODEC_I2S_MIC_DIV_CLK 14
|
||||
#define CODEC_I2S_MIC_BIT_DIV_CLK 15
|
||||
#define CODEC_I2S_MIC_BIT_CLK 16
|
||||
#define SPARE_I2S_MIC_OSR_SRC 17
|
||||
#define SPARE_I2S_MIC_OSR_CLK 18
|
||||
#define SPARE_I2S_MIC_DIV_CLK 19
|
||||
#define SPARE_I2S_MIC_BIT_DIV_CLK 20
|
||||
#define SPARE_I2S_MIC_BIT_CLK 21
|
||||
#define CODEC_I2S_SPKR_OSR_SRC 22
|
||||
#define CODEC_I2S_SPKR_OSR_CLK 23
|
||||
#define CODEC_I2S_SPKR_DIV_CLK 24
|
||||
#define CODEC_I2S_SPKR_BIT_DIV_CLK 25
|
||||
#define CODEC_I2S_SPKR_BIT_CLK 26
|
||||
#define SPARE_I2S_SPKR_OSR_SRC 27
|
||||
#define SPARE_I2S_SPKR_OSR_CLK 28
|
||||
#define SPARE_I2S_SPKR_DIV_CLK 29
|
||||
#define SPARE_I2S_SPKR_BIT_DIV_CLK 30
|
||||
#define SPARE_I2S_SPKR_BIT_CLK 31
|
||||
|
||||
#endif
|
136
include/dt-bindings/reset/qcom,gcc-mdm9615.h
Normal file
136
include/dt-bindings/reset/qcom,gcc-mdm9615.h
Normal file
@ -0,0 +1,136 @@
|
||||
/*
|
||||
* Copyright (c) 2013, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) BayLibre, SAS.
|
||||
* Author : Neil Armstrong <narmstrong@baylibre.com>
|
||||
*
|
||||
* This software is licensed under the terms of the GNU General Public
|
||||
* License version 2, as published by the Free Software Foundation, and
|
||||
* may be copied, distributed, and modified under those terms.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#ifndef _DT_BINDINGS_RESET_GCC_MDM9615_H
|
||||
#define _DT_BINDINGS_RESET_GCC_MDM9615_H
|
||||
|
||||
#define SFAB_MSS_Q6_SW_RESET 0
|
||||
#define SFAB_MSS_Q6_FW_RESET 1
|
||||
#define QDSS_STM_RESET 2
|
||||
#define AFAB_SMPSS_S_RESET 3
|
||||
#define AFAB_SMPSS_M1_RESET 4
|
||||
#define AFAB_SMPSS_M0_RESET 5
|
||||
#define AFAB_EBI1_CH0_RESET 6
|
||||
#define AFAB_EBI1_CH1_RESET 7
|
||||
#define SFAB_ADM0_M0_RESET 8
|
||||
#define SFAB_ADM0_M1_RESET 9
|
||||
#define SFAB_ADM0_M2_RESET 10
|
||||
#define ADM0_C2_RESET 11
|
||||
#define ADM0_C1_RESET 12
|
||||
#define ADM0_C0_RESET 13
|
||||
#define ADM0_PBUS_RESET 14
|
||||
#define ADM0_RESET 15
|
||||
#define QDSS_CLKS_SW_RESET 16
|
||||
#define QDSS_POR_RESET 17
|
||||
#define QDSS_TSCTR_RESET 18
|
||||
#define QDSS_HRESET_RESET 19
|
||||
#define QDSS_AXI_RESET 20
|
||||
#define QDSS_DBG_RESET 21
|
||||
#define PCIE_A_RESET 22
|
||||
#define PCIE_AUX_RESET 23
|
||||
#define PCIE_H_RESET 24
|
||||
#define SFAB_PCIE_M_RESET 25
|
||||
#define SFAB_PCIE_S_RESET 26
|
||||
#define SFAB_MSS_M_RESET 27
|
||||
#define SFAB_USB3_M_RESET 28
|
||||
#define SFAB_RIVA_M_RESET 29
|
||||
#define SFAB_LPASS_RESET 30
|
||||
#define SFAB_AFAB_M_RESET 31
|
||||
#define AFAB_SFAB_M0_RESET 32
|
||||
#define AFAB_SFAB_M1_RESET 33
|
||||
#define SFAB_SATA_S_RESET 34
|
||||
#define SFAB_DFAB_M_RESET 35
|
||||
#define DFAB_SFAB_M_RESET 36
|
||||
#define DFAB_SWAY0_RESET 37
|
||||
#define DFAB_SWAY1_RESET 38
|
||||
#define DFAB_ARB0_RESET 39
|
||||
#define DFAB_ARB1_RESET 40
|
||||
#define PPSS_PROC_RESET 41
|
||||
#define PPSS_RESET 42
|
||||
#define DMA_BAM_RESET 43
|
||||
#define SPS_TIC_H_RESET 44
|
||||
#define SLIMBUS_H_RESET 45
|
||||
#define SFAB_CFPB_M_RESET 46
|
||||
#define SFAB_CFPB_S_RESET 47
|
||||
#define TSIF_H_RESET 48
|
||||
#define CE1_H_RESET 49
|
||||
#define CE1_CORE_RESET 50
|
||||
#define CE1_SLEEP_RESET 51
|
||||
#define CE2_H_RESET 52
|
||||
#define CE2_CORE_RESET 53
|
||||
#define SFAB_SFPB_M_RESET 54
|
||||
#define SFAB_SFPB_S_RESET 55
|
||||
#define RPM_PROC_RESET 56
|
||||
#define PMIC_SSBI2_RESET 57
|
||||
#define SDC1_RESET 58
|
||||
#define SDC2_RESET 59
|
||||
#define SDC3_RESET 60
|
||||
#define SDC4_RESET 61
|
||||
#define SDC5_RESET 62
|
||||
#define DFAB_A2_RESET 63
|
||||
#define USB_HS1_RESET 64
|
||||
#define USB_HSIC_RESET 65
|
||||
#define USB_FS1_XCVR_RESET 66
|
||||
#define USB_FS1_RESET 67
|
||||
#define USB_FS2_XCVR_RESET 68
|
||||
#define USB_FS2_RESET 69
|
||||
#define GSBI1_RESET 70
|
||||
#define GSBI2_RESET 71
|
||||
#define GSBI3_RESET 72
|
||||
#define GSBI4_RESET 73
|
||||
#define GSBI5_RESET 74
|
||||
#define GSBI6_RESET 75
|
||||
#define GSBI7_RESET 76
|
||||
#define GSBI8_RESET 77
|
||||
#define GSBI9_RESET 78
|
||||
#define GSBI10_RESET 79
|
||||
#define GSBI11_RESET 80
|
||||
#define GSBI12_RESET 81
|
||||
#define SPDM_RESET 82
|
||||
#define TLMM_H_RESET 83
|
||||
#define SFAB_MSS_S_RESET 84
|
||||
#define MSS_SLP_RESET 85
|
||||
#define MSS_Q6SW_JTAG_RESET 86
|
||||
#define MSS_Q6FW_JTAG_RESET 87
|
||||
#define MSS_RESET 88
|
||||
#define SATA_H_RESET 89
|
||||
#define SATA_RXOOB_RESE 90
|
||||
#define SATA_PMALIVE_RESET 91
|
||||
#define SATA_SFAB_M_RESET 92
|
||||
#define TSSC_RESET 93
|
||||
#define PDM_RESET 94
|
||||
#define MPM_H_RESET 95
|
||||
#define MPM_RESET 96
|
||||
#define SFAB_SMPSS_S_RESET 97
|
||||
#define PRNG_RESET 98
|
||||
#define RIVA_RESET 99
|
||||
#define USB_HS3_RESET 100
|
||||
#define USB_HS4_RESET 101
|
||||
#define CE3_RESET 102
|
||||
#define PCIE_EXT_PCI_RESET 103
|
||||
#define PCIE_PHY_RESET 104
|
||||
#define PCIE_PCI_RESET 105
|
||||
#define PCIE_POR_RESET 106
|
||||
#define PCIE_HCLK_RESET 107
|
||||
#define PCIE_ACLK_RESET 108
|
||||
#define CE3_H_RESET 109
|
||||
#define SFAB_CE3_M_RESET 110
|
||||
#define SFAB_CE3_S_RESET 111
|
||||
#define SATA_RESET 112
|
||||
#define CE3_SLEEP_RESET 113
|
||||
#define GSS_SLP_RESET 114
|
||||
#define GSS_RESET 115
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user