Lines Matching +full:0 +full:x01c00000
32 #define AW_A10_SRAM_A_BASE 0x00000000
33 #define AW_A10_DRAMC_BASE 0x01c01000
34 #define AW_A10_MMC0_BASE 0x01c0f000
35 #define AW_A10_CCM_BASE 0x01c20000
36 #define AW_A10_PIC_REG_BASE 0x01c20400
37 #define AW_A10_PIT_REG_BASE 0x01c20c00
38 #define AW_A10_UART0_REG_BASE 0x01c28000
39 #define AW_A10_SPI0_BASE 0x01c05000
40 #define AW_A10_EMAC_BASE 0x01c0b000
41 #define AW_A10_EHCI_BASE 0x01c14000
42 #define AW_A10_OHCI_BASE 0x01c14400
43 #define AW_A10_SATA_BASE 0x01c18000
44 #define AW_A10_WDT_BASE 0x01c20c90
45 #define AW_A10_RTC_BASE 0x01c20d00
46 #define AW_A10_I2C0_BASE 0x01c2ac00
53 if (blk_pread(blk, 8 * KiB, rom_size, buffer, 0) < 0) { in allwinner_a10_bootrom_setup()
86 for (size_t i = 0; i < AW_A10_NUM_USB; i++) { in aw_a10_init()
112 sysbus_mmio_map(sysbusdev, 0, AW_A10_PIC_REG_BASE); in aw_a10_realize()
113 sysbus_connect_irq(sysbusdev, 0, in aw_a10_realize()
123 sysbus_mmio_map(sysbusdev, 0, AW_A10_PIT_REG_BASE); in aw_a10_realize()
124 sysbus_connect_irq(sysbusdev, 0, qdev_get_gpio_in(dev, 22)); in aw_a10_realize()
133 memory_region_add_subregion(get_system_memory(), 0x00000000, &s->sram_a); in aw_a10_realize()
134 create_unimplemented_device("a10-sram-ctrl", 0x01c00000, 4 * KiB); in aw_a10_realize()
138 sysbus_mmio_map(SYS_BUS_DEVICE(&s->ccm), 0, AW_A10_CCM_BASE); in aw_a10_realize()
142 sysbus_mmio_map(SYS_BUS_DEVICE(&s->dramc), 0, AW_A10_DRAMC_BASE); in aw_a10_realize()
149 sysbus_mmio_map(sysbusdev, 0, AW_A10_EMAC_BASE); in aw_a10_realize()
150 sysbus_connect_irq(sysbusdev, 0, qdev_get_gpio_in(dev, 55)); in aw_a10_realize()
155 sysbus_mmio_map(SYS_BUS_DEVICE(&s->sata), 0, AW_A10_SATA_BASE); in aw_a10_realize()
156 sysbus_connect_irq(SYS_BUS_DEVICE(&s->sata), 0, qdev_get_gpio_in(dev, 56)); in aw_a10_realize()
161 115200, serial_hd(0), DEVICE_NATIVE_ENDIAN); in aw_a10_realize()
163 for (size_t i = 0; i < AW_A10_NUM_USB; i++) { in aw_a10_realize()
169 sysbus_mmio_map(SYS_BUS_DEVICE(&s->ehci[i]), 0, in aw_a10_realize()
170 AW_A10_EHCI_BASE + i * 0x8000); in aw_a10_realize()
171 sysbus_connect_irq(SYS_BUS_DEVICE(&s->ehci[i]), 0, in aw_a10_realize()
177 sysbus_mmio_map(SYS_BUS_DEVICE(&s->ohci[i]), 0, in aw_a10_realize()
178 AW_A10_OHCI_BASE + i * 0x8000); in aw_a10_realize()
179 sysbus_connect_irq(SYS_BUS_DEVICE(&s->ohci[i]), 0, in aw_a10_realize()
187 sysbus_mmio_map(SYS_BUS_DEVICE(&s->mmc0), 0, AW_A10_MMC0_BASE); in aw_a10_realize()
188 sysbus_connect_irq(SYS_BUS_DEVICE(&s->mmc0), 0, qdev_get_gpio_in(dev, 32)); in aw_a10_realize()
194 sysbus_mmio_map_overlap(SYS_BUS_DEVICE(&s->rtc), 0, AW_A10_RTC_BASE, 10); in aw_a10_realize()
198 sysbus_mmio_map(SYS_BUS_DEVICE(&s->i2c0), 0, AW_A10_I2C0_BASE); in aw_a10_realize()
199 sysbus_connect_irq(SYS_BUS_DEVICE(&s->i2c0), 0, qdev_get_gpio_in(dev, 7)); in aw_a10_realize()
203 sysbus_mmio_map(SYS_BUS_DEVICE(&s->spi0), 0, AW_A10_SPI0_BASE); in aw_a10_realize()
204 sysbus_connect_irq(SYS_BUS_DEVICE(&s->spi0), 0, qdev_get_gpio_in(dev, 10)); in aw_a10_realize()
208 sysbus_mmio_map_overlap(SYS_BUS_DEVICE(&s->wdt), 0, AW_A10_WDT_BASE, 1); in aw_a10_realize()