15 #include <linux/slab.h>
16 #include <linux/stat.h>
25 #include <mach/hardware.h>
27 #include <mach/devices.h>
43 static const struct of_device_id ux500_dt_irq_match[] = {
44 { .compatible =
"arm,cortex-a9-gic", .data =
gic_of_init, },
55 if (cpu_is_u8500_family() || cpu_is_ux540_family()) {
62 if (of_have_populated_dt())
66 gic_init(0, 29, dist_base, cpu_base);
72 if (cpu_is_u8500_family())
75 if (cpu_is_u8500_family())
77 else if (cpu_is_u9540())
79 else if (cpu_is_u8540())
87 static const char *
__init ux500_get_machine(
void)
92 static const char *
__init ux500_get_family(
void)
97 static const char *
__init ux500_get_revision(
void)
99 unsigned int rev = dbx500_revision();
103 else if (rev >= 0xA0)
105 (rev >> 4) - 0xA + 1, rev & 0xf);
115 return sprintf(buf,
"Standard\n");
123 soc_dev_attr->
soc_id = soc_id;
124 soc_dev_attr->
machine = ux500_get_machine();
125 soc_dev_attr->
family = ux500_get_family();
126 soc_dev_attr->
revision = ux500_get_revision();
138 soc_dev_attr = kzalloc(
sizeof(*soc_dev_attr),
GFP_KERNEL);
142 soc_info_populate(soc_dev_attr, soc_id);
145 if (IS_ERR_OR_NULL(soc_dev)) {
151 if (!IS_ERR_OR_NULL(parent))