Searched refs:soc_dev_attr (Results 1 - 11 of 11) sorted by relevance
/arch/arm/mach-imx/ |
H A D | cpu.c | 78 struct soc_device_attribute *soc_dev_attr; local 84 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); 85 if (!soc_dev_attr) 88 soc_dev_attr->family = "Freescale i.MX"; 91 ret = of_property_read_string(root, "model", &soc_dev_attr->machine); 136 soc_dev_attr->soc_id = soc_id; 138 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%d.%d", 141 if (!soc_dev_attr->revision) 144 soc_dev = soc_device_register(soc_dev_attr); [all...] |
/arch/arm/mach-mvebu/ |
H A D | mvebu-soc-id.c | 153 struct soc_device_attribute *soc_dev_attr; local 160 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); 161 if (!soc_dev_attr) 164 soc_dev_attr->family = kasprintf(GFP_KERNEL, "Marvell"); 165 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%X", soc_rev); 166 soc_dev_attr->soc_id = kasprintf(GFP_KERNEL, "%X", soc_dev_id); 168 soc_dev = soc_device_register(soc_dev_attr); 170 kfree(soc_dev_attr->family); 171 kfree(soc_dev_attr [all...] |
/arch/arm/mach-tegra/ |
H A D | tegra.c | 90 struct soc_device_attribute *soc_dev_attr; local 96 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); 97 if (!soc_dev_attr) 100 soc_dev_attr->family = kasprintf(GFP_KERNEL, "Tegra"); 101 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%d", 103 soc_dev_attr->soc_id = kasprintf(GFP_KERNEL, "%u", tegra_get_chip_id()); 105 soc_dev = soc_device_register(soc_dev_attr); 107 kfree(soc_dev_attr->family); 108 kfree(soc_dev_attr [all...] |
/arch/arm/mach-ux500/ |
H A D | cpu.c | 119 static void __init soc_info_populate(struct soc_device_attribute *soc_dev_attr, argument 122 soc_dev_attr->soc_id = soc_id; 123 soc_dev_attr->machine = ux500_get_machine(); 124 soc_dev_attr->family = ux500_get_family(); 125 soc_dev_attr->revision = ux500_get_revision(); 135 struct soc_device_attribute *soc_dev_attr; local 137 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); 138 if (!soc_dev_attr) 141 soc_info_populate(soc_dev_attr, soc_i [all...] |
/arch/arm/mach-clps711x/ |
H A D | devices.c | 102 struct soc_device_attribute *soc_dev_attr; local 122 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); 123 if (!soc_dev_attr) 126 soc_dev_attr->machine = of_flat_dt_get_machine_name(); 127 soc_dev_attr->family = "Cirrus Logic CLPS711X"; 128 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%u", system_rev); 129 soc_dev_attr->soc_id = kasprintf(GFP_KERNEL, "%08x", id[0]); 131 soc_dev = soc_device_register(soc_dev_attr); 133 kfree(soc_dev_attr [all...] |
/arch/arm/mach-zynq/ |
H A D | common.c | 114 struct soc_device_attribute *soc_dev_attr; local 118 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); 119 if (!soc_dev_attr) 124 soc_dev_attr->family = kasprintf(GFP_KERNEL, "Xilinx Zynq"); 125 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "0x%x", system_rev); 126 soc_dev_attr->soc_id = kasprintf(GFP_KERNEL, "0x%x", 129 soc_dev = soc_device_register(soc_dev_attr); 131 kfree(soc_dev_attr->family); 132 kfree(soc_dev_attr [all...] |
/arch/arm/mach-integrator/ |
H A D | integrator_cp.c | 279 struct soc_device_attribute *soc_dev_attr; local 295 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); 296 if (!soc_dev_attr) 299 soc_dev_attr->soc_id = "XCV"; 300 soc_dev_attr->machine = "Integrator/CP"; 301 soc_dev_attr->family = "Integrator"; 302 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%c", 305 soc_dev = soc_device_register(soc_dev_attr); 307 kfree(soc_dev_attr [all...] |
H A D | integrator_ap.c | 482 struct soc_device_attribute *soc_dev_attr; local 505 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); 506 if (!soc_dev_attr) 509 soc_dev_attr->soc_id = "XVC"; 510 soc_dev_attr->machine = "Integrator/AP"; 511 soc_dev_attr->family = "Integrator"; 512 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%c", 515 soc_dev = soc_device_register(soc_dev_attr); 517 kfree(soc_dev_attr [all...] |
/arch/arm/mach-mxs/ |
H A D | mach-mxs.c | 461 struct soc_device_attribute *soc_dev_attr; local 464 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); 465 if (!soc_dev_attr) 469 ret = of_property_read_string(root, "model", &soc_dev_attr->machine); 473 soc_dev_attr->family = "Freescale MXS Family"; 474 soc_dev_attr->soc_id = mxs_get_soc_id(); 475 soc_dev_attr->revision = mxs_get_revision(); 477 soc_dev = soc_device_register(soc_dev_attr); 479 kfree(soc_dev_attr [all...] |
/arch/arm/mach-omap2/ |
H A D | id.c | 739 struct soc_device_attribute *soc_dev_attr; local 741 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); 742 if (!soc_dev_attr) 745 soc_dev_attr->machine = soc_name; 746 soc_dev_attr->family = omap_get_family(); 747 soc_dev_attr->revision = soc_rev; 749 soc_dev = soc_device_register(soc_dev_attr); 751 kfree(soc_dev_attr);
|
/arch/arm/mach-ep93xx/ |
H A D | core.c | 1007 struct soc_device_attribute *soc_dev_attr; local 1010 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); 1011 if (!soc_dev_attr) 1014 soc_dev_attr->machine = ep93xx_get_machine_name(); 1015 soc_dev_attr->family = "Cirrus Logic EP93xx"; 1016 soc_dev_attr->revision = ep93xx_get_soc_rev(); 1017 soc_dev_attr->soc_id = ep93xx_get_soc_id(); 1019 soc_dev = soc_device_register(soc_dev_attr); 1021 kfree(soc_dev_attr [all...] |
Completed in 847 milliseconds