Lines Matching +full:fiq +full:- +full:device

9  * See the COPYING file in the top-level directory.
18 #include "target/arm/cpu-qom.h"
22 DEFINE_PROP_UINT32("enabled-cpus", BCM283XBaseState, enabled_cpus, 0);
30 for (n = 0; n < bc->core_count; n++) { in bcm283x_base_init()
31 object_initialize_child(obj, "cpu[*]", &s->cpu[n].core, in bcm283x_base_init()
32 bc->cpu_type); in bcm283x_base_init()
34 if (bc->core_count > 1) { in bcm283x_base_init()
35 qdev_property_add_static(DEVICE(obj), &bcm2836_enabled_cores_property); in bcm283x_base_init()
36 qdev_prop_set_uint32(DEVICE(obj), "enabled-cpus", bc->core_count); in bcm283x_base_init()
39 if (bc->ctrl_base) { in bcm283x_base_init()
40 object_initialize_child(obj, "control", &s->control, in bcm283x_base_init()
49 object_initialize_child(obj, "peripherals", &s->peripherals, in bcm283x_init()
51 object_property_add_alias(obj, "board-rev", OBJECT(&s->peripherals), in bcm283x_init()
52 "board-rev"); in bcm283x_init()
53 object_property_add_alias(obj, "command-line", OBJECT(&s->peripherals), in bcm283x_init()
54 "command-line"); in bcm283x_init()
55 object_property_add_alias(obj, "vcram-size", OBJECT(&s->peripherals), in bcm283x_init()
56 "vcram-size"); in bcm283x_init()
57 object_property_add_alias(obj, "vcram-base", OBJECT(&s->peripherals), in bcm283x_init()
58 "vcram-base"); in bcm283x_init()
78 object_property_add_alias(OBJECT(s), "sd-bus", OBJECT(ps), "sd-bus"); in bcm283x_common_realize()
80 sysbus_mmio_map_overlap(SYS_BUS_DEVICE(ps), 0, bc->peri_base, 1); in bcm283x_common_realize()
89 = BCM_SOC_PERIPHERALS_BASE(&s->peripherals); in bcm2835_realize()
95 if (!qdev_realize(DEVICE(&s_base->cpu[0].core), NULL, errp)) { in bcm2835_realize()
99 /* Connect irq/fiq outputs from the interrupt controller. */ in bcm2835_realize()
100 sysbus_connect_irq(SYS_BUS_DEVICE(&s->peripherals), 0, in bcm2835_realize()
101 qdev_get_gpio_in(DEVICE(&s_base->cpu[0].core), ARM_CPU_IRQ)); in bcm2835_realize()
102 sysbus_connect_irq(SYS_BUS_DEVICE(&s->peripherals), 1, in bcm2835_realize()
103 qdev_get_gpio_in(DEVICE(&s_base->cpu[0].core), ARM_CPU_FIQ)); in bcm2835_realize()
113 = BCM_SOC_PERIPHERALS_BASE(&s->peripherals); in bcm2836_realize()
120 if (!sysbus_realize(SYS_BUS_DEVICE(&s_base->control), errp)) { in bcm2836_realize()
124 sysbus_mmio_map(SYS_BUS_DEVICE(&s_base->control), 0, bc->ctrl_base); in bcm2836_realize()
126 sysbus_connect_irq(SYS_BUS_DEVICE(&s->peripherals), 0, in bcm2836_realize()
127 qdev_get_gpio_in_named(DEVICE(&s_base->control), "gpu-irq", 0)); in bcm2836_realize()
128 sysbus_connect_irq(SYS_BUS_DEVICE(&s->peripherals), 1, in bcm2836_realize()
129 qdev_get_gpio_in_named(DEVICE(&s_base->control), "gpu-fiq", 0)); in bcm2836_realize()
132 object_property_set_int(OBJECT(&s_base->cpu[n].core), "mp-affinity", in bcm2836_realize()
133 (bc->clusterid << 8) | n, &error_abort); in bcm2836_realize()
135 /* set periphbase/CBAR value for CPU-local registers */ in bcm2836_realize()
136 object_property_set_int(OBJECT(&s_base->cpu[n].core), "reset-cbar", in bcm2836_realize()
137 bc->peri_base, &error_abort); in bcm2836_realize()
140 object_property_set_bool(OBJECT(&s_base->cpu[n].core), in bcm2836_realize()
141 "start-powered-off", in bcm2836_realize()
142 n >= s_base->enabled_cpus, &error_abort); in bcm2836_realize()
144 if (!qdev_realize(DEVICE(&s_base->cpu[n].core), NULL, errp)) { in bcm2836_realize()
148 /* Connect irq/fiq outputs from the interrupt controller. */ in bcm2836_realize()
149 qdev_connect_gpio_out_named(DEVICE(&s_base->control), "irq", n, in bcm2836_realize()
150 qdev_get_gpio_in(DEVICE(&s_base->cpu[n].core), ARM_CPU_IRQ)); in bcm2836_realize()
151 qdev_connect_gpio_out_named(DEVICE(&s_base->control), "fiq", n, in bcm2836_realize()
152 qdev_get_gpio_in(DEVICE(&s_base->cpu[n].core), ARM_CPU_FIQ)); in bcm2836_realize()
155 qdev_connect_gpio_out(DEVICE(&s_base->cpu[n].core), GTIMER_PHYS, in bcm2836_realize()
156 qdev_get_gpio_in_named(DEVICE(&s_base->control), "cntpnsirq", n)); in bcm2836_realize()
157 qdev_connect_gpio_out(DEVICE(&s_base->cpu[n].core), GTIMER_VIRT, in bcm2836_realize()
158 qdev_get_gpio_in_named(DEVICE(&s_base->control), "cntvirq", n)); in bcm2836_realize()
159 qdev_connect_gpio_out(DEVICE(&s_base->cpu[n].core), GTIMER_HYP, in bcm2836_realize()
160 qdev_get_gpio_in_named(DEVICE(&s_base->control), "cnthpirq", n)); in bcm2836_realize()
161 qdev_connect_gpio_out(DEVICE(&s_base->cpu[n].core), GTIMER_SEC, in bcm2836_realize()
162 qdev_get_gpio_in_named(DEVICE(&s_base->control), "cntpsirq", n)); in bcm2836_realize()
171 dc->user_creatable = false; in bcm283x_base_class_init()
179 bc->cpu_type = ARM_CPU_TYPE_NAME("arm1176"); in bcm2835_class_init()
180 bc->core_count = 1; in bcm2835_class_init()
181 bc->peri_base = 0x20000000; in bcm2835_class_init()
182 dc->realize = bcm2835_realize; in bcm2835_class_init()
190 bc->cpu_type = ARM_CPU_TYPE_NAME("cortex-a7"); in bcm2836_class_init()
191 bc->core_count = BCM283X_NCPUS; in bcm2836_class_init()
192 bc->peri_base = 0x3f000000; in bcm2836_class_init()
193 bc->ctrl_base = 0x40000000; in bcm2836_class_init()
194 bc->clusterid = 0xf; in bcm2836_class_init()
195 dc->realize = bcm2836_realize; in bcm2836_class_init()
204 bc->cpu_type = ARM_CPU_TYPE_NAME("cortex-a53"); in bcm2837_class_init()
205 bc->core_count = BCM283X_NCPUS; in bcm2837_class_init()
206 bc->peri_base = 0x3f000000; in bcm2837_class_init()
207 bc->ctrl_base = 0x40000000; in bcm2837_class_init()
208 bc->clusterid = 0x0; in bcm2837_class_init()
209 dc->realize = bcm2836_realize; in bcm2837_class_init()