Home
last modified time | relevance | path

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

/drivers/soc/ti/
Dk3-socinfo.c47 struct soc_device_attribute *soc_dev_attr) in k3_chipinfo_partno_to_names() argument
53 soc_dev_attr->family = k3_soc_ids[i].family_name; in k3_chipinfo_partno_to_names()
63 struct soc_device_attribute *soc_dev_attr; in k3_chipinfo_probe() local
96 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in k3_chipinfo_probe()
97 if (!soc_dev_attr) in k3_chipinfo_probe()
100 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "SR%x.0", variant); in k3_chipinfo_probe()
101 if (!soc_dev_attr->revision) { in k3_chipinfo_probe()
106 ret = k3_chipinfo_partno_to_names(partno_id, soc_dev_attr); in k3_chipinfo_probe()
114 of_property_read_string(node, "model", &soc_dev_attr->machine); in k3_chipinfo_probe()
117 soc_dev = soc_device_register(soc_dev_attr); in k3_chipinfo_probe()
[all …]
/drivers/soc/samsung/
Dexynos-chipid.c50 struct soc_device_attribute *soc_dev_attr; in exynos_chipid_early_init() local
76 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in exynos_chipid_early_init()
77 if (!soc_dev_attr) in exynos_chipid_early_init()
80 soc_dev_attr->family = "Samsung Exynos"; in exynos_chipid_early_init()
83 of_property_read_string(root, "model", &soc_dev_attr->machine); in exynos_chipid_early_init()
86 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%x", revision); in exynos_chipid_early_init()
87 soc_dev_attr->soc_id = product_id_to_soc_id(product_id); in exynos_chipid_early_init()
88 if (!soc_dev_attr->soc_id) { in exynos_chipid_early_init()
95 soc_dev = soc_device_register(soc_dev_attr); in exynos_chipid_early_init()
103 soc_dev_attr->soc_id, product_id, revision); in exynos_chipid_early_init()
[all …]
/drivers/soc/imx/
Dsoc-imx8m.c168 struct soc_device_attribute *soc_dev_attr; in imx8_soc_init() local
175 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in imx8_soc_init()
176 if (!soc_dev_attr) in imx8_soc_init()
179 soc_dev_attr->family = "Freescale i.MX"; in imx8_soc_init()
181 ret = of_property_read_string(of_root, "model", &soc_dev_attr->machine); in imx8_soc_init()
193 soc_dev_attr->soc_id = data->name; in imx8_soc_init()
198 soc_dev_attr->revision = imx8_revision(soc_rev); in imx8_soc_init()
199 if (!soc_dev_attr->revision) { in imx8_soc_init()
204 soc_dev_attr->serial_number = kasprintf(GFP_KERNEL, "%016llX", soc_uid); in imx8_soc_init()
205 if (!soc_dev_attr->serial_number) { in imx8_soc_init()
[all …]
Dsoc-imx.c26 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()
50 ret = of_property_read_string(root, "model", &soc_dev_attr->machine); in imx_soc_device_init()
139 soc_dev_attr->soc_id = soc_id; in imx_soc_device_init()
169 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%d.%d", in imx_soc_device_init()
172 if (!soc_dev_attr->revision) { in imx_soc_device_init()
177 soc_dev_attr->serial_number = kasprintf(GFP_KERNEL, "%016llX", soc_uid); in imx_soc_device_init()
178 if (!soc_dev_attr->serial_number) { in imx_soc_device_init()
[all …]
/drivers/soc/amlogic/
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()
159 soc_dev_attr->revision = meson_mx_socinfo_revision(major_ver, misc_ver, 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()
[all …]
Dmeson-gx-socinfo.c129 struct soc_device_attribute *soc_dev_attr; in meson_gx_socinfo_init() local
171 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in meson_gx_socinfo_init()
172 if (!soc_dev_attr) in meson_gx_socinfo_init()
175 soc_dev_attr->family = "Amlogic Meson"; in meson_gx_socinfo_init()
178 of_property_read_string(np, "model", &soc_dev_attr->machine); in meson_gx_socinfo_init()
181 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%x:%x - %x:%x", in meson_gx_socinfo_init()
186 soc_dev_attr->soc_id = kasprintf(GFP_KERNEL, "%s (%s)", in meson_gx_socinfo_init()
190 soc_dev = soc_device_register(soc_dev_attr); in meson_gx_socinfo_init()
192 kfree(soc_dev_attr->revision); in meson_gx_socinfo_init()
193 kfree_const(soc_dev_attr->soc_id); in meson_gx_socinfo_init()
[all …]
/drivers/firmware/smccc/
Dsoc_id.c33 static struct soc_device_attribute *soc_dev_attr; variable
80 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in smccc_soc_init()
81 if (!soc_dev_attr) in smccc_soc_init()
91 soc_dev_attr->soc_id = soc_id_str; in smccc_soc_init()
92 soc_dev_attr->revision = soc_id_rev_str; in smccc_soc_init()
93 soc_dev_attr->family = soc_id_jep106_id_str; in smccc_soc_init()
95 soc_dev = soc_device_register(soc_dev_attr); in smccc_soc_init()
97 kfree(soc_dev_attr); in smccc_soc_init()
101 pr_info("ID = %s Revision = %s\n", soc_dev_attr->soc_id, in smccc_soc_init()
102 soc_dev_attr->revision); in smccc_soc_init()
[all …]
/drivers/soc/bcm/brcmstb/
Dcommon.c95 struct soc_device_attribute *soc_dev_attr; in brcmstb_soc_device_init() local
107 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in brcmstb_soc_device_init()
108 if (!soc_dev_attr) { in brcmstb_soc_device_init()
113 soc_dev_attr->family = kasprintf(GFP_KERNEL, "%x", in brcmstb_soc_device_init()
116 soc_dev_attr->soc_id = kasprintf(GFP_KERNEL, "%x", in brcmstb_soc_device_init()
119 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%c%d", in brcmstb_soc_device_init()
123 soc_dev = soc_device_register(soc_dev_attr); in brcmstb_soc_device_init()
125 kfree(soc_dev_attr->family); in brcmstb_soc_device_init()
126 kfree(soc_dev_attr->soc_id); in brcmstb_soc_device_init()
127 kfree(soc_dev_attr->revision); in brcmstb_soc_device_init()
[all …]
/drivers/firmware/imx/
Dimx-scu-soc.c83 struct soc_device_attribute *soc_dev_attr; in imx_scu_soc_init() local
93 soc_dev_attr = devm_kzalloc(dev, sizeof(*soc_dev_attr), in imx_scu_soc_init()
95 if (!soc_dev_attr) in imx_scu_soc_init()
98 soc_dev_attr->family = "Freescale i.MX"; in imx_scu_soc_init()
102 &soc_dev_attr->machine); in imx_scu_soc_init()
116 soc_dev_attr->soc_id = devm_kasprintf(dev, GFP_KERNEL, "0x%x", val); in imx_scu_soc_init()
117 if (!soc_dev_attr->soc_id) in imx_scu_soc_init()
123 soc_dev_attr->revision = devm_kasprintf(dev, GFP_KERNEL, "%d.%d", in imx_scu_soc_init()
125 if (!soc_dev_attr->revision) in imx_scu_soc_init()
128 soc_dev_attr->serial_number = devm_kasprintf(dev, GFP_KERNEL, in imx_scu_soc_init()
[all …]
/drivers/soc/fsl/
Dguts.c29 static struct soc_device_attribute soc_dev_attr; variable
164 soc_dev_attr.machine = devm_kstrdup(dev, machine, GFP_KERNEL); in fsl_guts_probe()
165 if (!soc_dev_attr.machine) { in fsl_guts_probe()
175 soc_dev_attr.family = devm_kasprintf(dev, GFP_KERNEL, in fsl_guts_probe()
178 soc_dev_attr.family = devm_kasprintf(dev, GFP_KERNEL, "QorIQ"); in fsl_guts_probe()
180 if (!soc_dev_attr.family) in fsl_guts_probe()
182 soc_dev_attr.soc_id = devm_kasprintf(dev, GFP_KERNEL, in fsl_guts_probe()
184 if (!soc_dev_attr.soc_id) in fsl_guts_probe()
186 soc_dev_attr.revision = devm_kasprintf(dev, GFP_KERNEL, "%d.%d", in fsl_guts_probe()
188 if (!soc_dev_attr.revision) in fsl_guts_probe()
[all …]
/drivers/soc/ux500/
Dux500-soc-id.c186 static void __init soc_info_populate(struct soc_device_attribute *soc_dev_attr, in soc_info_populate() argument
189 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()
[all …]
/drivers/soc/versatile/
Dsoc-realview.c88 struct soc_device_attribute *soc_dev_attr; in realview_soc_probe() local
96 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in realview_soc_probe()
97 if (!soc_dev_attr) in realview_soc_probe()
101 &soc_dev_attr->soc_id); in realview_soc_probe()
105 soc_dev_attr->machine = "RealView"; in realview_soc_probe()
106 soc_dev_attr->family = "Versatile"; in realview_soc_probe()
107 soc_dev_attr->custom_attr_group = realview_groups[0]; in realview_soc_probe()
108 soc_dev = soc_device_register(soc_dev_attr); in realview_soc_probe()
110 kfree(soc_dev_attr); in realview_soc_probe()
Dsoc-integrator.c105 struct soc_device_attribute *soc_dev_attr; in integrator_soc_init() local
125 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in integrator_soc_init()
126 if (!soc_dev_attr) in integrator_soc_init()
129 soc_dev_attr->soc_id = "Integrator"; in integrator_soc_init()
130 soc_dev_attr->machine = "Integrator"; in integrator_soc_init()
131 soc_dev_attr->family = "Versatile"; in integrator_soc_init()
132 soc_dev_attr->custom_attr_group = integrator_groups[0]; in integrator_soc_init()
133 soc_dev = soc_device_register(soc_dev_attr); in integrator_soc_init()
135 kfree(soc_dev_attr); in integrator_soc_init()
/drivers/soc/renesas/
Drenesas-soc.c310 struct soc_device_attribute *soc_dev_attr; in renesas_soc_init() local
377 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in renesas_soc_init()
378 if (!soc_dev_attr) in renesas_soc_init()
382 of_property_read_string(np, "model", &soc_dev_attr->machine); in renesas_soc_init()
385 soc_dev_attr->family = kstrdup_const(family->name, GFP_KERNEL); in renesas_soc_init()
386 soc_dev_attr->soc_id = kstrdup_const(strchr(match->compatible, ',') + 1, in renesas_soc_init()
389 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "ES%u.%u", eshi, in renesas_soc_init()
392 pr_info("Detected Renesas %s %s %s\n", soc_dev_attr->family, in renesas_soc_init()
393 soc_dev_attr->soc_id, soc_dev_attr->revision ?: ""); in renesas_soc_init()
395 soc_dev = soc_device_register(soc_dev_attr); in renesas_soc_init()
[all …]
/drivers/soc/atmel/
Dsoc.c211 struct soc_device_attribute *soc_dev_attr; in at91_soc_init() local
244 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in at91_soc_init()
245 if (!soc_dev_attr) in at91_soc_init()
248 soc_dev_attr->family = soc->family; in at91_soc_init()
249 soc_dev_attr->soc_id = soc->name; in at91_soc_init()
250 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%X", in at91_soc_init()
252 soc_dev = soc_device_register(soc_dev_attr); in at91_soc_init()
254 kfree(soc_dev_attr->revision); in at91_soc_init()
255 kfree(soc_dev_attr); in at91_soc_init()
/drivers/base/
Dsoc.c114 struct soc_device *soc_device_register(struct soc_device_attribute *soc_dev_attr) in soc_device_register() argument
123 early_soc_dev_attr = soc_dev_attr; in soc_device_register()
139 soc_attr_groups[1] = soc_dev_attr->custom_attr_group; in soc_device_register()
147 soc_dev->attr = soc_dev_attr; in soc_device_register()