Home
last modified time | relevance | path

Searched refs:soc_info (Results 1 – 25 of 37) sorted by relevance

12

/openbmc/linux/arch/mips/ralink/
H A Dmt7620.c56 soc_info->mem_size_min = MT7620_SDRAM_SIZE_MIN; in mt7620_dram_init()
57 soc_info->mem_size_max = MT7620_SDRAM_SIZE_MAX; in mt7620_dram_init()
62 soc_info->mem_size_min = MT7620_DDR1_SIZE_MIN; in mt7620_dram_init()
63 soc_info->mem_size_max = MT7620_DDR1_SIZE_MAX; in mt7620_dram_init()
68 soc_info->mem_size_min = MT7620_DDR2_SIZE_MIN; in mt7620_dram_init()
69 soc_info->mem_size_max = MT7620_DDR2_SIZE_MAX; in mt7620_dram_init()
82 soc_info->mem_size_min = MT7620_DDR1_SIZE_MIN; in mt7628_dram_init()
241 soc_info->mem_base = MT7620_DRAM_BASE; in prom_soc_init()
243 mt7628_dram_init(soc_info); in prom_soc_init()
245 mt7620_dram_init(soc_info); in prom_soc_init()
[all …]
H A Drt305x.c113 soc_info->compatible = "ralink,rt3050-soc"; in rt305x_get_soc_name()
117 soc_info->compatible = "ralink,rt3052-soc"; in rt305x_get_soc_name()
122 soc_info->compatible = "ralink,rt3350-soc"; in rt305x_get_soc_name()
126 soc_info->compatible = "ralink,rt3352-soc"; in rt305x_get_soc_name()
130 soc_info->compatible = "ralink,rt5350-soc"; in rt305x_get_soc_name()
203 soc_info->mem_base = RT305X_SDRAM_BASE; in prom_soc_init()
205 soc_info->mem_size = rt5350_get_mem_size(); in prom_soc_init()
207 soc_info->mem_size_min = RT305X_MEM_SIZE_MIN; in prom_soc_init()
208 soc_info->mem_size_max = RT305X_MEM_SIZE_MAX; in prom_soc_init()
210 soc_info->mem_size_min = RT3352_MEM_SIZE_MIN; in prom_soc_init()
[all …]
H A Dof.c103 if (soc_info.mem_detect) in plat_mem_setup()
104 soc_info.mem_detect(); in plat_mem_setup()
105 else if (soc_info.mem_size) in plat_mem_setup()
106 memblock_add(soc_info.mem_base, soc_info.mem_size * SZ_1M); in plat_mem_setup()
108 detect_memory_region(soc_info.mem_base, in plat_mem_setup()
109 soc_info.mem_size_min * SZ_1M, in plat_mem_setup()
110 soc_info.mem_size_max * SZ_1M); in plat_mem_setup()
115 __dt_register_buses(soc_info.compatible, "palmbus"); in plat_of_setup()
H A Drt3883.c90 void __init prom_soc_init(struct ralink_soc_info *soc_info) in prom_soc_init() argument
93 soc_info->compatible = "ralink,rt3883-soc"; in prom_soc_init()
98 snprintf(soc_info->sys_type, RAMIPS_SYS_TYPE_LEN, in prom_soc_init()
104 soc_info->mem_base = RT3883_SDRAM_BASE; in prom_soc_init()
105 soc_info->mem_size_min = RT3883_MEM_SIZE_MIN; in prom_soc_init()
106 soc_info->mem_size_max = RT3883_MEM_SIZE_MAX; in prom_soc_init()
109 soc_info_ptr = soc_info; in prom_soc_init()
H A Drt288x.c90 void __init prom_soc_init(struct ralink_soc_info *soc_info) in prom_soc_init() argument
93 soc_info->compatible = "ralink,r2880-soc"; in prom_soc_init()
98 snprintf(soc_info->sys_type, RAMIPS_SYS_TYPE_LEN, in prom_soc_init()
104 soc_info->mem_base = RT2880_SDRAM_BASE; in prom_soc_init()
105 soc_info->mem_size_min = RT2880_MEM_SIZE_MIN; in prom_soc_init()
106 soc_info->mem_size_max = RT2880_MEM_SIZE_MAX; in prom_soc_init()
109 soc_info_ptr = soc_info; in prom_soc_init()
H A Dmt7621.c167 void __init prom_soc_init(struct ralink_soc_info *soc_info) in prom_soc_init() argument
192 soc_info->compatible = "mediatek,mt7621-soc"; in prom_soc_init()
199 snprintf(soc_info->sys_type, RAMIPS_SYS_TYPE_LEN, in prom_soc_init()
205 soc_info->mem_detect = mt7621_memory_detect; in prom_soc_init()
207 soc_info_ptr = soc_info; in prom_soc_init()
H A Dprom.c18 struct ralink_soc_info soc_info; variable
25 return soc_info.sys_type; in get_system_type()
60 prom_soc_init(&soc_info); in prom_init()
H A Dcommon.h22 extern struct ralink_soc_info soc_info;
26 extern void __init prom_soc_init(struct ralink_soc_info *soc_info);
/openbmc/linux/arch/arm/mach-davinci/
H A Dcommon.c25 static int __init davinci_init_id(struct davinci_soc_info *soc_info) in davinci_init_id() argument
33 base = ioremap(soc_info->jtag_id_reg, SZ_4K); in davinci_init_id()
39 soc_info->jtag_id = __raw_readl(base); in davinci_init_id()
42 variant = (soc_info->jtag_id & 0xf0000000) >> 28; in davinci_init_id()
43 part_no = (soc_info->jtag_id & 0x0ffff000) >> 12; in davinci_init_id()
45 for (i = 0, dip = soc_info->ids; i < soc_info->ids_num; in davinci_init_id()
49 soc_info->cpu_id = dip->cpu_id; in davinci_init_id()
55 pr_err("Unknown DaVinci JTAG ID 0x%x\n", soc_info->jtag_id); in davinci_init_id()
59 void __init davinci_common_init(const struct davinci_soc_info *soc_info) in davinci_common_init() argument
63 if (!soc_info) { in davinci_common_init()
[all …]
H A Dmux.c34 struct davinci_soc_info *soc_info = &davinci_soc_info; in davinci_cfg_reg() local
40 if (WARN_ON(!soc_info->pinmux_pins)) in davinci_cfg_reg()
44 pinmux_base = ioremap(soc_info->pinmux_base, SZ_4K); in davinci_cfg_reg()
49 if (index >= soc_info->pinmux_pins_num) { in davinci_cfg_reg()
51 index, soc_info->pinmux_pins_num); in davinci_cfg_reg()
56 cfg = &soc_info->pinmux_pins[index]; in davinci_cfg_reg()
H A Dcommon.h54 extern void davinci_common_init(const struct davinci_soc_info *soc_info);
/openbmc/linux/arch/mips/lantiq/
H A Dprom.c29 static struct ltq_soc_info soc_info; variable
41 return soc_info.sys_type; in get_system_type()
46 return soc_info.type; in ltq_soc_type()
103 ltq_soc_detect(&soc_info); in prom_init()
104 snprintf(soc_info.sys_type, LTQ_SYS_TYPE_LEN - 1, "%s rev %s", in prom_init()
105 soc_info.name, soc_info.rev_type); in prom_init()
106 soc_info.sys_type[LTQ_SYS_TYPE_LEN - 1] = '\0'; in prom_init()
107 pr_info("SoC: %s\n", soc_info.sys_type); in prom_init()
/openbmc/linux/drivers/soc/samsung/
H A Dexynos-chipid.c76 struct exynos_chipid_info *soc_info) in exynos_chipid_get_chipid_info() argument
84 soc_info->product_id = val & EXYNOS_MASK; in exynos_chipid_get_chipid_info()
93 soc_info->revision = (main_rev << EXYNOS_REV_PART_SHIFT) | sub_rev; in exynos_chipid_get_chipid_info()
101 struct exynos_chipid_info soc_info; in exynos_chipid_probe() local
116 ret = exynos_chipid_get_chipid_info(regmap, drv_data, &soc_info); in exynos_chipid_probe()
132 "%x", soc_info.revision); in exynos_chipid_probe()
133 soc_dev_attr->soc_id = product_id_to_soc_id(soc_info.product_id); in exynos_chipid_probe()
151 soc_dev_attr->soc_id, soc_info.product_id, soc_info.revision); in exynos_chipid_probe()
/openbmc/linux/drivers/clocksource/
H A Dingenic-ost.c68 const struct ingenic_ost_soc_info *soc_info; in ingenic_ost_probe() local
76 soc_info = device_get_match_data(dev); in ingenic_ost_probe()
77 if (!soc_info) in ingenic_ost_probe()
105 if (soc_info->is64bit) in ingenic_ost_probe()
124 if (soc_info->is64bit) in ingenic_ost_probe()
136 if (soc_info->is64bit) in ingenic_ost_probe()
H A Dingenic-timer.c275 const struct ingenic_soc_info *soc_info = id->data; in ingenic_tcu_init() local
298 tcu->pwm_channels_mask = GENMASK(soc_info->num_channels - 1, in ingenic_tcu_init()
305 soc_info->num_channels - num_possible_cpus() + 1) { in ingenic_tcu_init()
321 soc_info->num_channels, in ingenic_tcu_init()
327 soc_info->num_channels, in ingenic_tcu_init()
/openbmc/linux/drivers/gpu/drm/ingenic/
H A Dingenic-drm-drv.c407 if (priv->soc_info->has_osd && in ingenic_drm_crtc_atomic_begin()
485 priv->soc_info->has_osd, in ingenic_drm_plane_atomic_check()
507 if (priv->soc_info->has_osd && in ingenic_drm_plane_atomic_check()
527 if (priv->soc_info->has_osd) { in ingenic_drm_plane_enable()
542 if (priv->soc_info->has_osd) { in ingenic_drm_plane_disable()
617 if (priv->soc_info->has_osd) { in ingenic_drm_plane_config()
1102 if (!soc_info) { in ingenic_drm_bind()
1125 priv->soc_info = soc_info; in ingenic_drm_bind()
1220 if (soc_info->has_osd) { in ingenic_drm_bind()
1356 if (soc_info->has_osd) in ingenic_drm_bind()
[all …]
H A Dingenic-ipu.c37 struct soc_info { struct
60 const struct soc_info *soc_info; argument
511 if (ipu->soc_info->has_bicubic) in ingenic_ipu_plane_atomic_update()
765 if (ipu->soc_info->manual_restart) in ingenic_ipu_irq_handler()
777 if (ipu->soc_info->manual_restart) in ingenic_ipu_irq_handler()
797 const struct soc_info *soc_info; in ingenic_ipu_bind() local
809 soc_info = of_device_get_match_data(dev); in ingenic_ipu_bind()
810 if (!soc_info) { in ingenic_ipu_bind()
818 ipu->soc_info = soc_info; in ingenic_ipu_bind()
855 soc_info->formats, soc_info->num_formats, in ingenic_ipu_bind()
[all …]
/openbmc/linux/drivers/iio/adc/
H A Dat91-sama5d2_adc.c599 struct at91_adc_soc_info soc_info; member
808 if (st->soc_info.platform->layout->EOC_ISR) in at91_adc_irq_status()
817 if (st->soc_info.platform->layout->EOC_IMR) in at91_adc_irq_mask()
1623 st->soc_info.platform->max_index + 1) { in at91_adc_touch_data_handler()
1981 val > st->soc_info.max_sample_rate) in at91_adc_write_raw()
1989 st->soc_info.startup_time, 0); in at91_adc_write_raw()
2172 st->soc_info.startup_time, 0); in at91_adc_hw_init()
2268 if (!st->soc_info.platform->temp_sensor) in at91_adc_temp_sensor_init()
2347 &st->soc_info.min_sample_rate); in at91_adc_probe()
2355 &st->soc_info.max_sample_rate); in at91_adc_probe()
[all …]
/openbmc/linux/sound/soc/jz4740/
H A Djz4740-i2s.c91 const struct i2s_soc_info *soc_info; member
105 if (!i2s->soc_info->shared_fifo_flush) { in jz4740_i2s_startup()
121 if (i2s->soc_info->shared_fifo_flush) in jz4740_i2s_startup()
292 i2s->soc_info->field_i2sdiv_playback.lsb); in jz4740_i2s_hw_params()
299 i2s->soc_info->field_i2sdiv_capture.lsb); in jz4740_i2s_hw_params()
506 i2s->soc_info->field_rx_fifo_thresh); in jz4740_i2s_init_regmap_fields()
512 i2s->soc_info->field_tx_fifo_thresh); in jz4740_i2s_init_regmap_fields()
518 i2s->soc_info->field_i2sdiv_capture); in jz4740_i2s_init_regmap_fields()
524 i2s->soc_info->field_i2sdiv_playback); in jz4740_i2s_init_regmap_fields()
550 i2s->soc_info = device_get_match_data(dev); in jz4740_i2s_dev_probe()
[all …]
/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/
H A Ddwmac-ingenic.c58 const struct ingenic_soc_info *soc_info; member
78 if (mac->soc_info->set_mode) { in ingenic_mac_init()
79 ret = mac->soc_info->set_mode(plat_dat); in ingenic_mac_init()
126 return regmap_update_bits(mac->regmap, 0, mac->soc_info->mask, val); in jz4775_mac_set_mode()
144 return regmap_update_bits(mac->regmap, 0, mac->soc_info->mask, 0); in x1000_mac_set_mode()
164 return regmap_update_bits(mac->regmap, 0, mac->soc_info->mask, val); in x1600_mac_set_mode()
185 return regmap_update_bits(mac->regmap, 0, mac->soc_info->mask, val); in x1830_mac_set_mode()
228 return regmap_update_bits(mac->regmap, 0, mac->soc_info->mask, val); in x2000_mac_set_mode()
291 mac->soc_info = data; in ingenic_mac_probe()
/openbmc/linux/drivers/mtd/nand/raw/ingenic/
H A Dingenic_nand_drv.c45 const struct jz_soc_info *soc_info; member
243 if (nfc->soc_info->oob_first) in ingenic_nand_attach_chip()
249 else if (nfc->soc_info->oob_layout) in ingenic_nand_attach_chip()
250 mtd_set_ooblayout(mtd, nfc->soc_info->oob_layout); in ingenic_nand_attach_chip()
268 cs->base + nfc->soc_info->cmd_offset); in ingenic_nand_exec_instr()
273 cs->base + nfc->soc_info->addr_offset); in ingenic_nand_exec_instr()
278 ioread8_rep(cs->base + nfc->soc_info->data_offset, in ingenic_nand_exec_instr()
282 ioread16_rep(cs->base + nfc->soc_info->data_offset, in ingenic_nand_exec_instr()
289 iowrite8_rep(cs->base + nfc->soc_info->data_offset, in ingenic_nand_exec_instr()
495 nfc->soc_info = device_get_match_data(dev); in ingenic_nand_probe()
[all …]
/openbmc/linux/drivers/pwm/
H A Dpwm-jz4740.c23 struct soc_info { struct
227 const struct soc_info *info; in jz4740_pwm_probe()
250 static const struct soc_info jz4740_soc_info = {
254 static const struct soc_info jz4725b_soc_info = {
258 static const struct soc_info x1000_soc_info = {
/openbmc/linux/drivers/clk/ingenic/
H A Dtcu.c51 const struct ingenic_soc_info *soc_info; member
352 tcu->soc_info = id->data; in ingenic_tcu_probe()
354 if (tcu->soc_info->has_tcu_clk) { in ingenic_tcu_probe()
366 if (tcu->soc_info->allow_missing_tcu_clk && ret == -EINVAL) { in ingenic_tcu_probe()
391 for (i = 0; i < tcu->soc_info->num_channels; i++) { in ingenic_tcu_probe()
416 if (tcu->soc_info->has_ost) { in ingenic_tcu_probe()
438 if (tcu->soc_info->has_ost) in ingenic_tcu_probe()
/openbmc/linux/drivers/memory/
H A Djz4780-nemc.c53 const struct jz_soc_info *soc_info; member
209 if (cycles > nemc->soc_info->tas_tah_cycles_max) { in jz4780_nemc_configure_bank()
221 if (cycles > nemc->soc_info->tas_tah_cycles_max) { in jz4780_nemc_configure_bank()
285 nemc->soc_info = device_get_match_data(dev); in jz4780_nemc_probe()
286 if (!nemc->soc_info) in jz4780_nemc_probe()
/openbmc/linux/drivers/phy/ingenic/
H A Dphy-ingenic-usb.c91 const struct ingenic_soc_info *soc_info; member
111 priv->soc_info->usb_phy_init(phy); in ingenic_usb_phy_init()
327 priv->soc_info = device_get_match_data(dev); in ingenic_usb_phy_probe()
328 if (!priv->soc_info) { in ingenic_usb_phy_probe()

12