stm32f205_soc.c (d3f5433c7b4aa2d59c6de4175743f4126e181aea) stm32f205_soc.c (9bca0edb282de0007a4f068d9d20f3e3c3aadef7)
1/*
2 * STM32F205 SoC
3 *
4 * Copyright (c) 2014 Alistair Francis <alistair@alistair23.me>
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 122 unchanged lines hidden (view full) ---

131 busdev = SYS_BUS_DEVICE(dev);
132 sysbus_mmio_map(busdev, 0, 0x40013800);
133 sysbus_connect_irq(busdev, 0, qdev_get_gpio_in(armv7m, 71));
134
135 /* Attach UART (uses USART registers) and USART controllers */
136 for (i = 0; i < STM_NUM_USARTS; i++) {
137 dev = DEVICE(&(s->usart[i]));
138 qdev_prop_set_chr(dev, "chardev",
1/*
2 * STM32F205 SoC
3 *
4 * Copyright (c) 2014 Alistair Francis <alistair@alistair23.me>
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 122 unchanged lines hidden (view full) ---

131 busdev = SYS_BUS_DEVICE(dev);
132 sysbus_mmio_map(busdev, 0, 0x40013800);
133 sysbus_connect_irq(busdev, 0, qdev_get_gpio_in(armv7m, 71));
134
135 /* Attach UART (uses USART registers) and USART controllers */
136 for (i = 0; i < STM_NUM_USARTS; i++) {
137 dev = DEVICE(&(s->usart[i]));
138 qdev_prop_set_chr(dev, "chardev",
139 i < MAX_SERIAL_PORTS ? serial_hds[i] : NULL);
139 i < MAX_SERIAL_PORTS ? serial_hd(i) : NULL);
140 object_property_set_bool(OBJECT(&s->usart[i]), true, "realized", &err);
141 if (err != NULL) {
142 error_propagate(errp, err);
143 return;
144 }
145 busdev = SYS_BUS_DEVICE(dev);
146 sysbus_mmio_map(busdev, 0, usart_addr[i]);
147 sysbus_connect_irq(busdev, 0, qdev_get_gpio_in(armv7m, usart_irq[i]));

--- 81 unchanged lines hidden ---
140 object_property_set_bool(OBJECT(&s->usart[i]), true, "realized", &err);
141 if (err != NULL) {
142 error_propagate(errp, err);
143 return;
144 }
145 busdev = SYS_BUS_DEVICE(dev);
146 sysbus_mmio_map(busdev, 0, usart_addr[i]);
147 sysbus_connect_irq(busdev, 0, qdev_get_gpio_in(armv7m, usart_irq[i]));

--- 81 unchanged lines hidden ---