Home
last modified time | relevance | path

Searched refs:soc (Results 1 – 25 of 100) sorted by relevance

1234

/drivers/clk/tegra/
Dclk-tegra124-dfll-fcpu.c88 struct tegra_dfll_soc_data *soc; in tegra124_dfll_fcpu_probe() local
100 soc = devm_kzalloc(&pdev->dev, sizeof(*soc), GFP_KERNEL); in tegra124_dfll_fcpu_probe()
101 if (!soc) in tegra124_dfll_fcpu_probe()
104 soc->dev = get_cpu_device(0); in tegra124_dfll_fcpu_probe()
105 if (!soc->dev) { in tegra124_dfll_fcpu_probe()
110 soc->max_freq = cpu_max_freq_table[speedo_id]; in tegra124_dfll_fcpu_probe()
112 soc->cvb = tegra_cvb_add_opp_table(soc->dev, tegra124_cpu_cvb_tables, in tegra124_dfll_fcpu_probe()
115 soc->max_freq); in tegra124_dfll_fcpu_probe()
116 if (IS_ERR(soc->cvb)) { in tegra124_dfll_fcpu_probe()
118 PTR_ERR(soc->cvb)); in tegra124_dfll_fcpu_probe()
[all …]
/drivers/mtd/nand/brcmnand/
Dbrcmnand.h24 bool (*ctlrdy_ack)(struct brcmnand_soc *soc);
25 void (*ctlrdy_set_enabled)(struct brcmnand_soc *soc, bool en);
26 void (*prepare_data_bus)(struct brcmnand_soc *soc, bool prepare,
30 static inline void brcmnand_soc_data_bus_prepare(struct brcmnand_soc *soc, in brcmnand_soc_data_bus_prepare() argument
33 if (soc && soc->prepare_data_bus) in brcmnand_soc_data_bus_prepare()
34 soc->prepare_data_bus(soc, true, is_param); in brcmnand_soc_data_bus_prepare()
37 static inline void brcmnand_soc_data_bus_unprepare(struct brcmnand_soc *soc, in brcmnand_soc_data_bus_unprepare() argument
40 if (soc && soc->prepare_data_bus) in brcmnand_soc_data_bus_unprepare()
41 soc->prepare_data_bus(soc, false, is_param); in brcmnand_soc_data_bus_unprepare()
69 int brcmnand_probe(struct platform_device *pdev, struct brcmnand_soc *soc);
Diproc_nand.c26 struct brcmnand_soc soc; member
40 static bool iproc_nand_intc_ack(struct brcmnand_soc *soc) in iproc_nand_intc_ack() argument
43 container_of(soc, struct iproc_nand_soc, soc); in iproc_nand_intc_ack()
55 static void iproc_nand_intc_set(struct brcmnand_soc *soc, bool en) in iproc_nand_intc_set() argument
58 container_of(soc, struct iproc_nand_soc, soc); in iproc_nand_intc_set()
77 static void iproc_nand_apb_access(struct brcmnand_soc *soc, bool prepare, in iproc_nand_apb_access() argument
81 container_of(soc, struct iproc_nand_soc, soc); in iproc_nand_apb_access()
113 struct brcmnand_soc *soc; in iproc_nand_probe() local
119 soc = &priv->soc; in iproc_nand_probe()
133 soc->ctlrdy_ack = iproc_nand_intc_ack; in iproc_nand_probe()
[all …]
Dbcm63138_nand.c26 struct brcmnand_soc soc; member
37 static bool bcm63138_nand_intc_ack(struct brcmnand_soc *soc) in bcm63138_nand_intc_ack() argument
40 container_of(soc, struct bcm63138_nand_soc, soc); in bcm63138_nand_intc_ack()
52 static void bcm63138_nand_intc_set(struct brcmnand_soc *soc, bool en) in bcm63138_nand_intc_set() argument
55 container_of(soc, struct bcm63138_nand_soc, soc); in bcm63138_nand_intc_set()
71 struct brcmnand_soc *soc; in bcm63138_nand_probe() local
77 soc = &priv->soc; in bcm63138_nand_probe()
84 soc->ctlrdy_ack = bcm63138_nand_intc_ack; in bcm63138_nand_probe()
85 soc->ctlrdy_set_enabled = bcm63138_nand_intc_set; in bcm63138_nand_probe()
87 return brcmnand_probe(pdev, soc); in bcm63138_nand_probe()
Dbcm6368_nand.c35 struct brcmnand_soc soc; member
58 static bool bcm6368_nand_intc_ack(struct brcmnand_soc *soc) in bcm6368_nand_intc_ack() argument
61 container_of(soc, struct bcm6368_nand_soc, soc); in bcm6368_nand_intc_ack()
76 static void bcm6368_nand_intc_set(struct brcmnand_soc *soc, bool en) in bcm6368_nand_intc_set() argument
79 container_of(soc, struct bcm6368_nand_soc, soc); in bcm6368_nand_intc_set()
98 struct brcmnand_soc *soc; in bcm6368_nand_probe() local
104 soc = &priv->soc; in bcm6368_nand_probe()
112 soc->ctlrdy_ack = bcm6368_nand_intc_ack; in bcm6368_nand_probe()
113 soc->ctlrdy_set_enabled = bcm6368_nand_intc_set; in bcm6368_nand_probe()
120 return brcmnand_probe(pdev, soc); in bcm6368_nand_probe()
/drivers/soc/
DKconfig3 source "drivers/soc/bcm/Kconfig"
4 source "drivers/soc/fsl/qbman/Kconfig"
5 source "drivers/soc/fsl/qe/Kconfig"
6 source "drivers/soc/mediatek/Kconfig"
7 source "drivers/soc/qcom/Kconfig"
8 source "drivers/soc/rockchip/Kconfig"
9 source "drivers/soc/samsung/Kconfig"
10 source "drivers/soc/sunxi/Kconfig"
11 source "drivers/soc/tegra/Kconfig"
12 source "drivers/soc/ti/Kconfig"
[all …]
/drivers/pinctrl/freescale/
Dpinctrl-mxs.c32 struct mxs_pinctrl_soc_data *soc; member
39 return d->soc->ngroups; in mxs_get_groups_count()
47 return d->soc->groups[group].name; in mxs_get_group_name()
55 *pins = d->soc->groups[group].pins; in mxs_get_group_pins()
56 *num_pins = d->soc->groups[group].npins; in mxs_get_group_pins()
173 return d->soc->nfunctions; in mxs_pinctrl_get_funcs_count()
181 return d->soc->functions[function].name; in mxs_pinctrl_get_func_name()
191 *groups = d->soc->functions[group].groups; in mxs_pinctrl_get_func_groups()
192 *num_groups = d->soc->functions[group].ngroups; in mxs_pinctrl_get_func_groups()
211 struct mxs_group *g = &d->soc->groups[group]; in mxs_pinctrl_set_mux()
[all …]
/drivers/phy/tegra/
Dxusb.c42 for (i = 0; i < pad->soc->num_lanes; i++) { in tegra_xusb_pad_of_xlate()
102 return of_find_node_by_name(np, pad->soc->lanes[index].name); in tegra_xusb_pad_find_phy_node()
111 for (i = 0; i < lane->soc->num_funcs; i++) in tegra_xusb_lane_lookup_function()
112 if (strcmp(function, lane->soc->funcs[i]) == 0) in tegra_xusb_lane_lookup_function()
155 pad->soc->ops->remove(pad); in tegra_xusb_pad_release()
175 err = dev_set_name(&pad->dev, "%s", pad->soc->name); in tegra_xusb_pad_init()
202 pad->lanes = devm_kcalloc(&pad->dev, pad->soc->num_lanes, sizeof(lane), in tegra_xusb_pad_register()
209 for (i = 0; i < pad->soc->num_lanes; i++) { in tegra_xusb_pad_register()
257 unsigned int i = pad->soc->num_lanes; in tegra_xusb_pad_unregister()
269 const struct tegra_xusb_pad_soc *soc) in tegra_xusb_pad_create() argument
[all …]
/drivers/pinctrl/mvebu/
Dpinctrl-armada-xp.c413 struct mvebu_pinctrl_soc_info *soc = in armada_xp_pinctrl_suspend() local
417 nregs = DIV_ROUND_UP(soc->nmodes, MVEBU_MPPS_PER_REG); in armada_xp_pinctrl_suspend()
427 struct mvebu_pinctrl_soc_info *soc = in armada_xp_pinctrl_resume() local
431 nregs = DIV_ROUND_UP(soc->nmodes, MVEBU_MPPS_PER_REG); in armada_xp_pinctrl_resume()
441 struct mvebu_pinctrl_soc_info *soc = &armada_xp_pinctrl_info; in armada_xp_pinctrl_probe() local
455 soc->variant = (unsigned) match->data & 0xff; in armada_xp_pinctrl_probe()
457 switch (soc->variant) { in armada_xp_pinctrl_probe()
459 soc->controls = mv78230_mpp_controls; in armada_xp_pinctrl_probe()
460 soc->ncontrols = ARRAY_SIZE(mv78230_mpp_controls); in armada_xp_pinctrl_probe()
461 soc->modes = armada_xp_mpp_modes; in armada_xp_pinctrl_probe()
[all …]
Dpinctrl-armada-370.c399 struct mvebu_pinctrl_soc_info *soc = &armada_370_pinctrl_info; in armada_370_pinctrl_probe() local
407 soc->variant = 0; /* no variants for Armada 370 */ in armada_370_pinctrl_probe()
408 soc->controls = mv88f6710_mpp_controls; in armada_370_pinctrl_probe()
409 soc->ncontrols = ARRAY_SIZE(mv88f6710_mpp_controls); in armada_370_pinctrl_probe()
410 soc->modes = mv88f6710_mpp_modes; in armada_370_pinctrl_probe()
411 soc->nmodes = ARRAY_SIZE(mv88f6710_mpp_modes); in armada_370_pinctrl_probe()
412 soc->gpioranges = mv88f6710_mpp_gpio_ranges; in armada_370_pinctrl_probe()
413 soc->ngpioranges = ARRAY_SIZE(mv88f6710_mpp_gpio_ranges); in armada_370_pinctrl_probe()
415 pdev->dev.platform_data = soc; in armada_370_pinctrl_probe()
Dpinctrl-armada-375.c417 struct mvebu_pinctrl_soc_info *soc = &armada_375_pinctrl_info; in armada_375_pinctrl_probe() local
425 soc->variant = 0; /* no variants for Armada 375 */ in armada_375_pinctrl_probe()
426 soc->controls = mv88f6720_mpp_controls; in armada_375_pinctrl_probe()
427 soc->ncontrols = ARRAY_SIZE(mv88f6720_mpp_controls); in armada_375_pinctrl_probe()
428 soc->modes = mv88f6720_mpp_modes; in armada_375_pinctrl_probe()
429 soc->nmodes = ARRAY_SIZE(mv88f6720_mpp_modes); in armada_375_pinctrl_probe()
430 soc->gpioranges = mv88f6720_mpp_gpio_ranges; in armada_375_pinctrl_probe()
431 soc->ngpioranges = ARRAY_SIZE(mv88f6720_mpp_gpio_ranges); in armada_375_pinctrl_probe()
433 pdev->dev.platform_data = soc; in armada_375_pinctrl_probe()
/drivers/pcmcia/
Dsa1111_generic.c153 s->soc.nr = ops->first + i; in sa1111_pcmcia_add()
154 s->soc.clk = clk; in sa1111_pcmcia_add()
156 soc_pcmcia_init_one(&s->soc, ops, &dev->dev); in sa1111_pcmcia_add()
158 if (s->soc.nr) { in sa1111_pcmcia_add()
159 s->soc.socket.pci_irq = dev->irq[IDX_IRQ_S1_READY_NINT]; in sa1111_pcmcia_add()
160 s->soc.stat[SOC_STAT_CD].irq = dev->irq[IDX_IRQ_S1_CD_VALID]; in sa1111_pcmcia_add()
161 s->soc.stat[SOC_STAT_CD].name = "SA1111 CF card detect"; in sa1111_pcmcia_add()
162 s->soc.stat[SOC_STAT_BVD1].irq = dev->irq[IDX_IRQ_S1_BVD1_STSCHG]; in sa1111_pcmcia_add()
163 s->soc.stat[SOC_STAT_BVD1].name = "SA1111 CF BVD1"; in sa1111_pcmcia_add()
165 s->soc.socket.pci_irq = dev->irq[IDX_IRQ_S0_READY_NINT]; in sa1111_pcmcia_add()
[all …]
/drivers/thermal/ti-soc-thermal/
DMakefile1 obj-$(CONFIG_TI_SOC_THERMAL) += ti-soc-thermal.o
2 ti-soc-thermal-y := ti-bandgap.o
3 ti-soc-thermal-$(CONFIG_TI_THERMAL) += ti-thermal-common.o
4 ti-soc-thermal-$(CONFIG_DRA752_THERMAL) += dra752-thermal-data.o
5 ti-soc-thermal-$(CONFIG_OMAP3_THERMAL) += omap3-thermal-data.o
6 ti-soc-thermal-$(CONFIG_OMAP4_THERMAL) += omap4-thermal-data.o
7 ti-soc-thermal-$(CONFIG_OMAP5_THERMAL) += omap5-thermal-data.o
/drivers/gpu/host1x/
Dmipi.c120 const struct tegra_mipi_soc *soc; member
160 if (mipi->soc->needs_vclamp_ref) in tegra_mipi_power_up()
200 if (mipi->soc->needs_vclamp_ref) in tegra_mipi_power_down()
315 const struct tegra_mipi_soc *soc = device->mipi->soc; in tegra_mipi_calibrate() local
326 value = MIPI_CAL_BIAS_PAD_DRV_DN_REF(soc->pad_drive_down_ref) | in tegra_mipi_calibrate()
327 MIPI_CAL_BIAS_PAD_DRV_UP_REF(soc->pad_drive_up_ref); in tegra_mipi_calibrate()
333 value |= MIPI_CAL_BIAS_PAD_VCLAMP(soc->pad_vclamp_level); in tegra_mipi_calibrate()
334 value |= MIPI_CAL_BIAS_PAD_VAUXP(soc->pad_vauxp_level); in tegra_mipi_calibrate()
337 for (i = 0; i < soc->num_pads; i++) { in tegra_mipi_calibrate()
342 MIPI_CAL_CONFIG_HSPDOS(soc->hspdos) | in tegra_mipi_calibrate()
[all …]
/drivers/pinctrl/nomadik/
Dpinctrl-abx500.c106 struct abx500_pinctrl_soc_data *soc; member
204 if (!pct->soc->pullud) { in abx500_get_pull_updown()
211 pullud = pct->soc->pullud; in abx500_get_pull_updown()
240 if (!pct->soc->pullud) { in abx500_set_pull_updown()
247 pullud = pct->soc->pullud; in abx500_set_pull_updown()
270 struct pullud *pullud = pct->soc->pullud; in abx500_pullud_supported()
358 struct alternate_functions af = pct->soc->alternate_functions[gpio]; in abx500_set_mode()
483 struct alternate_functions af = pct->soc->alternate_functions[gpio]; in abx500_get_mode()
667 return pct->soc->nfunctions; in abx500_pmx_get_funcs_cnt()
675 return pct->soc->functions[function].name; in abx500_pmx_get_func_name()
[all …]
Dpinctrl-abx500.h196 void abx500_pinctrl_ab8500_init(struct abx500_pinctrl_soc_data **soc);
201 abx500_pinctrl_ab8500_init(struct abx500_pinctrl_soc_data **soc) in abx500_pinctrl_ab8500_init() argument
209 void abx500_pinctrl_ab8540_init(struct abx500_pinctrl_soc_data **soc);
214 abx500_pinctrl_ab8540_init(struct abx500_pinctrl_soc_data **soc) in abx500_pinctrl_ab8540_init() argument
222 void abx500_pinctrl_ab9540_init(struct abx500_pinctrl_soc_data **soc);
227 abx500_pinctrl_ab9540_init(struct abx500_pinctrl_soc_data **soc) in abx500_pinctrl_ab9540_init() argument
235 void abx500_pinctrl_ab8505_init(struct abx500_pinctrl_soc_data **soc);
240 abx500_pinctrl_ab8505_init(struct abx500_pinctrl_soc_data **soc) in abx500_pinctrl_ab8505_init() argument
Dpinctrl-nomadik.h151 void nmk_pinctrl_stn8815_init(const struct nmk_pinctrl_soc_data **soc);
156 nmk_pinctrl_stn8815_init(const struct nmk_pinctrl_soc_data **soc) in nmk_pinctrl_stn8815_init() argument
164 void nmk_pinctrl_db8500_init(const struct nmk_pinctrl_soc_data **soc);
169 nmk_pinctrl_db8500_init(const struct nmk_pinctrl_soc_data **soc) in nmk_pinctrl_db8500_init() argument
177 void nmk_pinctrl_db8540_init(const struct nmk_pinctrl_soc_data **soc);
182 nmk_pinctrl_db8540_init(const struct nmk_pinctrl_soc_data **soc) in nmk_pinctrl_db8540_init() argument
/drivers/soc/tegra/fuse/
Dfuse-tegra.c100 .soc = NULL,
147 if (fuse->soc->probe) { in tegra_fuse_probe()
148 err = fuse->soc->probe(fuse); in tegra_fuse_probe()
153 if (tegra_fuse_create_sysfs(&pdev->dev, fuse->soc->info->size, in tegra_fuse_probe()
154 fuse->soc->info)) in tegra_fuse_probe()
175 unsigned int offset = fuse->soc->info->spare + spare * 4; in tegra_fuse_read_spare()
241 fuse->soc = &tegra20_fuse_soc; in tegra_init_fuse()
247 fuse->soc = &tegra30_fuse_soc; in tegra_init_fuse()
253 fuse->soc = &tegra114_fuse_soc; in tegra_init_fuse()
259 fuse->soc = &tegra124_fuse_soc; in tegra_init_fuse()
[all …]
/drivers/thermal/tegra/
Dsoctherm.c236 struct tegra_soctherm_soc *soc; member
295 const struct tegra_tsensor *sensor = &tegra->soc->tsensors[i]; in enable_tsensor()
448 temp = enforce_temp_range(dev, trip_temp) / ts->soc->thresh_grain; in thermtrip_program()
489 temp = enforce_temp_range(dev, trip_temp) / ts->soc->thresh_grain; in throttrip_program()
648 const struct tegra_tsensor *tsensors = ts->soc->tsensors; in regs_show()
649 const struct tegra_tsensor_group **ttgs = ts->soc->ttgs; in regs_show()
655 for (i = 0; i < ts->soc->num_tsensors; i++) { in regs_show()
725 for (i = 0; i < ts->soc->num_ttgs; i++) { in regs_show()
736 v = sign_extend32(state, ts->soc->bptt - 1); in regs_show()
737 v *= ts->soc->thresh_grain; in regs_show()
[all …]
/drivers/iommu/
Dtegra-smmu.c27 const struct tegra_smmu_soc *soc; member
75 ((smmu)->soc->num_tlb_lines & (smmu)->tlb_mask)
172 offset &= ~(smmu->mc->soc->atom_size - 1); in smmu_flush_ptc()
174 if (smmu->mc->soc->num_address_bits > 32) { in smmu_flush_ptc()
235 id = find_first_zero_bit(smmu->asids, smmu->soc->num_asids); in tegra_smmu_alloc_asid()
236 if (id >= smmu->soc->num_asids) { in tegra_smmu_alloc_asid()
317 for (i = 0; i < smmu->soc->num_swgroups; i++) { in tegra_smmu_find_swgroup()
318 if (smmu->soc->swgroups[i].swgroup == swgroup) { in tegra_smmu_find_swgroup()
319 group = &smmu->soc->swgroups[i]; in tegra_smmu_find_swgroup()
334 for (i = 0; i < smmu->soc->num_clients; i++) { in tegra_smmu_enable()
[all …]
/drivers/pinctrl/qcom/
Dpinctrl-msm.c69 const struct msm_pinctrl_soc_data *soc; member
77 return pctrl->soc->ngroups; in msm_get_groups_count()
85 return pctrl->soc->groups[group].name; in msm_get_group_name()
95 *pins = pctrl->soc->groups[group].pins; in msm_get_group_pins()
96 *num_pins = pctrl->soc->groups[group].npins; in msm_get_group_pins()
112 return pctrl->soc->nfunctions; in msm_get_functions_count()
120 return pctrl->soc->functions[function].name; in msm_get_function_name()
130 *groups = pctrl->soc->functions[function].groups; in msm_get_function_groups()
131 *num_groups = pctrl->soc->functions[function].ngroups; in msm_get_function_groups()
145 g = &pctrl->soc->groups[group]; in msm_pinmux_set_mux()
[all …]
/drivers/memory/tegra/
Dmc.c92 for (i = 0; i < mc->soc->num_clients; i++) { in tegra_mc_setup_latency_allowance()
93 const struct tegra_mc_la *la = &mc->soc->clients[i].la; in tegra_mc_setup_latency_allowance()
123 for (i = 0; i < mc->soc->num_emem_regs; ++i) in tegra_mc_write_emem_configuration()
124 mc_writel(mc, timing->emem_data[i], mc->soc->emem_regs[i]); in tegra_mc_write_emem_configuration()
153 timing->emem_data = devm_kcalloc(mc->dev, mc->soc->num_emem_regs, in load_one_timing()
160 mc->soc->num_emem_regs); in load_one_timing()
271 if (mc->soc->num_address_bits > 32) { in tegra_mc_irq()
288 id = value & mc->soc->client_id_mask; in tegra_mc_irq()
290 for (i = 0; i < mc->soc->num_clients; i++) { in tegra_mc_irq()
291 if (mc->soc->clients[i].id == id) { in tegra_mc_irq()
[all …]
/drivers/pinctrl/tegra/
Dpinctrl-tegra.c41 const struct tegra_pinctrl_soc_data *soc; member
62 return pmx->soc->ngroups; in tegra_pinctrl_get_groups_count()
70 return pmx->soc->groups[group].name; in tegra_pinctrl_get_group_name()
80 *pins = pmx->soc->groups[group].pins; in tegra_pinctrl_get_group_pins()
81 *num_pins = pmx->soc->groups[group].npins; in tegra_pinctrl_get_group_pins()
243 return pmx->soc->nfunctions; in tegra_pinctrl_get_funcs_count()
251 return pmx->soc->functions[function].name; in tegra_pinctrl_get_func_name()
261 *groups = pmx->soc->functions[function].groups; in tegra_pinctrl_get_func_groups()
262 *num_groups = pmx->soc->functions[function].ngroups; in tegra_pinctrl_get_func_groups()
276 g = &pmx->soc->groups[group]; in tegra_pinctrl_set_mux()
[all …]
/drivers/bus/
Dmvebu-mbus.c145 const struct mvebu_mbus_soc_data *soc; member
193 return mbus->soc->win_remap_offset(win) != MVEBU_MBUS_NO_REMAP; in mvebu_mbus_window_is_remappable()
206 mbus->soc->win_cfg_offset(win); in mvebu_mbus_read_window()
230 mbus->soc->win_remap_offset(win); in mvebu_mbus_read_window()
244 addr = mbus->mbuswins_base + mbus->soc->win_cfg_offset(win); in mvebu_mbus_disable_window()
249 addr = mbus->mbuswins_base + mbus->soc->win_remap_offset(win); in mvebu_mbus_disable_window()
261 mbus->soc->win_cfg_offset(win); in mvebu_mbus_window_is_free()
278 for (win = 0; win < mbus->soc->num_wins; win++) { in mvebu_mbus_window_conflicts()
309 for (win = 0; win < mbus->soc->num_wins; win++) { in mvebu_mbus_find_window()
334 mbus->soc->win_cfg_offset(win); in mvebu_mbus_setup_window()
[all …]
/drivers/pci/host/
Dpci-tegra.c303 const struct tegra_pcie_soc *soc; member
546 const struct tegra_pcie_soc *soc = port->pcie->soc; in tegra_pcie_port_enable() local
553 if (soc->has_pex_clkreq_en) in tegra_pcie_port_enable()
566 const struct tegra_pcie_soc *soc = port->pcie->soc; in tegra_pcie_port_disable() local
577 if (soc->has_pex_clkreq_en) in tegra_pcie_port_disable()
781 const struct tegra_pcie_soc *soc = pcie->soc; in tegra_pcie_pll_wait() local
787 value = pads_readl(pcie, soc->pads_pll_ctl); in tegra_pcie_pll_wait()
798 const struct tegra_pcie_soc *soc = pcie->soc; in tegra_pcie_phy_enable() local
814 value = pads_readl(pcie, soc->pads_pll_ctl); in tegra_pcie_phy_enable()
816 value |= PADS_PLL_CTL_REFCLK_INTERNAL_CML | soc->tx_ref_sel; in tegra_pcie_phy_enable()
[all …]

1234