Lines Matching +full:0 +full:x40002800
33 #define RCC_ADDR 0x40023800
34 #define SYSCFG_ADD 0x40013800
35 static const uint32_t usart_addr[] = { 0x40011000, 0x40004400, 0x40004800,
36 0x40004C00, 0x40005000, 0x40011400,
37 0x40007800, 0x40007C00 };
39 static const uint32_t timer_addr[] = { 0x40000000, 0x40000400,
40 0x40000800, 0x40000C00 };
41 static const uint32_t adc_addr[] = { 0x40012000, 0x40012100, 0x40012200,
42 0x40012300, 0x40012400, 0x40012500 };
43 static const uint32_t spi_addr[] = { 0x40013000, 0x40003800, 0x40003C00,
44 0x40013400, 0x40015000, 0x40015400 };
45 #define EXTI_ADDR 0x40013C00
51 static const int spi_irq[] = { 35, 36, 51, 0, 0, 0 };
67 for (i = 0; i < STM_NUM_USARTS; i++) { in stm32f405_soc_initfn()
72 for (i = 0; i < STM_NUM_TIMERS; i++) { in stm32f405_soc_initfn()
77 for (i = 0; i < STM_NUM_ADCS; i++) { in stm32f405_soc_initfn()
81 for (i = 0; i < STM_NUM_SPIS; i++) { in stm32f405_soc_initfn()
87 s->sysclk = qdev_init_clock_in(DEVICE(s), "sysclk", NULL, NULL, 0); in stm32f405_soc_initfn()
88 s->refclk = qdev_init_clock_in(DEVICE(s), "refclk", NULL, NULL, 0); in stm32f405_soc_initfn()
131 "STM32F405.flash.alias", &s->flash, 0, in stm32f405_soc_realize()
135 memory_region_add_subregion(system_memory, 0, &s->flash_alias); in stm32f405_soc_realize()
172 sysbus_mmio_map(busdev, 0, RCC_ADDR); in stm32f405_soc_realize()
180 sysbus_mmio_map(busdev, 0, SYSCFG_ADD); in stm32f405_soc_realize()
181 sysbus_connect_irq(busdev, 0, qdev_get_gpio_in(armv7m, SYSCFG_IRQ)); in stm32f405_soc_realize()
184 for (i = 0; i < STM_NUM_USARTS; i++) { in stm32f405_soc_realize()
191 sysbus_mmio_map(busdev, 0, usart_addr[i]); in stm32f405_soc_realize()
192 sysbus_connect_irq(busdev, 0, qdev_get_gpio_in(armv7m, usart_irq[i])); in stm32f405_soc_realize()
196 for (i = 0; i < STM_NUM_TIMERS; i++) { in stm32f405_soc_realize()
203 sysbus_mmio_map(busdev, 0, timer_addr[i]); in stm32f405_soc_realize()
204 sysbus_connect_irq(busdev, 0, qdev_get_gpio_in(armv7m, timer_irq[i])); in stm32f405_soc_realize()
218 qdev_connect_gpio_out(DEVICE(&s->adc_irqs), 0, in stm32f405_soc_realize()
221 for (i = 0; i < STM_NUM_ADCS; i++) { in stm32f405_soc_realize()
227 sysbus_mmio_map(busdev, 0, adc_addr[i]); in stm32f405_soc_realize()
228 sysbus_connect_irq(busdev, 0, in stm32f405_soc_realize()
233 for (i = 0; i < STM_NUM_SPIS; i++) { in stm32f405_soc_realize()
239 sysbus_mmio_map(busdev, 0, spi_addr[i]); in stm32f405_soc_realize()
240 sysbus_connect_irq(busdev, 0, qdev_get_gpio_in(armv7m, spi_irq[i])); in stm32f405_soc_realize()
249 sysbus_mmio_map(busdev, 0, EXTI_ADDR); in stm32f405_soc_realize()
250 for (i = 0; i < 16; i++) { in stm32f405_soc_realize()
253 for (i = 0; i < 16; i++) { in stm32f405_soc_realize()
257 create_unimplemented_device("timer[7]", 0x40001400, 0x400); in stm32f405_soc_realize()
258 create_unimplemented_device("timer[12]", 0x40001800, 0x400); in stm32f405_soc_realize()
259 create_unimplemented_device("timer[6]", 0x40001000, 0x400); in stm32f405_soc_realize()
260 create_unimplemented_device("timer[13]", 0x40001C00, 0x400); in stm32f405_soc_realize()
261 create_unimplemented_device("timer[14]", 0x40002000, 0x400); in stm32f405_soc_realize()
262 create_unimplemented_device("RTC and BKP", 0x40002800, 0x400); in stm32f405_soc_realize()
263 create_unimplemented_device("WWDG", 0x40002C00, 0x400); in stm32f405_soc_realize()
264 create_unimplemented_device("IWDG", 0x40003000, 0x400); in stm32f405_soc_realize()
265 create_unimplemented_device("I2S2ext", 0x40003000, 0x400); in stm32f405_soc_realize()
266 create_unimplemented_device("I2S3ext", 0x40004000, 0x400); in stm32f405_soc_realize()
267 create_unimplemented_device("I2C1", 0x40005400, 0x400); in stm32f405_soc_realize()
268 create_unimplemented_device("I2C2", 0x40005800, 0x400); in stm32f405_soc_realize()
269 create_unimplemented_device("I2C3", 0x40005C00, 0x400); in stm32f405_soc_realize()
270 create_unimplemented_device("CAN1", 0x40006400, 0x400); in stm32f405_soc_realize()
271 create_unimplemented_device("CAN2", 0x40006800, 0x400); in stm32f405_soc_realize()
272 create_unimplemented_device("PWR", 0x40007000, 0x400); in stm32f405_soc_realize()
273 create_unimplemented_device("DAC", 0x40007400, 0x400); in stm32f405_soc_realize()
274 create_unimplemented_device("timer[1]", 0x40010000, 0x400); in stm32f405_soc_realize()
275 create_unimplemented_device("timer[8]", 0x40010400, 0x400); in stm32f405_soc_realize()
276 create_unimplemented_device("SDIO", 0x40012C00, 0x400); in stm32f405_soc_realize()
277 create_unimplemented_device("timer[9]", 0x40014000, 0x400); in stm32f405_soc_realize()
278 create_unimplemented_device("timer[10]", 0x40014400, 0x400); in stm32f405_soc_realize()
279 create_unimplemented_device("timer[11]", 0x40014800, 0x400); in stm32f405_soc_realize()
280 create_unimplemented_device("GPIOA", 0x40020000, 0x400); in stm32f405_soc_realize()
281 create_unimplemented_device("GPIOB", 0x40020400, 0x400); in stm32f405_soc_realize()
282 create_unimplemented_device("GPIOC", 0x40020800, 0x400); in stm32f405_soc_realize()
283 create_unimplemented_device("GPIOD", 0x40020C00, 0x400); in stm32f405_soc_realize()
284 create_unimplemented_device("GPIOE", 0x40021000, 0x400); in stm32f405_soc_realize()
285 create_unimplemented_device("GPIOF", 0x40021400, 0x400); in stm32f405_soc_realize()
286 create_unimplemented_device("GPIOG", 0x40021800, 0x400); in stm32f405_soc_realize()
287 create_unimplemented_device("GPIOH", 0x40021C00, 0x400); in stm32f405_soc_realize()
288 create_unimplemented_device("GPIOI", 0x40022000, 0x400); in stm32f405_soc_realize()
289 create_unimplemented_device("CRC", 0x40023000, 0x400); in stm32f405_soc_realize()
290 create_unimplemented_device("Flash Int", 0x40023C00, 0x400); in stm32f405_soc_realize()
291 create_unimplemented_device("BKPSRAM", 0x40024000, 0x400); in stm32f405_soc_realize()
292 create_unimplemented_device("DMA1", 0x40026000, 0x400); in stm32f405_soc_realize()
293 create_unimplemented_device("DMA2", 0x40026400, 0x400); in stm32f405_soc_realize()
294 create_unimplemented_device("Ethernet", 0x40028000, 0x1400); in stm32f405_soc_realize()
295 create_unimplemented_device("USB OTG HS", 0x40040000, 0x30000); in stm32f405_soc_realize()
296 create_unimplemented_device("USB OTG FS", 0x50000000, 0x31000); in stm32f405_soc_realize()
297 create_unimplemented_device("DCMI", 0x50050000, 0x400); in stm32f405_soc_realize()
298 create_unimplemented_device("RNG", 0x50060800, 0x400); in stm32f405_soc_realize()