• Home
  • Raw
  • Download

Lines Matching +full:revision +full:- +full:id

2  * ID and revision information for mvebu SoCs
6 * Gregory CLEMENT <gregory.clement@free-electrons.com>
13 * revision that can be read from the PCI control register. This is
15 * ID and revision are retrieved, the mapping is freed.
18 #define pr_fmt(fmt) "mvebu-soc-id: " fmt
29 #include "mvebu-soc-id.h"
42 { .compatible = "marvell,armada-xp-pcie", },
43 { .compatible = "marvell,armada-370-pcie", },
44 { .compatible = "marvell,kirkwood-pcie" },
55 return -ENODEV; in mvebu_get_soc_id()
71 * ID and revision are available from any port, so we in get_soc_id_by_pci()
77 ret = -ENOMEM; in get_soc_id_by_pci()
84 ret = -ENOMEM; in get_soc_id_by_pci()
97 ret = -ENOMEM; in get_soc_id_by_pci()
101 /* SoC ID */ in get_soc_id_by_pci()
104 /* SoC revision */ in get_soc_id_by_pci()
109 pr_info("MVEBU SoC ID=0x%X, Rev=0x%X\n", soc_dev_id, soc_rev); in get_soc_id_by_pci()
138 * First try to get the ID and the revision by the system in mvebu_soc_id_init()
143 pr_info("MVEBU SoC ID=0x%X, Rev=0x%X\n", soc_dev_id, soc_rev); in mvebu_soc_id_init()
156 /* Also protects against running on non-mvebu systems */ in mvebu_soc_device()
162 return -ENOMEM; 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()
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()