Lines Matching +full:0 +full:x40013000
35 #define MSF2_TIMER_BASE 0x40004000
36 #define MSF2_SYSREG_BASE 0x40038000
37 #define MSF2_EMAC_BASE 0x40041000
39 #define ENVM_BASE_ADDRESS 0x60000000
41 #define SRAM_BASE_ADDRESS 0x20000000
54 static const uint32_t spi_addr[MSF2_NUM_SPIS] = { 0x40001000 , 0x40011000 };
55 static const uint32_t uart_addr[MSF2_NUM_UARTS] = { 0x40000000 , 0x40010000 };
72 for (i = 0; i < MSF2_NUM_SPIS; i++) { in m2sxxx_soc_initfn()
78 s->m3clk = qdev_init_clock_in(DEVICE(obj), "m3clk", NULL, NULL, 0); in m2sxxx_soc_initfn()
79 s->refclk = qdev_init_clock_in(DEVICE(obj), "refclk", NULL, NULL, 0); in m2sxxx_soc_initfn()
107 * TODO: ideally we should model the SoC SYSTICK_CR register at 0xe0042038, in m2sxxx_soc_realize()
120 * On power-on, the eNVM region 0x60000000 is automatically in m2sxxx_soc_realize()
122 * start address (0x0). We do not support remapping other eNVM, in m2sxxx_soc_realize()
126 &s->nvm, 0, s->envm_size); in m2sxxx_soc_realize()
129 memory_region_add_subregion(system_memory, 0, &s->nvm_alias); in m2sxxx_soc_realize()
147 for (i = 0; i < MSF2_NUM_UARTS; i++) { in m2sxxx_soc_realize()
167 sysbus_mmio_map(busdev, 0, MSF2_TIMER_BASE); in m2sxxx_soc_realize()
168 sysbus_connect_irq(busdev, 0, in m2sxxx_soc_realize()
169 qdev_get_gpio_in(armv7m, timer_irq[0])); in m2sxxx_soc_realize()
180 sysbus_mmio_map(busdev, 0, MSF2_SYSREG_BASE); in m2sxxx_soc_realize()
182 for (i = 0; i < MSF2_NUM_SPIS; i++) { in m2sxxx_soc_realize()
189 sysbus_mmio_map(SYS_BUS_DEVICE(&s->spi[i]), 0, spi_addr[i]); in m2sxxx_soc_realize()
190 sysbus_connect_irq(SYS_BUS_DEVICE(&s->spi[i]), 0, in m2sxxx_soc_realize()
208 sysbus_mmio_map(busdev, 0, MSF2_EMAC_BASE); in m2sxxx_soc_realize()
209 sysbus_connect_irq(busdev, 0, in m2sxxx_soc_realize()
213 create_unimplemented_device("i2c_0", 0x40002000, 0x1000); in m2sxxx_soc_realize()
214 create_unimplemented_device("dma", 0x40003000, 0x1000); in m2sxxx_soc_realize()
215 create_unimplemented_device("watchdog", 0x40005000, 0x1000); in m2sxxx_soc_realize()
216 create_unimplemented_device("i2c_1", 0x40012000, 0x1000); in m2sxxx_soc_realize()
217 create_unimplemented_device("gpio", 0x40013000, 0x1000); in m2sxxx_soc_realize()
218 create_unimplemented_device("hs-dma", 0x40014000, 0x1000); in m2sxxx_soc_realize()
219 create_unimplemented_device("can", 0x40015000, 0x1000); in m2sxxx_soc_realize()
220 create_unimplemented_device("rtc", 0x40017000, 0x1000); in m2sxxx_soc_realize()
221 create_unimplemented_device("apb_config", 0x40020000, 0x10000); in m2sxxx_soc_realize()
222 create_unimplemented_device("usb", 0x40043000, 0x1000); in m2sxxx_soc_realize()