Lines Matching +full:ast2500 +full:- +full:lpc
10 * the COPYING file in the top-level directory.
18 #include "hw/char/serial-mm.h"
20 #include "qemu/error-report.h"
24 #include "target/arm/cpu-qom.h"
148 return qdev_get_gpio_in(DEVICE(&a->vic), sc->irqmap[dev]); in aspeed_soc_ast2400_get_irq()
160 if (sscanf(sc->name, "%7s", socname) != 1) { in aspeed_ast2400_soc_init()
164 for (i = 0; i < sc->num_cpus; i++) { in aspeed_ast2400_soc_init()
165 object_initialize_child(obj, "cpu[*]", &a->cpu[i], in aspeed_ast2400_soc_init()
169 snprintf(typename, sizeof(typename), "aspeed.scu-%s", socname); in aspeed_ast2400_soc_init()
170 object_initialize_child(obj, "scu", &s->scu, typename); in aspeed_ast2400_soc_init()
171 qdev_prop_set_uint32(DEVICE(&s->scu), "silicon-rev", in aspeed_ast2400_soc_init()
172 sc->silicon_rev); in aspeed_ast2400_soc_init()
173 object_property_add_alias(obj, "hw-strap1", OBJECT(&s->scu), in aspeed_ast2400_soc_init()
174 "hw-strap1"); in aspeed_ast2400_soc_init()
175 object_property_add_alias(obj, "hw-strap2", OBJECT(&s->scu), in aspeed_ast2400_soc_init()
176 "hw-strap2"); in aspeed_ast2400_soc_init()
177 object_property_add_alias(obj, "hw-prot-key", OBJECT(&s->scu), in aspeed_ast2400_soc_init()
178 "hw-prot-key"); in aspeed_ast2400_soc_init()
180 object_initialize_child(obj, "vic", &a->vic, TYPE_ASPEED_VIC); in aspeed_ast2400_soc_init()
182 object_initialize_child(obj, "rtc", &s->rtc, TYPE_ASPEED_RTC); in aspeed_ast2400_soc_init()
184 snprintf(typename, sizeof(typename), "aspeed.timer-%s", socname); in aspeed_ast2400_soc_init()
185 object_initialize_child(obj, "timerctrl", &s->timerctrl, typename); in aspeed_ast2400_soc_init()
187 for (i = 0; i < sc->wdts_num; i++) { in aspeed_ast2400_soc_init()
188 snprintf(typename, sizeof(typename), "aspeed.wdt-%s", socname); in aspeed_ast2400_soc_init()
189 object_initialize_child(obj, "wdt[*]", &s->wdt[i], typename); in aspeed_ast2400_soc_init()
192 snprintf(typename, sizeof(typename), "aspeed.adc-%s", socname); in aspeed_ast2400_soc_init()
193 object_initialize_child(obj, "adc", &s->adc, typename); in aspeed_ast2400_soc_init()
195 snprintf(typename, sizeof(typename), "aspeed.i2c-%s", socname); in aspeed_ast2400_soc_init()
196 object_initialize_child(obj, "i2c", &s->i2c, typename); in aspeed_ast2400_soc_init()
198 object_initialize_child(obj, "peci", &s->peci, TYPE_ASPEED_PECI); in aspeed_ast2400_soc_init()
200 snprintf(typename, sizeof(typename), "aspeed.fmc-%s", socname); in aspeed_ast2400_soc_init()
201 object_initialize_child(obj, "fmc", &s->fmc, typename); in aspeed_ast2400_soc_init()
203 for (i = 0; i < sc->spis_num; i++) { in aspeed_ast2400_soc_init()
204 snprintf(typename, sizeof(typename), "aspeed.spi%d-%s", i + 1, socname); in aspeed_ast2400_soc_init()
205 object_initialize_child(obj, "spi[*]", &s->spi[i], typename); in aspeed_ast2400_soc_init()
208 for (i = 0; i < sc->ehcis_num; i++) { in aspeed_ast2400_soc_init()
209 object_initialize_child(obj, "ehci[*]", &s->ehci[i], in aspeed_ast2400_soc_init()
213 object_initialize_child(obj, "uhci", &s->uhci, TYPE_ASPEED_UHCI); in aspeed_ast2400_soc_init()
215 snprintf(typename, sizeof(typename), "aspeed.sdmc-%s", socname); in aspeed_ast2400_soc_init()
216 object_initialize_child(obj, "sdmc", &s->sdmc, typename); in aspeed_ast2400_soc_init()
217 object_property_add_alias(obj, "ram-size", OBJECT(&s->sdmc), in aspeed_ast2400_soc_init()
218 "ram-size"); in aspeed_ast2400_soc_init()
220 for (i = 0; i < sc->macs_num; i++) { in aspeed_ast2400_soc_init()
221 object_initialize_child(obj, "ftgmac100[*]", &s->ftgmac100[i], in aspeed_ast2400_soc_init()
225 for (i = 0; i < sc->uarts_num; i++) { in aspeed_ast2400_soc_init()
226 object_initialize_child(obj, "uart[*]", &s->uart[i], TYPE_SERIAL_MM); in aspeed_ast2400_soc_init()
229 snprintf(typename, sizeof(typename), TYPE_ASPEED_XDMA "-%s", socname); in aspeed_ast2400_soc_init()
230 object_initialize_child(obj, "xdma", &s->xdma, typename); in aspeed_ast2400_soc_init()
232 snprintf(typename, sizeof(typename), "aspeed.gpio-%s", socname); in aspeed_ast2400_soc_init()
233 object_initialize_child(obj, "gpio", &s->gpio, typename); in aspeed_ast2400_soc_init()
235 snprintf(typename, sizeof(typename), "aspeed.sdhci-%s", socname); in aspeed_ast2400_soc_init()
236 object_initialize_child(obj, "sdc", &s->sdhci, typename); in aspeed_ast2400_soc_init()
238 object_property_set_int(OBJECT(&s->sdhci), "num-slots", 2, &error_abort); in aspeed_ast2400_soc_init()
242 object_initialize_child(obj, "sdhci[*]", &s->sdhci.slots[i], in aspeed_ast2400_soc_init()
246 object_initialize_child(obj, "lpc", &s->lpc, TYPE_ASPEED_LPC); in aspeed_ast2400_soc_init()
248 object_initialize_child(obj, "ibt", &s->ibt, TYPE_ASPEED_IBT); in aspeed_ast2400_soc_init()
250 snprintf(typename, sizeof(typename), "aspeed.hace-%s", socname); in aspeed_ast2400_soc_init()
251 object_initialize_child(obj, "hace", &s->hace, typename); in aspeed_ast2400_soc_init()
253 object_initialize_child(obj, "gfx", &s->gfx, TYPE_ASPEED_GFX); in aspeed_ast2400_soc_init()
255 object_initialize_child(obj, "iomem", &s->iomem, TYPE_UNIMPLEMENTED_DEVICE); in aspeed_ast2400_soc_init()
256 object_initialize_child(obj, "video", &s->video, TYPE_UNIMPLEMENTED_DEVICE); in aspeed_ast2400_soc_init()
258 object_initialize_child(obj, "pwm", &s->pwm, TYPE_ASPEED_PWM); in aspeed_ast2400_soc_init()
270 memory_region_init(&s->spi_boot_container, OBJECT(s), in aspeed_ast2400_soc_realize()
272 memory_region_add_subregion(s->memory, sc->memmap[ASPEED_DEV_SPI_BOOT], in aspeed_ast2400_soc_realize()
273 &s->spi_boot_container); in aspeed_ast2400_soc_realize()
276 aspeed_mmio_map_unimplemented(s, SYS_BUS_DEVICE(&s->iomem), "aspeed.io", in aspeed_ast2400_soc_realize()
277 sc->memmap[ASPEED_DEV_IOMEM], in aspeed_ast2400_soc_realize()
281 aspeed_mmio_map_unimplemented(s, SYS_BUS_DEVICE(&s->video), "aspeed.video", in aspeed_ast2400_soc_realize()
282 sc->memmap[ASPEED_DEV_VIDEO], 0x1000); in aspeed_ast2400_soc_realize()
285 for (i = 0; i < sc->num_cpus; i++) { in aspeed_ast2400_soc_realize()
286 object_property_set_link(OBJECT(&a->cpu[i]), "memory", in aspeed_ast2400_soc_realize()
287 OBJECT(s->memory), &error_abort); in aspeed_ast2400_soc_realize()
288 if (!qdev_realize(DEVICE(&a->cpu[i]), NULL, errp)) { in aspeed_ast2400_soc_realize()
294 sram_name = g_strdup_printf("aspeed.sram.%d", CPU(&a->cpu[0])->cpu_index); in aspeed_ast2400_soc_realize()
295 if (!memory_region_init_ram(&s->sram, OBJECT(s), sram_name, sc->sram_size, in aspeed_ast2400_soc_realize()
299 memory_region_add_subregion(s->memory, in aspeed_ast2400_soc_realize()
300 sc->memmap[ASPEED_DEV_SRAM], &s->sram); in aspeed_ast2400_soc_realize()
303 if (!sysbus_realize(SYS_BUS_DEVICE(&s->scu), errp)) { in aspeed_ast2400_soc_realize()
306 aspeed_mmio_map(s, SYS_BUS_DEVICE(&s->scu), 0, sc->memmap[ASPEED_DEV_SCU]); in aspeed_ast2400_soc_realize()
309 if (!sysbus_realize(SYS_BUS_DEVICE(&a->vic), errp)) { in aspeed_ast2400_soc_realize()
312 aspeed_mmio_map(s, SYS_BUS_DEVICE(&a->vic), 0, sc->memmap[ASPEED_DEV_VIC]); in aspeed_ast2400_soc_realize()
313 sysbus_connect_irq(SYS_BUS_DEVICE(&a->vic), 0, in aspeed_ast2400_soc_realize()
314 qdev_get_gpio_in(DEVICE(&a->cpu), ARM_CPU_IRQ)); in aspeed_ast2400_soc_realize()
315 sysbus_connect_irq(SYS_BUS_DEVICE(&a->vic), 1, in aspeed_ast2400_soc_realize()
316 qdev_get_gpio_in(DEVICE(&a->cpu), ARM_CPU_FIQ)); in aspeed_ast2400_soc_realize()
319 if (!sysbus_realize(SYS_BUS_DEVICE(&s->rtc), errp)) { in aspeed_ast2400_soc_realize()
322 aspeed_mmio_map(s, SYS_BUS_DEVICE(&s->rtc), 0, sc->memmap[ASPEED_DEV_RTC]); in aspeed_ast2400_soc_realize()
323 sysbus_connect_irq(SYS_BUS_DEVICE(&s->rtc), 0, in aspeed_ast2400_soc_realize()
327 object_property_set_link(OBJECT(&s->timerctrl), "scu", OBJECT(&s->scu), in aspeed_ast2400_soc_realize()
329 if (!sysbus_realize(SYS_BUS_DEVICE(&s->timerctrl), errp)) { in aspeed_ast2400_soc_realize()
332 aspeed_mmio_map(s, SYS_BUS_DEVICE(&s->timerctrl), 0, in aspeed_ast2400_soc_realize()
333 sc->memmap[ASPEED_DEV_TIMER1]); in aspeed_ast2400_soc_realize()
336 sysbus_connect_irq(SYS_BUS_DEVICE(&s->timerctrl), i, irq); in aspeed_ast2400_soc_realize()
340 for (i = 0; i < sc->wdts_num; i++) { in aspeed_ast2400_soc_realize()
341 AspeedWDTClass *awc = ASPEED_WDT_GET_CLASS(&s->wdt[i]); in aspeed_ast2400_soc_realize()
343 object_property_set_link(OBJECT(&s->wdt[i]), "scu", OBJECT(&s->scu), in aspeed_ast2400_soc_realize()
345 if (!sysbus_realize(SYS_BUS_DEVICE(&s->wdt[i]), errp)) { in aspeed_ast2400_soc_realize()
348 aspeed_mmio_map(s, SYS_BUS_DEVICE(&s->wdt[i]), 0, in aspeed_ast2400_soc_realize()
349 sc->memmap[ASPEED_DEV_WDT] + i * awc->iosize); in aspeed_ast2400_soc_realize()
353 if (!sysbus_realize(SYS_BUS_DEVICE(&s->adc), errp)) { in aspeed_ast2400_soc_realize()
356 aspeed_mmio_map(s, SYS_BUS_DEVICE(&s->adc), 0, sc->memmap[ASPEED_DEV_ADC]); in aspeed_ast2400_soc_realize()
357 sysbus_connect_irq(SYS_BUS_DEVICE(&s->adc), 0, in aspeed_ast2400_soc_realize()
366 object_property_set_link(OBJECT(&s->i2c), "dram", OBJECT(s->dram_mr), in aspeed_ast2400_soc_realize()
368 if (!sysbus_realize(SYS_BUS_DEVICE(&s->i2c), errp)) { in aspeed_ast2400_soc_realize()
371 aspeed_mmio_map(s, SYS_BUS_DEVICE(&s->i2c), 0, sc->memmap[ASPEED_DEV_I2C]); in aspeed_ast2400_soc_realize()
372 sysbus_connect_irq(SYS_BUS_DEVICE(&s->i2c), 0, in aspeed_ast2400_soc_realize()
376 if (!sysbus_realize(SYS_BUS_DEVICE(&s->peci), errp)) { in aspeed_ast2400_soc_realize()
379 aspeed_mmio_map(s, SYS_BUS_DEVICE(&s->peci), 0, in aspeed_ast2400_soc_realize()
380 sc->memmap[ASPEED_DEV_PECI]); in aspeed_ast2400_soc_realize()
381 sysbus_connect_irq(SYS_BUS_DEVICE(&s->peci), 0, in aspeed_ast2400_soc_realize()
385 object_property_set_link(OBJECT(&s->fmc), "dram", OBJECT(s->dram_mr), in aspeed_ast2400_soc_realize()
387 if (!sysbus_realize(SYS_BUS_DEVICE(&s->fmc), errp)) { in aspeed_ast2400_soc_realize()
390 aspeed_mmio_map(s, SYS_BUS_DEVICE(&s->fmc), 0, sc->memmap[ASPEED_DEV_FMC]); in aspeed_ast2400_soc_realize()
391 aspeed_mmio_map(s, SYS_BUS_DEVICE(&s->fmc), 1, in aspeed_ast2400_soc_realize()
392 ASPEED_SMC_GET_CLASS(&s->fmc)->flash_window_base); in aspeed_ast2400_soc_realize()
393 sysbus_connect_irq(SYS_BUS_DEVICE(&s->fmc), 0, in aspeed_ast2400_soc_realize()
397 MemoryRegion *fmc0_mmio = &s->fmc.flashes[0].mmio; in aspeed_ast2400_soc_realize()
398 memory_region_init_alias(&s->spi_boot, OBJECT(s), "aspeed.spi_boot", in aspeed_ast2400_soc_realize()
400 memory_region_add_subregion(&s->spi_boot_container, 0x0, &s->spi_boot); in aspeed_ast2400_soc_realize()
403 for (i = 0; i < sc->spis_num; i++) { in aspeed_ast2400_soc_realize()
404 if (!sysbus_realize(SYS_BUS_DEVICE(&s->spi[i]), errp)) { in aspeed_ast2400_soc_realize()
407 aspeed_mmio_map(s, SYS_BUS_DEVICE(&s->spi[i]), 0, in aspeed_ast2400_soc_realize()
408 sc->memmap[ASPEED_DEV_SPI1 + i]); in aspeed_ast2400_soc_realize()
409 aspeed_mmio_map(s, SYS_BUS_DEVICE(&s->spi[i]), 1, in aspeed_ast2400_soc_realize()
410 ASPEED_SMC_GET_CLASS(&s->spi[i])->flash_window_base); in aspeed_ast2400_soc_realize()
414 for (i = 0; i < sc->ehcis_num; i++) { in aspeed_ast2400_soc_realize()
415 if (!sysbus_realize(SYS_BUS_DEVICE(&s->ehci[i]), errp)) { in aspeed_ast2400_soc_realize()
418 aspeed_mmio_map(s, SYS_BUS_DEVICE(&s->ehci[i]), 0, in aspeed_ast2400_soc_realize()
419 sc->memmap[ASPEED_DEV_EHCI1 + i]); in aspeed_ast2400_soc_realize()
420 sysbus_connect_irq(SYS_BUS_DEVICE(&s->ehci[i]), 0, in aspeed_ast2400_soc_realize()
425 if (!sysbus_realize(SYS_BUS_DEVICE(&s->uhci), errp)) { in aspeed_ast2400_soc_realize()
428 aspeed_mmio_map(s, SYS_BUS_DEVICE(&s->uhci), 0, in aspeed_ast2400_soc_realize()
429 sc->memmap[ASPEED_DEV_UHCI]); in aspeed_ast2400_soc_realize()
430 sysbus_connect_irq(SYS_BUS_DEVICE(&s->uhci), 0, in aspeed_ast2400_soc_realize()
433 /* SDMC - SDRAM Memory Controller */ in aspeed_ast2400_soc_realize()
434 if (!sysbus_realize(SYS_BUS_DEVICE(&s->sdmc), errp)) { in aspeed_ast2400_soc_realize()
437 aspeed_mmio_map(s, SYS_BUS_DEVICE(&s->sdmc), 0, in aspeed_ast2400_soc_realize()
438 sc->memmap[ASPEED_DEV_SDMC]); in aspeed_ast2400_soc_realize()
446 for (i = 0; i < sc->macs_num; i++) { in aspeed_ast2400_soc_realize()
447 object_property_set_bool(OBJECT(&s->ftgmac100[i]), "aspeed", true, in aspeed_ast2400_soc_realize()
449 if (!sysbus_realize(SYS_BUS_DEVICE(&s->ftgmac100[i]), errp)) { in aspeed_ast2400_soc_realize()
452 aspeed_mmio_map(s, SYS_BUS_DEVICE(&s->ftgmac100[i]), 0, in aspeed_ast2400_soc_realize()
453 sc->memmap[ASPEED_DEV_ETH1 + i]); in aspeed_ast2400_soc_realize()
454 sysbus_connect_irq(SYS_BUS_DEVICE(&s->ftgmac100[i]), 0, in aspeed_ast2400_soc_realize()
459 if (!sysbus_realize(SYS_BUS_DEVICE(&s->xdma), errp)) { in aspeed_ast2400_soc_realize()
462 aspeed_mmio_map(s, SYS_BUS_DEVICE(&s->xdma), 0, in aspeed_ast2400_soc_realize()
463 sc->memmap[ASPEED_DEV_XDMA]); in aspeed_ast2400_soc_realize()
464 sysbus_connect_irq(SYS_BUS_DEVICE(&s->xdma), 0, in aspeed_ast2400_soc_realize()
468 if (!sysbus_realize(SYS_BUS_DEVICE(&s->gpio), errp)) { in aspeed_ast2400_soc_realize()
471 aspeed_mmio_map(s, SYS_BUS_DEVICE(&s->gpio), 0, in aspeed_ast2400_soc_realize()
472 sc->memmap[ASPEED_DEV_GPIO]); in aspeed_ast2400_soc_realize()
473 sysbus_connect_irq(SYS_BUS_DEVICE(&s->gpio), 0, in aspeed_ast2400_soc_realize()
477 if (!sysbus_realize(SYS_BUS_DEVICE(&s->sdhci), errp)) { in aspeed_ast2400_soc_realize()
480 aspeed_mmio_map(s, SYS_BUS_DEVICE(&s->sdhci), 0, in aspeed_ast2400_soc_realize()
481 sc->memmap[ASPEED_DEV_SDHCI]); in aspeed_ast2400_soc_realize()
482 sysbus_connect_irq(SYS_BUS_DEVICE(&s->sdhci), 0, in aspeed_ast2400_soc_realize()
485 /* LPC */ in aspeed_ast2400_soc_realize()
486 if (!sysbus_realize(SYS_BUS_DEVICE(&s->lpc), errp)) { in aspeed_ast2400_soc_realize()
489 aspeed_mmio_map(s, SYS_BUS_DEVICE(&s->lpc), 0, sc->memmap[ASPEED_DEV_LPC]); in aspeed_ast2400_soc_realize()
491 /* Connect the LPC IRQ to the VIC */ in aspeed_ast2400_soc_realize()
492 sysbus_connect_irq(SYS_BUS_DEVICE(&s->lpc), 0, in aspeed_ast2400_soc_realize()
496 * On the AST2400 and AST2500 the one LPC IRQ is shared between all of the in aspeed_ast2400_soc_realize()
497 * subdevices. Connect the LPC subdevice IRQs to the LPC controller IRQ (by in aspeed_ast2400_soc_realize()
501 * LPC subdevice IRQ sources are offset from 1 because the shared IRQ output in aspeed_ast2400_soc_realize()
504 sysbus_connect_irq(SYS_BUS_DEVICE(&s->lpc), 1 + aspeed_lpc_kcs_1, in aspeed_ast2400_soc_realize()
505 qdev_get_gpio_in(DEVICE(&s->lpc), aspeed_lpc_kcs_1)); in aspeed_ast2400_soc_realize()
507 sysbus_connect_irq(SYS_BUS_DEVICE(&s->lpc), 1 + aspeed_lpc_kcs_2, in aspeed_ast2400_soc_realize()
508 qdev_get_gpio_in(DEVICE(&s->lpc), aspeed_lpc_kcs_2)); in aspeed_ast2400_soc_realize()
510 sysbus_connect_irq(SYS_BUS_DEVICE(&s->lpc), 1 + aspeed_lpc_kcs_3, in aspeed_ast2400_soc_realize()
511 qdev_get_gpio_in(DEVICE(&s->lpc), aspeed_lpc_kcs_3)); in aspeed_ast2400_soc_realize()
513 sysbus_connect_irq(SYS_BUS_DEVICE(&s->lpc), 1 + aspeed_lpc_kcs_4, in aspeed_ast2400_soc_realize()
514 qdev_get_gpio_in(DEVICE(&s->lpc), aspeed_lpc_kcs_4)); in aspeed_ast2400_soc_realize()
517 if (!sysbus_realize(SYS_BUS_DEVICE(&s->ibt), errp)) { in aspeed_ast2400_soc_realize()
520 memory_region_add_subregion(&s->lpc.iomem, in aspeed_ast2400_soc_realize()
521 sc->memmap[ASPEED_DEV_IBT] - sc->memmap[ASPEED_DEV_LPC], in aspeed_ast2400_soc_realize()
522 &s->ibt.iomem); in aspeed_ast2400_soc_realize()
523 sysbus_connect_irq(SYS_BUS_DEVICE(&s->lpc), 1 + aspeed_lpc_ibt, in aspeed_ast2400_soc_realize()
524 qdev_get_gpio_in(DEVICE(&s->lpc), aspeed_lpc_ibt)); in aspeed_ast2400_soc_realize()
527 object_property_set_link(OBJECT(&s->hace), "dram", OBJECT(s->dram_mr), in aspeed_ast2400_soc_realize()
529 if (!sysbus_realize(SYS_BUS_DEVICE(&s->hace), errp)) { in aspeed_ast2400_soc_realize()
532 aspeed_mmio_map(s, SYS_BUS_DEVICE(&s->hace), 0, in aspeed_ast2400_soc_realize()
533 sc->memmap[ASPEED_DEV_HACE]); in aspeed_ast2400_soc_realize()
534 sysbus_connect_irq(SYS_BUS_DEVICE(&s->hace), 0, in aspeed_ast2400_soc_realize()
538 if (!sysbus_realize(SYS_BUS_DEVICE(&s->gfx), errp)) { in aspeed_ast2400_soc_realize()
541 aspeed_mmio_map(s, SYS_BUS_DEVICE(&s->gfx), 0, sc->memmap[ASPEED_DEV_GFX]); in aspeed_ast2400_soc_realize()
542 sysbus_connect_irq(SYS_BUS_DEVICE(&s->gfx), 0, in aspeed_ast2400_soc_realize()
546 if (!sysbus_realize(SYS_BUS_DEVICE(&s->pwm), errp)) { in aspeed_ast2400_soc_realize()
549 aspeed_mmio_map(s, SYS_BUS_DEVICE(&s->pwm), 0, sc->memmap[ASPEED_DEV_PWM]); in aspeed_ast2400_soc_realize()
550 sysbus_connect_irq(SYS_BUS_DEVICE(&s->pwm), 0, in aspeed_ast2400_soc_realize()
563 dc->realize = aspeed_ast2400_soc_realize; in aspeed_soc_ast2400_class_init()
565 dc->user_creatable = false; in aspeed_soc_ast2400_class_init()
567 sc->name = "ast2400-a1"; in aspeed_soc_ast2400_class_init()
568 sc->valid_cpu_types = valid_cpu_types; in aspeed_soc_ast2400_class_init()
569 sc->silicon_rev = AST2400_A1_SILICON_REV; in aspeed_soc_ast2400_class_init()
570 sc->sram_size = 0x8000; in aspeed_soc_ast2400_class_init()
571 sc->spis_num = 1; in aspeed_soc_ast2400_class_init()
572 sc->ehcis_num = 1; in aspeed_soc_ast2400_class_init()
573 sc->wdts_num = 2; in aspeed_soc_ast2400_class_init()
574 sc->macs_num = 2; in aspeed_soc_ast2400_class_init()
575 sc->uarts_num = 5; in aspeed_soc_ast2400_class_init()
576 sc->uarts_base = ASPEED_DEV_UART1; in aspeed_soc_ast2400_class_init()
577 sc->irqmap = aspeed_soc_ast2400_irqmap; in aspeed_soc_ast2400_class_init()
578 sc->memmap = aspeed_soc_ast2400_memmap; in aspeed_soc_ast2400_class_init()
579 sc->num_cpus = 1; in aspeed_soc_ast2400_class_init()
580 sc->get_irq = aspeed_soc_ast2400_get_irq; in aspeed_soc_ast2400_class_init()
592 dc->realize = aspeed_ast2400_soc_realize; in aspeed_soc_ast2500_class_init()
594 dc->user_creatable = false; in aspeed_soc_ast2500_class_init()
596 sc->name = "ast2500-a1"; in aspeed_soc_ast2500_class_init()
597 sc->valid_cpu_types = valid_cpu_types; in aspeed_soc_ast2500_class_init()
598 sc->silicon_rev = AST2500_A1_SILICON_REV; in aspeed_soc_ast2500_class_init()
599 sc->sram_size = 0x9000; in aspeed_soc_ast2500_class_init()
600 sc->spis_num = 2; in aspeed_soc_ast2500_class_init()
601 sc->ehcis_num = 2; in aspeed_soc_ast2500_class_init()
602 sc->wdts_num = 3; in aspeed_soc_ast2500_class_init()
603 sc->macs_num = 2; in aspeed_soc_ast2500_class_init()
604 sc->uarts_num = 5; in aspeed_soc_ast2500_class_init()
605 sc->uarts_base = ASPEED_DEV_UART1; in aspeed_soc_ast2500_class_init()
606 sc->irqmap = aspeed_soc_ast2500_irqmap; in aspeed_soc_ast2500_class_init()
607 sc->memmap = aspeed_soc_ast2500_memmap; in aspeed_soc_ast2500_class_init()
608 sc->num_cpus = 1; in aspeed_soc_ast2500_class_init()
609 sc->get_irq = aspeed_soc_ast2400_get_irq; in aspeed_soc_ast2500_class_init()
620 .name = "ast2400-a1",
624 .name = "ast2500-a1",