Lines Matching +full:bcm2835 +full:- +full:txp

9  * See the COPYING file in the top-level directory.
23 /* Capabilities for SD controller: no DMA, high-speed, default clocks etc. */
27 * According to Linux driver & DTS, dma channels 0--10 have separate IRQ,
28 * while channels 11--14 share one IRQ:
44 memory_region_add_subregion_overlap(&ps->peri_mr, ofs, in create_unimp()
45 sysbus_mmio_get_region(SYS_BUS_DEVICE(uds), 0), -1000); in create_unimp()
54 object_initialize_child(obj, "rng", &s->rng, TYPE_BCM2835_RNG); in bcm2835_peripherals_init()
57 object_initialize_child(obj, "thermal", &s->thermal, TYPE_BCM2835_THERMAL); in bcm2835_peripherals_init()
60 object_initialize_child(obj, "gpio", &s->gpio, TYPE_BCM2835_GPIO); in bcm2835_peripherals_init()
62 object_property_add_const_link(OBJECT(&s->gpio), "sdbus-sdhci", in bcm2835_peripherals_init()
63 OBJECT(&s_base->sdhci.sdbus)); in bcm2835_peripherals_init()
64 object_property_add_const_link(OBJECT(&s->gpio), "sdbus-sdhost", in bcm2835_peripherals_init()
65 OBJECT(&s_base->sdhost.sdbus)); in bcm2835_peripherals_init()
68 object_initialize_child(obj, "orgated-dma-irq", in bcm2835_peripherals_init()
69 &s_base->orgated_dma_irq, TYPE_OR_IRQ); in bcm2835_peripherals_init()
70 object_property_set_int(OBJECT(&s_base->orgated_dma_irq), "num-lines", in bcm2835_peripherals_init()
80 memory_region_init(&s->peri_mr, obj, "bcm2835-peripherals", bc->peri_size); in raspi_peripherals_base_init()
81 sysbus_init_mmio(SYS_BUS_DEVICE(s), &s->peri_mr); in raspi_peripherals_base_init()
84 memory_region_init(&s->gpu_bus_mr, obj, "bcm2835-gpu", (uint64_t)1 << 32); in raspi_peripherals_base_init()
87 * mailbox-addressable peripherals (not exported) in raspi_peripherals_base_init()
89 memory_region_init(&s->mbox_mr, obj, "bcm2835-mbox", in raspi_peripherals_base_init()
93 object_initialize_child(obj, "ic", &s->ic, TYPE_BCM2835_IC); in raspi_peripherals_base_init()
96 object_initialize_child(obj, "systimer", &s->systmr, in raspi_peripherals_base_init()
100 object_initialize_child(obj, "uart0", &s->uart0, TYPE_PL011); in raspi_peripherals_base_init()
103 object_initialize_child(obj, "aux", &s->aux, TYPE_BCM2835_AUX); in raspi_peripherals_base_init()
106 object_initialize_child(obj, "mbox", &s->mboxes, TYPE_BCM2835_MBOX); in raspi_peripherals_base_init()
108 object_property_add_const_link(OBJECT(&s->mboxes), "mbox-mr", in raspi_peripherals_base_init()
109 OBJECT(&s->mbox_mr)); in raspi_peripherals_base_init()
112 object_initialize_child(obj, "fb", &s->fb, TYPE_BCM2835_FB); in raspi_peripherals_base_init()
113 object_property_add_alias(obj, "vcram-size", OBJECT(&s->fb), "vcram-size"); in raspi_peripherals_base_init()
114 object_property_add_alias(obj, "vcram-base", OBJECT(&s->fb), "vcram-base"); in raspi_peripherals_base_init()
116 object_property_add_const_link(OBJECT(&s->fb), "dma-mr", in raspi_peripherals_base_init()
117 OBJECT(&s->gpu_bus_mr)); in raspi_peripherals_base_init()
120 object_initialize_child(obj, "bcm2835-otp", &s->otp, in raspi_peripherals_base_init()
124 object_initialize_child(obj, "property", &s->property, in raspi_peripherals_base_init()
126 object_property_add_alias(obj, "board-rev", OBJECT(&s->property), in raspi_peripherals_base_init()
127 "board-rev"); in raspi_peripherals_base_init()
128 object_property_add_alias(obj, "command-line", OBJECT(&s->property), in raspi_peripherals_base_init()
129 "command-line"); in raspi_peripherals_base_init()
131 object_property_add_const_link(OBJECT(&s->property), "fb", in raspi_peripherals_base_init()
132 OBJECT(&s->fb)); in raspi_peripherals_base_init()
133 object_property_add_const_link(OBJECT(&s->property), "dma-mr", in raspi_peripherals_base_init()
134 OBJECT(&s->gpu_bus_mr)); in raspi_peripherals_base_init()
135 object_property_add_const_link(OBJECT(&s->property), "otp", in raspi_peripherals_base_init()
136 OBJECT(&s->otp)); in raspi_peripherals_base_init()
139 object_initialize_child(obj, "sdhci", &s->sdhci, TYPE_SYSBUS_SDHCI); in raspi_peripherals_base_init()
142 object_initialize_child(obj, "sdhost", &s->sdhost, TYPE_BCM2835_SDHOST); in raspi_peripherals_base_init()
145 object_initialize_child(obj, "dma", &s->dma, TYPE_BCM2835_DMA); in raspi_peripherals_base_init()
147 object_property_add_const_link(OBJECT(&s->dma), "dma-mr", in raspi_peripherals_base_init()
148 OBJECT(&s->gpu_bus_mr)); in raspi_peripherals_base_init()
151 object_initialize_child(obj, "mphi", &s->mphi, TYPE_BCM2835_MPHI); in raspi_peripherals_base_init()
154 object_initialize_child(obj, "dwc2", &s->dwc2, TYPE_DWC2_USB); in raspi_peripherals_base_init()
157 object_initialize_child(obj, "cprman", &s->cprman, TYPE_BCM2835_CPRMAN); in raspi_peripherals_base_init()
159 object_property_add_const_link(OBJECT(&s->dwc2), "dma-mr", in raspi_peripherals_base_init()
160 OBJECT(&s->gpu_bus_mr)); in raspi_peripherals_base_init()
163 object_initialize_child(obj, "powermgt", &s->powermgt, in raspi_peripherals_base_init()
167 object_initialize_child(obj, "bcm2835-spi0", &s->spi[0], in raspi_peripherals_base_init()
171 object_initialize_child(obj, "bcm2835-i2c0", &s->i2c[0], in raspi_peripherals_base_init()
173 object_initialize_child(obj, "bcm2835-i2c1", &s->i2c[1], in raspi_peripherals_base_init()
175 object_initialize_child(obj, "bcm2835-i2c2", &s->i2c[2], in raspi_peripherals_base_init()
178 object_initialize_child(obj, "orgated-i2c-irq", in raspi_peripherals_base_init()
179 &s->orgated_i2c_irq, TYPE_OR_IRQ); in raspi_peripherals_base_init()
180 object_property_set_int(OBJECT(&s->orgated_i2c_irq), "num-lines", in raspi_peripherals_base_init()
194 sysbus_connect_irq(SYS_BUS_DEVICE(&s_base->sdhci), 0, in bcm2835_peripherals_realize()
195 qdev_get_gpio_in_named(DEVICE(&s_base->ic), BCM2835_IC_GPU_IRQ, in bcm2835_peripherals_realize()
198 /* Connect DMA 0-12 to the interrupt controller */ in bcm2835_peripherals_realize()
200 sysbus_connect_irq(SYS_BUS_DEVICE(&s_base->dma), n, in bcm2835_peripherals_realize()
201 qdev_get_gpio_in_named(DEVICE(&s_base->ic), in bcm2835_peripherals_realize()
206 if (!qdev_realize(DEVICE(&s_base->orgated_dma_irq), NULL, errp)) { in bcm2835_peripherals_realize()
210 sysbus_connect_irq(SYS_BUS_DEVICE(&s_base->dma), in bcm2835_peripherals_realize()
212 qdev_get_gpio_in(DEVICE(&s_base->orgated_dma_irq), n)); in bcm2835_peripherals_realize()
214 qdev_connect_gpio_out(DEVICE(&s_base->orgated_dma_irq), 0, in bcm2835_peripherals_realize()
215 qdev_get_gpio_in_named(DEVICE(&s_base->ic), in bcm2835_peripherals_realize()
220 if (!sysbus_realize(SYS_BUS_DEVICE(&s->rng), errp)) { in bcm2835_peripherals_realize()
224 &s_base->peri_mr, RNG_OFFSET, in bcm2835_peripherals_realize()
225 sysbus_mmio_get_region(SYS_BUS_DEVICE(&s->rng), 0)); in bcm2835_peripherals_realize()
228 if (!sysbus_realize(SYS_BUS_DEVICE(&s->thermal), errp)) { in bcm2835_peripherals_realize()
231 memory_region_add_subregion(&s_base->peri_mr, THERMAL_OFFSET, in bcm2835_peripherals_realize()
232 sysbus_mmio_get_region(SYS_BUS_DEVICE(&s->thermal), 0)); in bcm2835_peripherals_realize()
235 mphi_mr = sysbus_mmio_get_region(SYS_BUS_DEVICE(&s_base->mphi), 0); in bcm2835_peripherals_realize()
236 memory_region_add_subregion(&s_base->peri_mr, MPHI_OFFSET, mphi_mr); in bcm2835_peripherals_realize()
239 if (!sysbus_realize(SYS_BUS_DEVICE(&s->gpio), errp)) { in bcm2835_peripherals_realize()
243 &s_base->peri_mr, GPIO_OFFSET, in bcm2835_peripherals_realize()
244 sysbus_mmio_get_region(SYS_BUS_DEVICE(&s->gpio), 0)); in bcm2835_peripherals_realize()
246 object_property_add_alias(OBJECT(s), "sd-bus", OBJECT(&s->gpio), "sd-bus"); in bcm2835_peripherals_realize()
264 memory_region_init_alias(&s->peri_mr_alias, OBJECT(s), in bcm_soc_peripherals_common_realize()
265 "bcm2835-peripherals", &s->peri_mr, 0, in bcm_soc_peripherals_common_realize()
266 memory_region_size(&s->peri_mr)); in bcm_soc_peripherals_common_realize()
268 memory_region_add_subregion_overlap(&s->gpu_bus_mr, BCM2835_VC_PERI_BASE, in bcm_soc_peripherals_common_realize()
269 &s->peri_mr_alias, 1); in bcm_soc_peripherals_common_realize()
273 memory_region_init_alias(&s->ram_alias[n], OBJECT(s), in bcm_soc_peripherals_common_realize()
274 "bcm2835-gpu-ram-alias[*]", ram, 0, ram_size); in bcm_soc_peripherals_common_realize()
275 memory_region_add_subregion_overlap(&s->gpu_bus_mr, (hwaddr)n << 30, in bcm_soc_peripherals_common_realize()
276 &s->ram_alias[n], 0); in bcm_soc_peripherals_common_realize()
280 if (!sysbus_realize(SYS_BUS_DEVICE(&s->ic), errp)) { in bcm_soc_peripherals_common_realize()
285 if (!sysbus_realize(SYS_BUS_DEVICE(&s->cprman), errp)) { in bcm_soc_peripherals_common_realize()
288 memory_region_add_subregion(&s->peri_mr, CPRMAN_OFFSET, in bcm_soc_peripherals_common_realize()
289 sysbus_mmio_get_region(SYS_BUS_DEVICE(&s->cprman), 0)); in bcm_soc_peripherals_common_realize()
290 qdev_connect_clock_in(DEVICE(&s->uart0), "clk", in bcm_soc_peripherals_common_realize()
291 qdev_get_clock_out(DEVICE(&s->cprman), "uart-out")); in bcm_soc_peripherals_common_realize()
293 memory_region_add_subregion(&s->peri_mr, ARMCTRL_IC_OFFSET, in bcm_soc_peripherals_common_realize()
294 sysbus_mmio_get_region(SYS_BUS_DEVICE(&s->ic), 0)); in bcm_soc_peripherals_common_realize()
295 sysbus_pass_irq(SYS_BUS_DEVICE(s), SYS_BUS_DEVICE(&s->ic)); in bcm_soc_peripherals_common_realize()
298 if (!sysbus_realize(SYS_BUS_DEVICE(&s->systmr), errp)) { in bcm_soc_peripherals_common_realize()
301 memory_region_add_subregion(&s->peri_mr, ST_OFFSET, in bcm_soc_peripherals_common_realize()
302 sysbus_mmio_get_region(SYS_BUS_DEVICE(&s->systmr), 0)); in bcm_soc_peripherals_common_realize()
303 sysbus_connect_irq(SYS_BUS_DEVICE(&s->systmr), 0, in bcm_soc_peripherals_common_realize()
304 qdev_get_gpio_in_named(DEVICE(&s->ic), BCM2835_IC_GPU_IRQ, in bcm_soc_peripherals_common_realize()
306 sysbus_connect_irq(SYS_BUS_DEVICE(&s->systmr), 1, in bcm_soc_peripherals_common_realize()
307 qdev_get_gpio_in_named(DEVICE(&s->ic), BCM2835_IC_GPU_IRQ, in bcm_soc_peripherals_common_realize()
309 sysbus_connect_irq(SYS_BUS_DEVICE(&s->systmr), 2, in bcm_soc_peripherals_common_realize()
310 qdev_get_gpio_in_named(DEVICE(&s->ic), BCM2835_IC_GPU_IRQ, in bcm_soc_peripherals_common_realize()
312 sysbus_connect_irq(SYS_BUS_DEVICE(&s->systmr), 3, in bcm_soc_peripherals_common_realize()
313 qdev_get_gpio_in_named(DEVICE(&s->ic), BCM2835_IC_GPU_IRQ, in bcm_soc_peripherals_common_realize()
317 qdev_prop_set_chr(DEVICE(&s->uart0), "chardev", serial_hd(0)); in bcm_soc_peripherals_common_realize()
318 if (!sysbus_realize(SYS_BUS_DEVICE(&s->uart0), errp)) { in bcm_soc_peripherals_common_realize()
322 memory_region_add_subregion(&s->peri_mr, UART0_OFFSET, in bcm_soc_peripherals_common_realize()
323 sysbus_mmio_get_region(SYS_BUS_DEVICE(&s->uart0), 0)); in bcm_soc_peripherals_common_realize()
324 sysbus_connect_irq(SYS_BUS_DEVICE(&s->uart0), 0, in bcm_soc_peripherals_common_realize()
325 qdev_get_gpio_in_named(DEVICE(&s->ic), BCM2835_IC_GPU_IRQ, in bcm_soc_peripherals_common_realize()
329 qdev_prop_set_chr(DEVICE(&s->aux), "chardev", serial_hd(1)); in bcm_soc_peripherals_common_realize()
331 if (!sysbus_realize(SYS_BUS_DEVICE(&s->aux), errp)) { in bcm_soc_peripherals_common_realize()
335 memory_region_add_subregion(&s->peri_mr, AUX_OFFSET, in bcm_soc_peripherals_common_realize()
336 sysbus_mmio_get_region(SYS_BUS_DEVICE(&s->aux), 0)); in bcm_soc_peripherals_common_realize()
337 sysbus_connect_irq(SYS_BUS_DEVICE(&s->aux), 0, in bcm_soc_peripherals_common_realize()
338 qdev_get_gpio_in_named(DEVICE(&s->ic), BCM2835_IC_GPU_IRQ, in bcm_soc_peripherals_common_realize()
342 if (!sysbus_realize(SYS_BUS_DEVICE(&s->mboxes), errp)) { in bcm_soc_peripherals_common_realize()
346 memory_region_add_subregion(&s->peri_mr, ARMCTRL_0_SBM_OFFSET, in bcm_soc_peripherals_common_realize()
347 sysbus_mmio_get_region(SYS_BUS_DEVICE(&s->mboxes), 0)); in bcm_soc_peripherals_common_realize()
348 sysbus_connect_irq(SYS_BUS_DEVICE(&s->mboxes), 0, in bcm_soc_peripherals_common_realize()
349 qdev_get_gpio_in_named(DEVICE(&s->ic), BCM2835_IC_ARM_IRQ, in bcm_soc_peripherals_common_realize()
353 vcram_size = object_property_get_uint(OBJECT(s), "vcram-size", &err); in bcm_soc_peripherals_common_realize()
359 vcram_base = object_property_get_uint(OBJECT(s), "vcram-base", &err); in bcm_soc_peripherals_common_realize()
366 vcram_base = ram_size - vcram_size; in bcm_soc_peripherals_common_realize()
368 vcram_base = MIN(vcram_base, UPPER_RAM_BASE - vcram_size); in bcm_soc_peripherals_common_realize()
370 if (!object_property_set_uint(OBJECT(&s->fb), "vcram-base", vcram_base, in bcm_soc_peripherals_common_realize()
374 if (!sysbus_realize(SYS_BUS_DEVICE(&s->fb), errp)) { in bcm_soc_peripherals_common_realize()
378 memory_region_add_subregion(&s->mbox_mr, MBOX_CHAN_FB << MBOX_AS_CHAN_SHIFT, in bcm_soc_peripherals_common_realize()
379 sysbus_mmio_get_region(SYS_BUS_DEVICE(&s->fb), 0)); in bcm_soc_peripherals_common_realize()
380 sysbus_connect_irq(SYS_BUS_DEVICE(&s->fb), 0, in bcm_soc_peripherals_common_realize()
381 qdev_get_gpio_in(DEVICE(&s->mboxes), MBOX_CHAN_FB)); in bcm_soc_peripherals_common_realize()
384 if (!sysbus_realize(SYS_BUS_DEVICE(&s->otp), errp)) { in bcm_soc_peripherals_common_realize()
388 memory_region_add_subregion(&s->peri_mr, OTP_OFFSET, in bcm_soc_peripherals_common_realize()
389 sysbus_mmio_get_region(SYS_BUS_DEVICE(&s->otp), 0)); in bcm_soc_peripherals_common_realize()
392 if (!sysbus_realize(SYS_BUS_DEVICE(&s->property), errp)) { in bcm_soc_peripherals_common_realize()
396 memory_region_add_subregion(&s->mbox_mr, in bcm_soc_peripherals_common_realize()
398 sysbus_mmio_get_region(SYS_BUS_DEVICE(&s->property), 0)); in bcm_soc_peripherals_common_realize()
399 sysbus_connect_irq(SYS_BUS_DEVICE(&s->property), 0, in bcm_soc_peripherals_common_realize()
400 qdev_get_gpio_in(DEVICE(&s->mboxes), MBOX_CHAN_PROPERTY)); in bcm_soc_peripherals_common_realize()
405 * - SD Host Controller Specification Version 3.0 Draft 1.0 in bcm_soc_peripherals_common_realize()
406 * - SDIO Specification Version 3.0 in bcm_soc_peripherals_common_realize()
407 * - MMC Specification Version 4.4 in bcm_soc_peripherals_common_realize()
412 object_property_set_uint(OBJECT(&s->sdhci), "sd-spec-version", 3, in bcm_soc_peripherals_common_realize()
414 object_property_set_uint(OBJECT(&s->sdhci), "capareg", in bcm_soc_peripherals_common_realize()
416 object_property_set_bool(OBJECT(&s->sdhci), "pending-insert-quirk", true, in bcm_soc_peripherals_common_realize()
418 if (!sysbus_realize(SYS_BUS_DEVICE(&s->sdhci), errp)) { in bcm_soc_peripherals_common_realize()
422 memory_region_add_subregion(&s->peri_mr, EMMC1_OFFSET, in bcm_soc_peripherals_common_realize()
423 sysbus_mmio_get_region(SYS_BUS_DEVICE(&s->sdhci), 0)); in bcm_soc_peripherals_common_realize()
426 if (!sysbus_realize(SYS_BUS_DEVICE(&s->sdhost), errp)) { in bcm_soc_peripherals_common_realize()
430 memory_region_add_subregion(&s->peri_mr, MMCI0_OFFSET, in bcm_soc_peripherals_common_realize()
431 sysbus_mmio_get_region(SYS_BUS_DEVICE(&s->sdhost), 0)); in bcm_soc_peripherals_common_realize()
432 sysbus_connect_irq(SYS_BUS_DEVICE(&s->sdhost), 0, in bcm_soc_peripherals_common_realize()
433 qdev_get_gpio_in_named(DEVICE(&s->ic), BCM2835_IC_GPU_IRQ, in bcm_soc_peripherals_common_realize()
437 if (!sysbus_realize(SYS_BUS_DEVICE(&s->dma), errp)) { in bcm_soc_peripherals_common_realize()
441 memory_region_add_subregion(&s->peri_mr, DMA_OFFSET, in bcm_soc_peripherals_common_realize()
442 sysbus_mmio_get_region(SYS_BUS_DEVICE(&s->dma), 0)); in bcm_soc_peripherals_common_realize()
443 memory_region_add_subregion(&s->peri_mr, DMA15_OFFSET, in bcm_soc_peripherals_common_realize()
444 sysbus_mmio_get_region(SYS_BUS_DEVICE(&s->dma), 1)); in bcm_soc_peripherals_common_realize()
447 if (!sysbus_realize(SYS_BUS_DEVICE(&s->mphi), errp)) { in bcm_soc_peripherals_common_realize()
451 sysbus_connect_irq(SYS_BUS_DEVICE(&s->mphi), 0, in bcm_soc_peripherals_common_realize()
452 qdev_get_gpio_in_named(DEVICE(&s->ic), BCM2835_IC_GPU_IRQ, in bcm_soc_peripherals_common_realize()
456 if (!sysbus_realize(SYS_BUS_DEVICE(&s->dwc2), errp)) { in bcm_soc_peripherals_common_realize()
460 memory_region_add_subregion(&s->peri_mr, USB_OTG_OFFSET, in bcm_soc_peripherals_common_realize()
461 sysbus_mmio_get_region(SYS_BUS_DEVICE(&s->dwc2), 0)); in bcm_soc_peripherals_common_realize()
462 sysbus_connect_irq(SYS_BUS_DEVICE(&s->dwc2), 0, in bcm_soc_peripherals_common_realize()
463 qdev_get_gpio_in_named(DEVICE(&s->ic), BCM2835_IC_GPU_IRQ, in bcm_soc_peripherals_common_realize()
467 if (!sysbus_realize(SYS_BUS_DEVICE(&s->powermgt), errp)) { in bcm_soc_peripherals_common_realize()
471 memory_region_add_subregion(&s->peri_mr, PM_OFFSET, in bcm_soc_peripherals_common_realize()
472 sysbus_mmio_get_region(SYS_BUS_DEVICE(&s->powermgt), 0)); in bcm_soc_peripherals_common_realize()
475 if (!sysbus_realize(SYS_BUS_DEVICE(&s->spi[0]), errp)) { in bcm_soc_peripherals_common_realize()
479 memory_region_add_subregion(&s->peri_mr, SPI0_OFFSET, in bcm_soc_peripherals_common_realize()
480 sysbus_mmio_get_region(SYS_BUS_DEVICE(&s->spi[0]), 0)); in bcm_soc_peripherals_common_realize()
481 sysbus_connect_irq(SYS_BUS_DEVICE(&s->spi[0]), 0, in bcm_soc_peripherals_common_realize()
482 qdev_get_gpio_in_named(DEVICE(&s->ic), in bcm_soc_peripherals_common_realize()
488 if (!sysbus_realize(SYS_BUS_DEVICE(&s->i2c[n]), errp)) { in bcm_soc_peripherals_common_realize()
493 memory_region_add_subregion(&s->peri_mr, BSC0_OFFSET, in bcm_soc_peripherals_common_realize()
494 sysbus_mmio_get_region(SYS_BUS_DEVICE(&s->i2c[0]), 0)); in bcm_soc_peripherals_common_realize()
495 memory_region_add_subregion(&s->peri_mr, BSC1_OFFSET, in bcm_soc_peripherals_common_realize()
496 sysbus_mmio_get_region(SYS_BUS_DEVICE(&s->i2c[1]), 0)); in bcm_soc_peripherals_common_realize()
497 memory_region_add_subregion(&s->peri_mr, BSC2_OFFSET, in bcm_soc_peripherals_common_realize()
498 sysbus_mmio_get_region(SYS_BUS_DEVICE(&s->i2c[2]), 0)); in bcm_soc_peripherals_common_realize()
500 if (!qdev_realize(DEVICE(&s->orgated_i2c_irq), NULL, errp)) { in bcm_soc_peripherals_common_realize()
504 sysbus_connect_irq(SYS_BUS_DEVICE(&s->i2c[n]), 0, in bcm_soc_peripherals_common_realize()
505 qdev_get_gpio_in(DEVICE(&s->orgated_i2c_irq), n)); in bcm_soc_peripherals_common_realize()
507 qdev_connect_gpio_out(DEVICE(&s->orgated_i2c_irq), 0, in bcm_soc_peripherals_common_realize()
508 qdev_get_gpio_in_named(DEVICE(&s->ic), in bcm_soc_peripherals_common_realize()
512 create_unimp(s, &s->txp, "bcm2835-txp", TXP_OFFSET, 0x1000); in bcm_soc_peripherals_common_realize()
513 create_unimp(s, &s->armtmr, "bcm2835-sp804", ARMCTRL_TIMER0_1_OFFSET, 0x40); in bcm_soc_peripherals_common_realize()
514 create_unimp(s, &s->i2s, "bcm2835-i2s", I2S_OFFSET, 0x100); in bcm_soc_peripherals_common_realize()
515 create_unimp(s, &s->smi, "bcm2835-smi", SMI_OFFSET, 0x100); in bcm_soc_peripherals_common_realize()
516 create_unimp(s, &s->bscsl, "bcm2835-spis", BSC_SL_OFFSET, 0x100); in bcm_soc_peripherals_common_realize()
517 create_unimp(s, &s->dbus, "bcm2835-dbus", DBUS_OFFSET, 0x8000); in bcm_soc_peripherals_common_realize()
518 create_unimp(s, &s->ave0, "bcm2835-ave0", AVE0_OFFSET, 0x8000); in bcm_soc_peripherals_common_realize()
519 create_unimp(s, &s->v3d, "bcm2835-v3d", V3D_OFFSET, 0x1000); in bcm_soc_peripherals_common_realize()
520 create_unimp(s, &s->sdramc, "bcm2835-sdramc", SDRAMC_OFFSET, 0x100); in bcm_soc_peripherals_common_realize()
528 bc->peri_size = 0x1000000; in bcm2835_peripherals_class_init()
529 dc->realize = bcm2835_peripherals_realize; in bcm2835_peripherals_class_init()