/linux-6.6.21/arch/mips/ralink/ |
D | mt7620.c | 51 mt7620_dram_init(struct ralink_soc_info *soc_info) in mt7620_dram_init() argument 56 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() 77 mt7628_dram_init(struct ralink_soc_info *soc_info) in mt7628_dram_init() argument 82 soc_info->mem_size_min = MT7620_DDR1_SIZE_MIN; in mt7628_dram_init() 83 soc_info->mem_size_max = MT7620_DDR1_SIZE_MAX; in mt7628_dram_init() [all …]
|
D | rt305x.c | 105 static const char __init *rt305x_get_soc_name(struct ralink_soc_info *soc_info) in rt305x_get_soc_name() argument 113 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() 193 void __init prom_soc_init(struct ralink_soc_info *soc_info) in prom_soc_init() argument 195 const char *name = rt305x_get_soc_name(soc_info); in prom_soc_init() 197 snprintf(soc_info->sys_type, RAMIPS_SYS_TYPE_LEN, in prom_soc_init() 203 soc_info->mem_base = RT305X_SDRAM_BASE; in prom_soc_init() [all …]
|
D | of.c | 103 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()
|
D | rt3883.c | 90 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()
|
D | rt288x.c | 90 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()
|
D | mt7621.c | 167 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()
|
D | prom.c | 18 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()
|
D | common.h | 22 extern struct ralink_soc_info soc_info; 26 extern void __init prom_soc_init(struct ralink_soc_info *soc_info);
|
/linux-6.6.21/arch/arm/mach-davinci/ |
D | common.c | 25 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 …]
|
D | mux.c | 34 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()
|
/linux-6.6.21/arch/mips/lantiq/ |
D | prom.c | 29 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()
|
/linux-6.6.21/drivers/soc/samsung/ |
D | exynos-chipid.c | 76 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()
|
/linux-6.6.21/drivers/gpu/drm/ingenic/ |
D | ingenic-drm-drv.c | 96 const struct jz_soc_info *soc_info; member 324 JZ_LCD_CTRL_OFUP | priv->soc_info->max_burst); in ingenic_drm_crtc_update_timings() 349 if (drm_atomic_crtc_needs_modeset(crtc_state) && priv->soc_info->has_osd) { in ingenic_drm_crtc_atomic_check() 387 if (mode->hdisplay > priv->soc_info->max_width) in ingenic_drm_crtc_mode_valid() 389 if (mode->vdisplay > priv->soc_info->max_height) in ingenic_drm_crtc_mode_valid() 407 if (priv->soc_info->has_osd && in ingenic_drm_crtc_atomic_begin() 470 if (priv->soc_info->plane_f0_not_working && plane == &priv->f0) in ingenic_drm_plane_atomic_check() 485 priv->soc_info->has_osd, in ingenic_drm_plane_atomic_check() 494 if (!priv->soc_info->has_osd && in ingenic_drm_plane_atomic_check() 507 if (priv->soc_info->has_osd && in ingenic_drm_plane_atomic_check() [all …]
|
D | ingenic-ipu.c | 37 struct soc_info { struct 60 const struct soc_info *soc_info; argument 244 ipu->soc_info->set_coefs(ipu, reg, ipu->sharpness, in ingenic_ipu_set_downscale_coefs() 260 ipu->soc_info->set_coefs(ipu, reg, 0, false, 512, i == num - 1); in ingenic_ipu_set_integer_upscale_coefs() 278 ipu->soc_info->set_coefs(ipu, reg, ipu->sharpness, in ingenic_ipu_set_upscale_coefs() 511 if (ipu->soc_info->has_bicubic) in ingenic_ipu_plane_atomic_update() 519 if (!ipu->soc_info->has_bicubic && !upscaling_w) in ingenic_ipu_plane_atomic_update() 531 if (!ipu->soc_info->has_bicubic && !upscaling_h) 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() [all …]
|
/linux-6.6.21/drivers/clocksource/ |
D | ingenic-ost.c | 68 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()
|
D | ingenic-timer.c | 275 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()
|
D | ingenic-sysost.c | 75 const struct ingenic_soc_info *soc_info; member 454 ost->soc_info = id->data; in ingenic_ost_probe() 456 ost->clocks = kzalloc(struct_size(ost->clocks, hws, ost->soc_info->num_channels), in ingenic_ost_probe() 463 ost->clocks->num = ost->soc_info->num_channels; in ingenic_ost_probe()
|
/linux-6.6.21/drivers/iio/adc/ |
D | at91-sama5d2_adc.c | 429 readl_relaxed((st)->base + (st)->soc_info.platform->layout->reg) 433 writel_relaxed(val, (st)->base + (st)->soc_info.platform->layout->reg) 599 struct at91_adc_soc_info soc_info; member 786 return mask & GENMASK(st->soc_info.platform->nr_channels, 0); in at91_adc_active_scan_mask_to_reg() 797 cor <<= st->soc_info.platform->layout->COR_diff_offset; in at91_adc_cor() 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() 830 if (!st->soc_info.platform->layout->EOC_IDR) in at91_adc_eoc_dis() 836 if (!st->soc_info.platform->layout->EOC_IDR) in at91_adc_eoc_ena() 847 unsigned int osr_mask = st->soc_info.platform->osr_mask; in at91_adc_config_emr() [all …]
|
/linux-6.6.21/sound/soc/jz4740/ |
D | jz4740-i2s.c | 91 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() 291 i2sdiv_max = GENMASK(i2s->soc_info->field_i2sdiv_playback.msb, in jz4740_i2s_hw_params() 292 i2s->soc_info->field_i2sdiv_playback.lsb); in jz4740_i2s_hw_params() 298 i2sdiv_max = GENMASK(i2s->soc_info->field_i2sdiv_capture.msb, 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() [all …]
|
/linux-6.6.21/drivers/net/ethernet/stmicro/stmmac/ |
D | dwmac-ingenic.c | 58 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()
|
/linux-6.6.21/drivers/mtd/nand/raw/ingenic/ |
D | ingenic_nand_drv.c | 45 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() 293 iowrite16_rep(cs->base + nfc->soc_info->data_offset, in ingenic_nand_exec_instr() [all …]
|
/linux-6.6.21/drivers/pwm/ |
D | pwm-jz4740.c | 23 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 = {
|
/linux-6.6.21/drivers/clk/ingenic/ |
D | tcu.c | 51 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()
|
/linux-6.6.21/drivers/memory/ |
D | jz4780-nemc.c | 53 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()
|
/linux-6.6.21/drivers/phy/ingenic/ |
D | phy-ingenic-usb.c | 91 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()
|