| /Linux-v5.4/drivers/soc/samsung/ |
| D | exynos-chipid.c | 50 struct soc_device_attribute *soc_dev_attr; in exynos_chipid_early_init() local 68 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in exynos_chipid_early_init() 69 if (!soc_dev_attr) in exynos_chipid_early_init() 72 soc_dev_attr->family = "Samsung Exynos"; in exynos_chipid_early_init() 75 of_property_read_string(root, "model", &soc_dev_attr->machine); in exynos_chipid_early_init() 78 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%x", revision); in exynos_chipid_early_init() 79 soc_dev_attr->soc_id = product_id_to_soc_id(product_id); in exynos_chipid_early_init() 80 if (!soc_dev_attr->soc_id) { in exynos_chipid_early_init() 87 soc_dev = soc_device_register(soc_dev_attr); in exynos_chipid_early_init() 95 soc_dev_attr->soc_id, product_id, revision); in exynos_chipid_early_init() [all …]
|
| /Linux-v5.4/drivers/soc/amlogic/ |
| D | meson-mx-socinfo.c | 109 struct soc_device_attribute *soc_dev_attr; in meson_mx_socinfo_init() local 148 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in meson_mx_socinfo_init() 149 if (!soc_dev_attr) in meson_mx_socinfo_init() 152 soc_dev_attr->family = "Amlogic Meson"; in meson_mx_socinfo_init() 155 of_property_read_string(np, "model", &soc_dev_attr->machine); in meson_mx_socinfo_init() 158 soc_dev_attr->revision = meson_mx_socinfo_revision(major_ver, misc_ver, in meson_mx_socinfo_init() 160 soc_dev_attr->soc_id = meson_mx_socinfo_soc_id(major_ver, metal_rev); in meson_mx_socinfo_init() 162 soc_dev = soc_device_register(soc_dev_attr); in meson_mx_socinfo_init() 164 kfree_const(soc_dev_attr->revision); in meson_mx_socinfo_init() 165 kfree_const(soc_dev_attr->soc_id); in meson_mx_socinfo_init() [all …]
|
| D | meson-gx-socinfo.c | 124 struct soc_device_attribute *soc_dev_attr; in meson_gx_socinfo_init() local 166 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in meson_gx_socinfo_init() 167 if (!soc_dev_attr) in meson_gx_socinfo_init() 170 soc_dev_attr->family = "Amlogic Meson"; in meson_gx_socinfo_init() 173 of_property_read_string(np, "model", &soc_dev_attr->machine); in meson_gx_socinfo_init() 176 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%x:%x - %x:%x", in meson_gx_socinfo_init() 181 soc_dev_attr->soc_id = kasprintf(GFP_KERNEL, "%s (%s)", in meson_gx_socinfo_init() 185 soc_dev = soc_device_register(soc_dev_attr); in meson_gx_socinfo_init() 187 kfree(soc_dev_attr->revision); in meson_gx_socinfo_init() 188 kfree_const(soc_dev_attr->soc_id); in meson_gx_socinfo_init() [all …]
|
| /Linux-v5.4/arch/nios2/platform/ |
| D | platform.c | 22 struct soc_device_attribute *soc_dev_attr; in nios2_soc_device_init() local 25 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in nios2_soc_device_init() 26 if (soc_dev_attr) { in nios2_soc_device_init() 29 soc_dev_attr->machine = kasprintf(GFP_KERNEL, "%s", in nios2_soc_device_init() 32 soc_dev_attr->family = "Nios II"; in nios2_soc_device_init() 34 soc_dev = soc_device_register(soc_dev_attr); in nios2_soc_device_init() 36 kfree(soc_dev_attr->machine); in nios2_soc_device_init() 37 kfree(soc_dev_attr); in nios2_soc_device_init()
|
| /Linux-v5.4/drivers/soc/bcm/brcmstb/ |
| D | common.c | 95 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 …]
|
| /Linux-v5.4/arch/arm/mach-mvebu/ |
| D | mvebu-soc-id.c | 153 struct soc_device_attribute *soc_dev_attr; in mvebu_soc_device() local 160 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in mvebu_soc_device() 161 if (!soc_dev_attr) in mvebu_soc_device() 164 soc_dev_attr->family = kasprintf(GFP_KERNEL, "Marvell"); in mvebu_soc_device() 165 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%X", soc_rev); in mvebu_soc_device() 166 soc_dev_attr->soc_id = kasprintf(GFP_KERNEL, "%X", soc_dev_id); in mvebu_soc_device() 168 soc_dev = soc_device_register(soc_dev_attr); in mvebu_soc_device() 170 kfree(soc_dev_attr->family); in mvebu_soc_device() 171 kfree(soc_dev_attr->revision); in mvebu_soc_device() 172 kfree(soc_dev_attr->soc_id); in mvebu_soc_device() [all …]
|
| /Linux-v5.4/arch/arm/mach-imx/ |
| D | cpu.c | 78 struct soc_device_attribute *soc_dev_attr; in imx_soc_device_init() local 84 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in imx_soc_device_init() 85 if (!soc_dev_attr) in imx_soc_device_init() 88 soc_dev_attr->family = "Freescale i.MX"; in imx_soc_device_init() 91 ret = of_property_read_string(root, "model", &soc_dev_attr->machine); in imx_soc_device_init() 154 soc_dev_attr->soc_id = soc_id; in imx_soc_device_init() 156 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%d.%d", in imx_soc_device_init() 159 if (!soc_dev_attr->revision) in imx_soc_device_init() 162 soc_dev = soc_device_register(soc_dev_attr); in imx_soc_device_init() 169 kfree(soc_dev_attr->revision); in imx_soc_device_init() [all …]
|
| /Linux-v5.4/arch/arm/mach-zynq/ |
| D | common.c | 106 struct soc_device_attribute *soc_dev_attr; in zynq_init_machine() local 110 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in zynq_init_machine() 111 if (!soc_dev_attr) in zynq_init_machine() 116 soc_dev_attr->family = kasprintf(GFP_KERNEL, "Xilinx Zynq"); in zynq_init_machine() 117 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "0x%x", system_rev); in zynq_init_machine() 118 soc_dev_attr->soc_id = kasprintf(GFP_KERNEL, "0x%x", in zynq_init_machine() 121 soc_dev = soc_device_register(soc_dev_attr); in zynq_init_machine() 123 kfree(soc_dev_attr->family); in zynq_init_machine() 124 kfree(soc_dev_attr->revision); in zynq_init_machine() 125 kfree(soc_dev_attr->soc_id); in zynq_init_machine() [all …]
|
| /Linux-v5.4/drivers/soc/fsl/ |
| D | guts.c | 29 static struct soc_device_attribute soc_dev_attr; variable 165 soc_dev_attr.machine = machine; in fsl_guts_probe() 170 soc_dev_attr.family = devm_kasprintf(dev, GFP_KERNEL, in fsl_guts_probe() 173 soc_dev_attr.family = devm_kasprintf(dev, GFP_KERNEL, "QorIQ"); in fsl_guts_probe() 175 if (!soc_dev_attr.family) in fsl_guts_probe() 177 soc_dev_attr.soc_id = devm_kasprintf(dev, GFP_KERNEL, in fsl_guts_probe() 179 if (!soc_dev_attr.soc_id) in fsl_guts_probe() 181 soc_dev_attr.revision = devm_kasprintf(dev, GFP_KERNEL, "%d.%d", in fsl_guts_probe() 183 if (!soc_dev_attr.revision) in fsl_guts_probe() 186 soc_dev = soc_device_register(&soc_dev_attr); in fsl_guts_probe() [all …]
|
| /Linux-v5.4/drivers/soc/imx/ |
| D | soc-imx-scu.c | 89 struct soc_device_attribute *soc_dev_attr; in imx_scu_soc_probe() local 98 soc_dev_attr = devm_kzalloc(&pdev->dev, sizeof(*soc_dev_attr), in imx_scu_soc_probe() 100 if (!soc_dev_attr) in imx_scu_soc_probe() 103 soc_dev_attr->family = "Freescale i.MX"; in imx_scu_soc_probe() 107 &soc_dev_attr->machine); in imx_scu_soc_probe() 117 soc_dev_attr->soc_id = kasprintf(GFP_KERNEL, "0x%x", val); in imx_scu_soc_probe() 118 if (!soc_dev_attr->soc_id) in imx_scu_soc_probe() 124 soc_dev_attr->revision = kasprintf(GFP_KERNEL, in imx_scu_soc_probe() 128 if (!soc_dev_attr->revision) { in imx_scu_soc_probe() 133 soc_dev = soc_device_register(soc_dev_attr); in imx_scu_soc_probe() [all …]
|
| D | soc-imx8.c | 141 struct soc_device_attribute *soc_dev_attr; in imx8_soc_init() local 148 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in imx8_soc_init() 149 if (!soc_dev_attr) in imx8_soc_init() 152 soc_dev_attr->family = "Freescale i.MX"; in imx8_soc_init() 154 ret = of_property_read_string(of_root, "model", &soc_dev_attr->machine); in imx8_soc_init() 166 soc_dev_attr->soc_id = data->name; in imx8_soc_init() 171 soc_dev_attr->revision = imx8_revision(soc_rev); in imx8_soc_init() 172 if (!soc_dev_attr->revision) { in imx8_soc_init() 177 soc_dev = soc_device_register(soc_dev_attr); in imx8_soc_init() 194 if (strcmp(soc_dev_attr->revision, "unknown")) in imx8_soc_init() [all …]
|
| /Linux-v5.4/drivers/soc/ux500/ |
| D | ux500-soc-id.c | 180 static void __init soc_info_populate(struct soc_device_attribute *soc_dev_attr, in soc_info_populate() argument 183 soc_dev_attr->soc_id = db8500_read_soc_id(backupram); in soc_info_populate() 184 soc_dev_attr->machine = ux500_get_machine(); in soc_info_populate() 185 soc_dev_attr->family = ux500_get_family(); in soc_info_populate() 186 soc_dev_attr->revision = ux500_get_revision(); in soc_info_populate() 196 struct soc_device_attribute *soc_dev_attr; in ux500_soc_device_init() local 205 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in ux500_soc_device_init() 206 if (!soc_dev_attr) { in ux500_soc_device_init() 211 soc_info_populate(soc_dev_attr, backupram); in ux500_soc_device_init() 214 soc_dev = soc_device_register(soc_dev_attr); in ux500_soc_device_init() [all …]
|
| /Linux-v5.4/drivers/soc/versatile/ |
| D | soc-integrator.c | 103 struct soc_device_attribute *soc_dev_attr; in integrator_soc_init() local 123 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in integrator_soc_init() 124 if (!soc_dev_attr) in integrator_soc_init() 127 soc_dev_attr->soc_id = "Integrator"; in integrator_soc_init() 128 soc_dev_attr->machine = "Integrator"; in integrator_soc_init() 129 soc_dev_attr->family = "Versatile"; in integrator_soc_init() 130 soc_dev = soc_device_register(soc_dev_attr); in integrator_soc_init() 132 kfree(soc_dev_attr); in integrator_soc_init()
|
| D | soc-realview.c | 86 struct soc_device_attribute *soc_dev_attr; in realview_soc_probe() local 94 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in realview_soc_probe() 95 if (!soc_dev_attr) in realview_soc_probe() 99 &soc_dev_attr->soc_id); in realview_soc_probe() 103 soc_dev_attr->machine = "RealView"; in realview_soc_probe() 104 soc_dev_attr->family = "Versatile"; in realview_soc_probe() 105 soc_dev = soc_device_register(soc_dev_attr); in realview_soc_probe() 107 kfree(soc_dev_attr); in realview_soc_probe()
|
| /Linux-v5.4/drivers/soc/renesas/ |
| D | renesas-soc.c | 283 struct soc_device_attribute *soc_dev_attr; in renesas_soc_init() local 350 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in renesas_soc_init() 351 if (!soc_dev_attr) in renesas_soc_init() 355 of_property_read_string(np, "model", &soc_dev_attr->machine); in renesas_soc_init() 358 soc_dev_attr->family = kstrdup_const(family->name, GFP_KERNEL); in renesas_soc_init() 359 soc_dev_attr->soc_id = kstrdup_const(strchr(match->compatible, ',') + 1, in renesas_soc_init() 362 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "ES%u.%u", eshi, in renesas_soc_init() 365 pr_info("Detected Renesas %s %s %s\n", soc_dev_attr->family, in renesas_soc_init() 366 soc_dev_attr->soc_id, soc_dev_attr->revision ?: ""); in renesas_soc_init() 368 soc_dev = soc_device_register(soc_dev_attr); in renesas_soc_init() [all …]
|
| /Linux-v5.4/drivers/soc/atmel/ |
| D | soc.c | 210 struct soc_device_attribute *soc_dev_attr; in at91_soc_init() local 243 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in at91_soc_init() 244 if (!soc_dev_attr) in at91_soc_init() 247 soc_dev_attr->family = soc->family; in at91_soc_init() 248 soc_dev_attr->soc_id = soc->name; in at91_soc_init() 249 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%X", in at91_soc_init() 251 soc_dev = soc_device_register(soc_dev_attr); in at91_soc_init() 253 kfree(soc_dev_attr->revision); in at91_soc_init() 254 kfree(soc_dev_attr); in at91_soc_init()
|
| /Linux-v5.4/arch/arm/mach-mxs/ |
| D | mach-mxs.c | 381 struct soc_device_attribute *soc_dev_attr; in mxs_machine_init() local 384 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in mxs_machine_init() 385 if (!soc_dev_attr) in mxs_machine_init() 389 ret = of_property_read_string(root, "model", &soc_dev_attr->machine); in mxs_machine_init() 393 soc_dev_attr->family = "Freescale MXS Family"; in mxs_machine_init() 394 soc_dev_attr->soc_id = mxs_get_soc_id(); in mxs_machine_init() 395 soc_dev_attr->revision = mxs_get_revision(); in mxs_machine_init() 397 soc_dev = soc_device_register(soc_dev_attr); in mxs_machine_init() 399 kfree(soc_dev_attr->revision); in mxs_machine_init() 400 kfree(soc_dev_attr); in mxs_machine_init()
|
| /Linux-v5.4/arch/arm/mach-omap2/ |
| D | id.c | 792 struct soc_device_attribute *soc_dev_attr; in omap_soc_device_init() local 794 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in omap_soc_device_init() 795 if (!soc_dev_attr) in omap_soc_device_init() 798 soc_dev_attr->machine = soc_name; in omap_soc_device_init() 799 soc_dev_attr->family = omap_get_family(); in omap_soc_device_init() 800 soc_dev_attr->revision = soc_rev; in omap_soc_device_init() 802 soc_dev = soc_device_register(soc_dev_attr); in omap_soc_device_init() 804 kfree(soc_dev_attr); in omap_soc_device_init()
|
| /Linux-v5.4/arch/arm/mach-ep93xx/ |
| D | core.c | 942 struct soc_device_attribute *soc_dev_attr; in ep93xx_init_soc() local 945 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in ep93xx_init_soc() 946 if (!soc_dev_attr) in ep93xx_init_soc() 949 soc_dev_attr->machine = ep93xx_get_machine_name(); in ep93xx_init_soc() 950 soc_dev_attr->family = "Cirrus Logic EP93xx"; in ep93xx_init_soc() 951 soc_dev_attr->revision = ep93xx_get_soc_rev(); in ep93xx_init_soc() 952 soc_dev_attr->soc_id = ep93xx_get_soc_id(); in ep93xx_init_soc() 954 soc_dev = soc_device_register(soc_dev_attr); in ep93xx_init_soc() 956 kfree(soc_dev_attr->machine); in ep93xx_init_soc() 957 kfree(soc_dev_attr); in ep93xx_init_soc()
|
| /Linux-v5.4/drivers/base/ |
| D | soc.c | 121 struct soc_device *soc_device_register(struct soc_device_attribute *soc_dev_attr) in soc_device_register() argument 129 early_soc_dev_attr = soc_dev_attr; in soc_device_register() 145 soc_dev->attr = soc_dev_attr; in soc_device_register()
|