/drivers/soc/fsl/ |
D | guts.c | 183 struct soc_device_attribute *soc_dev_attr; in fsl_guts_init() local 216 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in fsl_guts_init() 217 if (!soc_dev_attr) in fsl_guts_init() 223 soc_dev_attr->machine = kstrdup(machine, GFP_KERNEL); in fsl_guts_init() 224 if (!soc_dev_attr->machine) in fsl_guts_init() 230 soc_dev_attr->family = kasprintf(GFP_KERNEL, "QorIQ %s", in fsl_guts_init() 233 soc_dev_attr->family = kasprintf(GFP_KERNEL, "QorIQ"); in fsl_guts_init() 235 if (!soc_dev_attr->family) in fsl_guts_init() 238 soc_dev_attr->soc_id = kasprintf(GFP_KERNEL, "svr:0x%08x", svr); in fsl_guts_init() 239 if (!soc_dev_attr->soc_id) in fsl_guts_init() [all …]
|
/drivers/soc/ti/ |
D | k3-socinfo.c | 50 struct soc_device_attribute *soc_dev_attr) in k3_chipinfo_partno_to_names() argument 56 soc_dev_attr->family = k3_soc_ids[i].family_name; in k3_chipinfo_partno_to_names() 66 struct soc_device_attribute *soc_dev_attr; in k3_chipinfo_probe() local 99 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in k3_chipinfo_probe() 100 if (!soc_dev_attr) in k3_chipinfo_probe() 103 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "SR%x.0", variant); in k3_chipinfo_probe() 104 if (!soc_dev_attr->revision) { in k3_chipinfo_probe() 109 ret = k3_chipinfo_partno_to_names(partno_id, soc_dev_attr); in k3_chipinfo_probe() 117 of_property_read_string(node, "model", &soc_dev_attr->machine); in k3_chipinfo_probe() 120 soc_dev = soc_device_register(soc_dev_attr); in k3_chipinfo_probe() [all …]
|
/drivers/soc/amlogic/ |
D | meson-mx-socinfo.c | 109 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 …]
|
D | meson-gx-socinfo.c | 130 struct soc_device_attribute *soc_dev_attr; in meson_gx_socinfo_init() local 172 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in meson_gx_socinfo_init() 173 if (!soc_dev_attr) in meson_gx_socinfo_init() 176 soc_dev_attr->family = "Amlogic Meson"; in meson_gx_socinfo_init() 179 of_property_read_string(np, "model", &soc_dev_attr->machine); in meson_gx_socinfo_init() 182 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%x:%x - %x:%x", in meson_gx_socinfo_init() 187 soc_dev_attr->soc_id = kasprintf(GFP_KERNEL, "%s (%s)", in meson_gx_socinfo_init() 191 soc_dev = soc_device_register(soc_dev_attr); in meson_gx_socinfo_init() 193 kfree(soc_dev_attr->revision); in meson_gx_socinfo_init() 194 kfree_const(soc_dev_attr->soc_id); in meson_gx_socinfo_init() [all …]
|
/drivers/soc/imx/ |
D | soc-imx8m.c | 189 struct soc_device_attribute *soc_dev_attr; in imx8_soc_init() local 196 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in imx8_soc_init() 197 if (!soc_dev_attr) in imx8_soc_init() 200 soc_dev_attr->family = "Freescale i.MX"; in imx8_soc_init() 202 ret = of_property_read_string(of_root, "model", &soc_dev_attr->machine); in imx8_soc_init() 214 soc_dev_attr->soc_id = data->name; in imx8_soc_init() 219 soc_dev_attr->revision = imx8_revision(soc_rev); in imx8_soc_init() 220 if (!soc_dev_attr->revision) { in imx8_soc_init() 225 soc_dev_attr->serial_number = kasprintf(GFP_KERNEL, "%016llX", soc_uid); in imx8_soc_init() 226 if (!soc_dev_attr->serial_number) { in imx8_soc_init() [all …]
|
D | soc-imx.c | 28 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() 144 soc_dev_attr->soc_id = soc_id; in imx_soc_device_init() 181 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%d.%d", in imx_soc_device_init() 184 if (!soc_dev_attr->revision) { in imx_soc_device_init() 189 soc_dev_attr->serial_number = kasprintf(GFP_KERNEL, "%016llX", soc_uid); in imx_soc_device_init() 190 if (!soc_dev_attr->serial_number) { in imx_soc_device_init() [all …]
|
/drivers/firmware/smccc/ |
D | soc_id.c | 33 static struct soc_device_attribute *soc_dev_attr; variable 61 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in smccc_soc_init() 62 if (!soc_dev_attr) in smccc_soc_init() 72 soc_dev_attr->soc_id = soc_id_str; in smccc_soc_init() 73 soc_dev_attr->revision = soc_id_rev_str; in smccc_soc_init() 74 soc_dev_attr->family = soc_id_jep106_id_str; in smccc_soc_init() 76 soc_dev = soc_device_register(soc_dev_attr); in smccc_soc_init() 78 kfree(soc_dev_attr); in smccc_soc_init() 82 pr_info("ID = %s Revision = %s\n", soc_dev_attr->soc_id, in smccc_soc_init() 83 soc_dev_attr->revision); in smccc_soc_init() [all …]
|
/drivers/soc/bcm/brcmstb/ |
D | common.c | 73 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/firmware/imx/ |
D | imx-scu-soc.c | 83 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/ux500/ |
D | ux500-soc-id.c | 186 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/ |
D | soc-realview.c | 88 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()
|
D | soc-integrator.c | 105 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/samsung/ |
D | exynos-chipid.c | 103 struct soc_device_attribute *soc_dev_attr; in exynos_chipid_probe() local 121 soc_dev_attr = devm_kzalloc(&pdev->dev, sizeof(*soc_dev_attr), in exynos_chipid_probe() 123 if (!soc_dev_attr) in exynos_chipid_probe() 126 soc_dev_attr->family = "Samsung Exynos"; in exynos_chipid_probe() 129 of_property_read_string(root, "model", &soc_dev_attr->machine); in exynos_chipid_probe() 132 soc_dev_attr->revision = devm_kasprintf(&pdev->dev, GFP_KERNEL, in exynos_chipid_probe() 134 soc_dev_attr->soc_id = product_id_to_soc_id(soc_info.product_id); in exynos_chipid_probe() 135 if (!soc_dev_attr->soc_id) { in exynos_chipid_probe() 141 soc_dev = soc_device_register(soc_dev_attr); in exynos_chipid_probe() 152 soc_dev_attr->soc_id, soc_info.product_id, soc_info.revision); in exynos_chipid_probe()
|
/drivers/soc/renesas/ |
D | renesas-soc.c | 424 struct soc_device_attribute *soc_dev_attr; in renesas_soc_init() local 456 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in renesas_soc_init() 457 if (!soc_dev_attr) { in renesas_soc_init() 464 of_property_read_string(np, "model", &soc_dev_attr->machine); in renesas_soc_init() 467 soc_dev_attr->family = kstrdup_const(family->name, GFP_KERNEL); in renesas_soc_init() 468 soc_dev_attr->soc_id = kstrdup_const(soc_id, GFP_KERNEL); in renesas_soc_init() 484 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "ES%u.%u", in renesas_soc_init() 488 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%u", in renesas_soc_init() 501 pr_info("Detected Renesas %s %s %s%s\n", soc_dev_attr->family, in renesas_soc_init() 502 soc_dev_attr->soc_id, rev_prefix, soc_dev_attr->revision ?: ""); in renesas_soc_init() [all …]
|
/drivers/soc/atmel/ |
D | soc.c | 302 struct soc_device_attribute *soc_dev_attr; in at91_soc_init() local 335 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in at91_soc_init() 336 if (!soc_dev_attr) in at91_soc_init() 339 soc_dev_attr->family = soc->family; in at91_soc_init() 340 soc_dev_attr->soc_id = soc->name; in at91_soc_init() 341 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%X", in at91_soc_init() 343 soc_dev = soc_device_register(soc_dev_attr); in at91_soc_init() 345 kfree(soc_dev_attr->revision); in at91_soc_init() 346 kfree(soc_dev_attr); in at91_soc_init()
|
/drivers/base/ |
D | soc.c | 114 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()
|