Home
last modified time | relevance | path

Searched refs:soc_dev_attr (Results 1 – 22 of 22) sorted by relevance

/drivers/soc/fsl/
A Dguts.c216 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in fsl_guts_init()
217 if (!soc_dev_attr) in fsl_guts_init()
224 if (!soc_dev_attr->machine) in fsl_guts_init()
235 if (!soc_dev_attr->family) in fsl_guts_init()
239 if (!soc_dev_attr->soc_id) in fsl_guts_init()
244 if (!soc_dev_attr->revision) in fsl_guts_init()
263 soc_dev_attr->soc_id, soc_dev_attr->revision); in fsl_guts_init()
270 kfree(soc_dev_attr->machine); in fsl_guts_init()
271 kfree(soc_dev_attr->family); in fsl_guts_init()
272 kfree(soc_dev_attr->soc_id); in fsl_guts_init()
[all …]
/drivers/soc/ti/
A Dk3-socinfo.c71 struct soc_device_attribute *soc_dev_attr) in k3_chipinfo_partno_to_names() argument
86 struct soc_device_attribute *soc_dev_attr) in k3_chipinfo_variant_to_sr() argument
101 if (!soc_dev_attr->revision) in k3_chipinfo_variant_to_sr()
119 struct soc_device_attribute *soc_dev_attr; in k3_chipinfo_probe() local
156 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in k3_chipinfo_probe()
157 if (!soc_dev_attr) in k3_chipinfo_probe()
176 soc_dev = soc_device_register(soc_dev_attr); in k3_chipinfo_probe()
183 soc_dev_attr->family, in k3_chipinfo_probe()
184 soc_dev_attr->revision, jtag_id); in k3_chipinfo_probe()
189 kfree(soc_dev_attr->revision); in k3_chipinfo_probe()
[all …]
/drivers/soc/amlogic/
A Dmeson-mx-socinfo.c109 struct soc_device_attribute *soc_dev_attr; in meson_mx_socinfo_init() local
149 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in meson_mx_socinfo_init()
150 if (!soc_dev_attr) in meson_mx_socinfo_init()
153 soc_dev_attr->family = "Amlogic Meson"; in meson_mx_socinfo_init()
156 of_property_read_string(np, "model", &soc_dev_attr->machine); in meson_mx_socinfo_init()
161 soc_dev_attr->soc_id = meson_mx_socinfo_soc_id(major_ver, metal_rev); in meson_mx_socinfo_init()
163 soc_dev = soc_device_register(soc_dev_attr); in meson_mx_socinfo_init()
165 kfree_const(soc_dev_attr->revision); in meson_mx_socinfo_init()
166 kfree_const(soc_dev_attr->soc_id); in meson_mx_socinfo_init()
167 kfree(soc_dev_attr); in meson_mx_socinfo_init()
[all …]
A Dmeson-gx-socinfo.c142 struct soc_device_attribute *soc_dev_attr; in meson_gx_socinfo_init() local
184 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in meson_gx_socinfo_init()
185 if (!soc_dev_attr) in meson_gx_socinfo_init()
188 soc_dev_attr->family = "Amlogic Meson"; in meson_gx_socinfo_init()
189 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%x:%x - %x:%x", in meson_gx_socinfo_init()
194 soc_dev_attr->soc_id = kasprintf(GFP_KERNEL, "%s (%s)", in meson_gx_socinfo_init()
198 soc_dev = soc_device_register(soc_dev_attr); in meson_gx_socinfo_init()
200 kfree(soc_dev_attr->revision); in meson_gx_socinfo_init()
201 kfree_const(soc_dev_attr->soc_id); in meson_gx_socinfo_init()
202 kfree(soc_dev_attr); in meson_gx_socinfo_init()
[all …]
/drivers/soc/imx/
A Dsoc-imx.c28 struct soc_device_attribute *soc_dev_attr; in imx_soc_device_init() local
43 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in imx_soc_device_init()
44 if (!soc_dev_attr) in imx_soc_device_init()
47 soc_dev_attr->family = "Freescale i.MX"; in imx_soc_device_init()
144 soc_dev_attr->soc_id = soc_id; in imx_soc_device_init()
184 if (!soc_dev_attr->revision) { in imx_soc_device_init()
190 if (!soc_dev_attr->serial_number) { in imx_soc_device_init()
195 soc_dev = soc_device_register(soc_dev_attr); in imx_soc_device_init()
204 kfree(soc_dev_attr->serial_number); in imx_soc_device_init()
206 kfree(soc_dev_attr->revision); in imx_soc_device_init()
[all …]
A Dsoc-imx8m.c220 struct soc_device_attribute *soc_dev_attr; in imx8m_soc_probe() local
231 soc_dev_attr = devm_kzalloc(dev, sizeof(*soc_dev_attr), GFP_KERNEL); in imx8m_soc_probe()
232 if (!soc_dev_attr) in imx8m_soc_probe()
241 soc_dev_attr->family = "Freescale i.MX"; in imx8m_soc_probe()
253 soc_dev_attr->soc_id = data->name; in imx8m_soc_probe()
275 soc_dev_attr->revision = imx8_revision(dev, soc_rev); in imx8m_soc_probe()
276 if (!soc_dev_attr->revision) in imx8m_soc_probe()
285 if (!soc_dev_attr->serial_number) in imx8m_soc_probe()
288 soc_dev = soc_device_register(soc_dev_attr); in imx8m_soc_probe()
296 pr_info("SoC: %s revision %s\n", soc_dev_attr->soc_id, in imx8m_soc_probe()
[all …]
/drivers/soc/loongson/
A Dloongson2_guts.c15 static struct soc_device_attribute soc_dev_attr; variable
119 if (!soc_dev_attr.machine) in loongson2_guts_probe()
126 soc_dev_attr.family = devm_kasprintf(dev, GFP_KERNEL, in loongson2_guts_probe()
131 if (!soc_dev_attr.family) in loongson2_guts_probe()
133 soc_dev_attr.soc_id = devm_kasprintf(dev, GFP_KERNEL, in loongson2_guts_probe()
135 if (!soc_dev_attr.soc_id) in loongson2_guts_probe()
139 if (!soc_dev_attr.revision) in loongson2_guts_probe()
142 soc_dev = soc_device_register(&soc_dev_attr); in loongson2_guts_probe()
146 pr_info("Machine: %s\n", soc_dev_attr.machine); in loongson2_guts_probe()
147 pr_info("SoC family: %s\n", soc_dev_attr.family); in loongson2_guts_probe()
[all …]
/drivers/soc/renesas/
A Drz-sysc.c31 struct soc_device_attribute *soc_dev_attr; in rz_sysc_soc_init() local
45 soc_dev_attr = devm_kzalloc(sysc->dev, sizeof(*soc_dev_attr), GFP_KERNEL); in rz_sysc_soc_init()
46 if (!soc_dev_attr) in rz_sysc_soc_init()
49 soc_dev_attr->family = devm_kstrdup(sysc->dev, soc_data->family, GFP_KERNEL); in rz_sysc_soc_init()
50 if (!soc_dev_attr->family) in rz_sysc_soc_init()
53 soc_dev_attr->soc_id = devm_kstrdup(sysc->dev, soc_id, GFP_KERNEL); in rz_sysc_soc_init()
54 if (!soc_dev_attr->soc_id) in rz_sysc_soc_init()
61 if (!soc_dev_attr->revision) in rz_sysc_soc_init()
71 soc_data->print_id(sysc->dev, sysc->base, soc_dev_attr); in rz_sysc_soc_init()
74 soc_dev_attr->family, soc_dev_attr->soc_id, soc_dev_attr->revision); in rz_sysc_soc_init()
[all …]
A Drenesas-soc.c445 struct soc_device_attribute *soc_dev_attr; in renesas_soc_init() local
477 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in renesas_soc_init()
478 if (!soc_dev_attr) { in renesas_soc_init()
485 soc_dev_attr->soc_id = kstrdup_const(soc_id, GFP_KERNEL); in renesas_soc_init()
505 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%u", in renesas_soc_init()
524 soc_dev_attr->soc_id, rev_prefix, soc_dev_attr->revision ?: ""); in renesas_soc_init()
526 soc_dev = soc_device_register(soc_dev_attr); in renesas_soc_init()
535 kfree(soc_dev_attr->revision); in renesas_soc_init()
536 kfree_const(soc_dev_attr->soc_id); in renesas_soc_init()
537 kfree_const(soc_dev_attr->family); in renesas_soc_init()
[all …]
A Dr9a09g047-sys.c34 struct soc_device_attribute *soc_dev_attr) in rzg3e_sys_print_id() argument
47 is_quad_core ? "Quad" : "Dual", soc_dev_attr->family, in rzg3e_sys_print_id()
48 soc_dev_attr->soc_id, soc_dev_attr->revision, in rzg3e_sys_print_id()
A Dr9a09g057-sys.c34 struct soc_device_attribute *soc_dev_attr) in rzv2h_sys_print_id() argument
47 soc_dev_attr->family, soc_dev_attr->soc_id, soc_dev_attr->revision, in rzv2h_sys_print_id()
A Dr9a09g056-sys.c39 struct soc_device_attribute *soc_dev_attr) in rzv2n_sys_print_id() argument
52 dev_info(dev, "Detected Renesas %s %sn%d Rev %s%s%s%s%s\n", soc_dev_attr->family, in rzv2n_sys_print_id()
53 soc_dev_attr->soc_id, 41 + feature_flags, soc_dev_attr->revision, in rzv2n_sys_print_id()
A Drz-sysc.h31 struct soc_device_attribute *soc_dev_attr);
/drivers/soc/bcm/brcmstb/
A Dcommon.c73 struct soc_device_attribute *soc_dev_attr; in brcmstb_soc_device_init() local
85 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in brcmstb_soc_device_init()
86 if (!soc_dev_attr) { in brcmstb_soc_device_init()
91 soc_dev_attr->family = kasprintf(GFP_KERNEL, "%x", in brcmstb_soc_device_init()
94 soc_dev_attr->soc_id = kasprintf(GFP_KERNEL, "%x", in brcmstb_soc_device_init()
97 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%c%d", in brcmstb_soc_device_init()
101 soc_dev = soc_device_register(soc_dev_attr); in brcmstb_soc_device_init()
103 kfree(soc_dev_attr->family); in brcmstb_soc_device_init()
104 kfree(soc_dev_attr->soc_id); in brcmstb_soc_device_init()
105 kfree(soc_dev_attr->revision); in brcmstb_soc_device_init()
[all …]
/drivers/soc/ux500/
A Dux500-soc-id.c189 soc_dev_attr->soc_id = db8500_read_soc_id(backupram); in soc_info_populate()
190 soc_dev_attr->machine = ux500_get_machine(); in soc_info_populate()
191 soc_dev_attr->family = ux500_get_family(); in soc_info_populate()
192 soc_dev_attr->revision = ux500_get_revision(); in soc_info_populate()
193 soc_dev_attr->custom_attr_group = ux500_soc_groups[0]; in soc_info_populate()
199 struct soc_device_attribute *soc_dev_attr; in ux500_soc_device_init() local
208 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in ux500_soc_device_init()
209 if (!soc_dev_attr) { in ux500_soc_device_init()
214 soc_info_populate(soc_dev_attr, backupram); in ux500_soc_device_init()
217 soc_dev = soc_device_register(soc_dev_attr); in ux500_soc_device_init()
[all …]
/drivers/firmware/imx/
A Dimx-scu-soc.c99 struct soc_device_attribute *soc_dev_attr; in imx_scu_soc_init() local
109 soc_dev_attr = devm_kzalloc(dev, sizeof(*soc_dev_attr), in imx_scu_soc_init()
111 if (!soc_dev_attr) in imx_scu_soc_init()
114 soc_dev_attr->family = "Freescale i.MX"; in imx_scu_soc_init()
118 &soc_dev_attr->machine); in imx_scu_soc_init()
132 soc_dev_attr->soc_id = imx_scu_soc_name(val); in imx_scu_soc_init()
137 soc_dev_attr->revision = devm_kasprintf(dev, GFP_KERNEL, "%d.%d", in imx_scu_soc_init()
139 if (!soc_dev_attr->revision) in imx_scu_soc_init()
142 soc_dev_attr->serial_number = devm_kasprintf(dev, GFP_KERNEL, in imx_scu_soc_init()
144 if (!soc_dev_attr->serial_number) in imx_scu_soc_init()
[all …]
/drivers/firmware/smccc/
A Dsoc_id.c33 static struct soc_device_attribute *soc_dev_attr; variable
140 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in smccc_soc_init()
141 if (!soc_dev_attr) in smccc_soc_init()
151 soc_dev_attr->soc_id = soc_id_str; in smccc_soc_init()
152 soc_dev_attr->revision = soc_id_rev_str; in smccc_soc_init()
153 soc_dev_attr->family = soc_id_jep106_id_str; in smccc_soc_init()
154 soc_dev_attr->machine = smccc_soc_name_init(); in smccc_soc_init()
156 soc_dev = soc_device_register(soc_dev_attr); in smccc_soc_init()
158 kfree(soc_dev_attr); in smccc_soc_init()
163 soc_dev_attr->revision); in smccc_soc_init()
[all …]
/drivers/soc/samsung/
A Dexynos-chipid.c109 struct soc_device_attribute *soc_dev_attr; in exynos_chipid_probe() local
127 soc_dev_attr = devm_kzalloc(&pdev->dev, sizeof(*soc_dev_attr), in exynos_chipid_probe()
129 if (!soc_dev_attr) in exynos_chipid_probe()
132 soc_dev_attr->family = "Samsung Exynos"; in exynos_chipid_probe()
135 of_property_read_string(root, "model", &soc_dev_attr->machine); in exynos_chipid_probe()
138 soc_dev_attr->revision = devm_kasprintf(&pdev->dev, GFP_KERNEL, in exynos_chipid_probe()
140 if (!soc_dev_attr->revision) in exynos_chipid_probe()
142 soc_dev_attr->soc_id = product_id_to_soc_id(soc_info.product_id); in exynos_chipid_probe()
143 if (!soc_dev_attr->soc_id) { in exynos_chipid_probe()
149 soc_dev = soc_device_register(soc_dev_attr); in exynos_chipid_probe()
[all …]
/drivers/soc/versatile/
A Dsoc-integrator.c105 struct soc_device_attribute *soc_dev_attr; in integrator_soc_init() local
126 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in integrator_soc_init()
127 if (!soc_dev_attr) in integrator_soc_init()
130 soc_dev_attr->soc_id = "Integrator"; in integrator_soc_init()
131 soc_dev_attr->machine = "Integrator"; in integrator_soc_init()
132 soc_dev_attr->family = "Versatile"; in integrator_soc_init()
133 soc_dev_attr->custom_attr_group = integrator_groups[0]; in integrator_soc_init()
134 soc_dev = soc_device_register(soc_dev_attr); in integrator_soc_init()
136 kfree(soc_dev_attr); in integrator_soc_init()
A Dsoc-realview.c96 struct soc_device_attribute *soc_dev_attr; in realview_soc_probe() local
104 soc_dev_attr = devm_kzalloc(&pdev->dev, sizeof(*soc_dev_attr), GFP_KERNEL); in realview_soc_probe()
105 if (!soc_dev_attr) in realview_soc_probe()
109 &soc_dev_attr->soc_id); in realview_soc_probe()
113 soc_dev_attr->machine = "RealView"; in realview_soc_probe()
114 soc_dev_attr->family = "Versatile"; in realview_soc_probe()
115 soc_dev_attr->custom_attr_group = realview_groups[0]; in realview_soc_probe()
116 soc_dev = soc_device_register(soc_dev_attr); in realview_soc_probe()
/drivers/base/
A Dsoc.c114 static void soc_device_get_machine(struct soc_device_attribute *soc_dev_attr) in soc_device_get_machine() argument
118 if (soc_dev_attr->machine) in soc_device_get_machine()
122 of_property_read_string(np, "model", &soc_dev_attr->machine); in soc_device_get_machine()
128 struct soc_device *soc_device_register(struct soc_device_attribute *soc_dev_attr) in soc_device_register() argument
134 soc_device_get_machine(soc_dev_attr); in soc_device_register()
139 early_soc_dev_attr = soc_dev_attr; in soc_device_register()
155 soc_attr_groups[1] = soc_dev_attr->custom_attr_group; in soc_device_register()
163 soc_dev->attr = soc_dev_attr; in soc_device_register()
/drivers/soc/atmel/
A Dsoc.c338 struct soc_device_attribute *soc_dev_attr; in at91_soc_init() local
371 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in at91_soc_init()
372 if (!soc_dev_attr) in at91_soc_init()
375 soc_dev_attr->family = soc->family; in at91_soc_init()
376 soc_dev_attr->soc_id = soc->name; in at91_soc_init()
377 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%X", in at91_soc_init()
379 soc_dev = soc_device_register(soc_dev_attr); in at91_soc_init()
381 kfree(soc_dev_attr->revision); in at91_soc_init()
382 kfree(soc_dev_attr); in at91_soc_init()

Completed in 31 milliseconds