1ee708c99SJean-Christophe Dubois /* 2ee708c99SJean-Christophe Dubois * Copyright (c) 2013 Jean-Christophe Dubois <jcd@tribudubois.net> 3ee708c99SJean-Christophe Dubois * 4ee708c99SJean-Christophe Dubois * i.MX25 SOC emulation. 5ee708c99SJean-Christophe Dubois * 6ee708c99SJean-Christophe Dubois * Based on hw/arm/xlnx-zynqmp.c 7ee708c99SJean-Christophe Dubois * 8ee708c99SJean-Christophe Dubois * Copyright (C) 2015 Xilinx Inc 9ee708c99SJean-Christophe Dubois * Written by Peter Crosthwaite <peter.crosthwaite@xilinx.com> 10ee708c99SJean-Christophe Dubois * 11ee708c99SJean-Christophe Dubois * This program is free software; you can redistribute it and/or modify it 12ee708c99SJean-Christophe Dubois * under the terms of the GNU General Public License as published by the 13ee708c99SJean-Christophe Dubois * Free Software Foundation; either version 2 of the License, or 14ee708c99SJean-Christophe Dubois * (at your option) any later version. 15ee708c99SJean-Christophe Dubois * 16ee708c99SJean-Christophe Dubois * This program is distributed in the hope that it will be useful, but WITHOUT 17ee708c99SJean-Christophe Dubois * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 18ee708c99SJean-Christophe Dubois * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 19ee708c99SJean-Christophe Dubois * for more details. 20ee708c99SJean-Christophe Dubois * 21ee708c99SJean-Christophe Dubois * You should have received a copy of the GNU General Public License along 22ee708c99SJean-Christophe Dubois * with this program; if not, see <http://www.gnu.org/licenses/>. 23ee708c99SJean-Christophe Dubois */ 24ee708c99SJean-Christophe Dubois 2512b16722SPeter Maydell #include "qemu/osdep.h" 26da34e65cSMarkus Armbruster #include "qapi/error.h" 274771d756SPaolo Bonzini #include "cpu.h" 28ee708c99SJean-Christophe Dubois #include "hw/arm/fsl-imx25.h" 29ee708c99SJean-Christophe Dubois #include "sysemu/sysemu.h" 30ee708c99SJean-Christophe Dubois #include "exec/address-spaces.h" 31a27bd6c7SMarkus Armbruster #include "hw/qdev-properties.h" 328228e353SMarc-André Lureau #include "chardev/char.h" 33ee708c99SJean-Christophe Dubois 34ee708c99SJean-Christophe Dubois static void fsl_imx25_init(Object *obj) 35ee708c99SJean-Christophe Dubois { 36ee708c99SJean-Christophe Dubois FslIMX25State *s = FSL_IMX25(obj); 37ee708c99SJean-Christophe Dubois int i; 38ee708c99SJean-Christophe Dubois 39*eaa9a878SPhilippe Mathieu-Daudé object_initialize_child(obj, "cpu", &s->cpu, sizeof(s->cpu), 40*eaa9a878SPhilippe Mathieu-Daudé ARM_CPU_TYPE_NAME("arm926"), 41*eaa9a878SPhilippe Mathieu-Daudé &error_abort, NULL); 42ee708c99SJean-Christophe Dubois 4351dd12acSThomas Huth sysbus_init_child_obj(obj, "avic", &s->avic, sizeof(s->avic), 4451dd12acSThomas Huth TYPE_IMX_AVIC); 45ee708c99SJean-Christophe Dubois 4651dd12acSThomas Huth sysbus_init_child_obj(obj, "ccm", &s->ccm, sizeof(s->ccm), TYPE_IMX25_CCM); 47ee708c99SJean-Christophe Dubois 48ee708c99SJean-Christophe Dubois for (i = 0; i < FSL_IMX25_NUM_UARTS; i++) { 4951dd12acSThomas Huth sysbus_init_child_obj(obj, "uart[*]", &s->uart[i], sizeof(s->uart[i]), 5051dd12acSThomas Huth TYPE_IMX_SERIAL); 51ee708c99SJean-Christophe Dubois } 52ee708c99SJean-Christophe Dubois 53ee708c99SJean-Christophe Dubois for (i = 0; i < FSL_IMX25_NUM_GPTS; i++) { 5451dd12acSThomas Huth sysbus_init_child_obj(obj, "gpt[*]", &s->gpt[i], sizeof(s->gpt[i]), 5551dd12acSThomas Huth TYPE_IMX25_GPT); 56ee708c99SJean-Christophe Dubois } 57ee708c99SJean-Christophe Dubois 58ee708c99SJean-Christophe Dubois for (i = 0; i < FSL_IMX25_NUM_EPITS; i++) { 5951dd12acSThomas Huth sysbus_init_child_obj(obj, "epit[*]", &s->epit[i], sizeof(s->epit[i]), 6051dd12acSThomas Huth TYPE_IMX_EPIT); 61ee708c99SJean-Christophe Dubois } 62ee708c99SJean-Christophe Dubois 6351dd12acSThomas Huth sysbus_init_child_obj(obj, "fec", &s->fec, sizeof(s->fec), TYPE_IMX_FEC); 64ee708c99SJean-Christophe Dubois 65ee708c99SJean-Christophe Dubois for (i = 0; i < FSL_IMX25_NUM_I2CS; i++) { 6651dd12acSThomas Huth sysbus_init_child_obj(obj, "i2c[*]", &s->i2c[i], sizeof(s->i2c[i]), 6751dd12acSThomas Huth TYPE_IMX_I2C); 68ee708c99SJean-Christophe Dubois } 696abc7158SJean-Christophe Dubois 706abc7158SJean-Christophe Dubois for (i = 0; i < FSL_IMX25_NUM_GPIOS; i++) { 7151dd12acSThomas Huth sysbus_init_child_obj(obj, "gpio[*]", &s->gpio[i], sizeof(s->gpio[i]), 7251dd12acSThomas Huth TYPE_IMX_GPIO); 736abc7158SJean-Christophe Dubois } 74ee708c99SJean-Christophe Dubois } 75ee708c99SJean-Christophe Dubois 76ee708c99SJean-Christophe Dubois static void fsl_imx25_realize(DeviceState *dev, Error **errp) 77ee708c99SJean-Christophe Dubois { 78ee708c99SJean-Christophe Dubois FslIMX25State *s = FSL_IMX25(dev); 79ee708c99SJean-Christophe Dubois uint8_t i; 80ee708c99SJean-Christophe Dubois Error *err = NULL; 81ee708c99SJean-Christophe Dubois 82ee708c99SJean-Christophe Dubois object_property_set_bool(OBJECT(&s->cpu), true, "realized", &err); 83ee708c99SJean-Christophe Dubois if (err) { 84ee708c99SJean-Christophe Dubois error_propagate(errp, err); 85ee708c99SJean-Christophe Dubois return; 86ee708c99SJean-Christophe Dubois } 87ee708c99SJean-Christophe Dubois 88ee708c99SJean-Christophe Dubois object_property_set_bool(OBJECT(&s->avic), true, "realized", &err); 89ee708c99SJean-Christophe Dubois if (err) { 90ee708c99SJean-Christophe Dubois error_propagate(errp, err); 91ee708c99SJean-Christophe Dubois return; 92ee708c99SJean-Christophe Dubois } 93ee708c99SJean-Christophe Dubois sysbus_mmio_map(SYS_BUS_DEVICE(&s->avic), 0, FSL_IMX25_AVIC_ADDR); 94ee708c99SJean-Christophe Dubois sysbus_connect_irq(SYS_BUS_DEVICE(&s->avic), 0, 95ee708c99SJean-Christophe Dubois qdev_get_gpio_in(DEVICE(&s->cpu), ARM_CPU_IRQ)); 96ee708c99SJean-Christophe Dubois sysbus_connect_irq(SYS_BUS_DEVICE(&s->avic), 1, 97ee708c99SJean-Christophe Dubois qdev_get_gpio_in(DEVICE(&s->cpu), ARM_CPU_FIQ)); 98ee708c99SJean-Christophe Dubois 99ee708c99SJean-Christophe Dubois object_property_set_bool(OBJECT(&s->ccm), true, "realized", &err); 100ee708c99SJean-Christophe Dubois if (err) { 101ee708c99SJean-Christophe Dubois error_propagate(errp, err); 102ee708c99SJean-Christophe Dubois return; 103ee708c99SJean-Christophe Dubois } 104ee708c99SJean-Christophe Dubois sysbus_mmio_map(SYS_BUS_DEVICE(&s->ccm), 0, FSL_IMX25_CCM_ADDR); 105ee708c99SJean-Christophe Dubois 106ee708c99SJean-Christophe Dubois /* Initialize all UARTs */ 107ee708c99SJean-Christophe Dubois for (i = 0; i < FSL_IMX25_NUM_UARTS; i++) { 108ee708c99SJean-Christophe Dubois static const struct { 109ee708c99SJean-Christophe Dubois hwaddr addr; 110ee708c99SJean-Christophe Dubois unsigned int irq; 111ee708c99SJean-Christophe Dubois } serial_table[FSL_IMX25_NUM_UARTS] = { 112ee708c99SJean-Christophe Dubois { FSL_IMX25_UART1_ADDR, FSL_IMX25_UART1_IRQ }, 113ee708c99SJean-Christophe Dubois { FSL_IMX25_UART2_ADDR, FSL_IMX25_UART2_IRQ }, 114ee708c99SJean-Christophe Dubois { FSL_IMX25_UART3_ADDR, FSL_IMX25_UART3_IRQ }, 115ee708c99SJean-Christophe Dubois { FSL_IMX25_UART4_ADDR, FSL_IMX25_UART4_IRQ }, 116ee708c99SJean-Christophe Dubois { FSL_IMX25_UART5_ADDR, FSL_IMX25_UART5_IRQ } 117ee708c99SJean-Christophe Dubois }; 118ee708c99SJean-Christophe Dubois 1199bca0edbSPeter Maydell qdev_prop_set_chr(DEVICE(&s->uart[i]), "chardev", serial_hd(i)); 120ee708c99SJean-Christophe Dubois 121ee708c99SJean-Christophe Dubois object_property_set_bool(OBJECT(&s->uart[i]), true, "realized", &err); 122ee708c99SJean-Christophe Dubois if (err) { 123ee708c99SJean-Christophe Dubois error_propagate(errp, err); 124ee708c99SJean-Christophe Dubois return; 125ee708c99SJean-Christophe Dubois } 126ee708c99SJean-Christophe Dubois sysbus_mmio_map(SYS_BUS_DEVICE(&s->uart[i]), 0, serial_table[i].addr); 127ee708c99SJean-Christophe Dubois sysbus_connect_irq(SYS_BUS_DEVICE(&s->uart[i]), 0, 128ee708c99SJean-Christophe Dubois qdev_get_gpio_in(DEVICE(&s->avic), 129ee708c99SJean-Christophe Dubois serial_table[i].irq)); 130ee708c99SJean-Christophe Dubois } 131ee708c99SJean-Christophe Dubois 132ee708c99SJean-Christophe Dubois /* Initialize all GPT timers */ 133ee708c99SJean-Christophe Dubois for (i = 0; i < FSL_IMX25_NUM_GPTS; i++) { 134ee708c99SJean-Christophe Dubois static const struct { 135ee708c99SJean-Christophe Dubois hwaddr addr; 136ee708c99SJean-Christophe Dubois unsigned int irq; 137ee708c99SJean-Christophe Dubois } gpt_table[FSL_IMX25_NUM_GPTS] = { 138ee708c99SJean-Christophe Dubois { FSL_IMX25_GPT1_ADDR, FSL_IMX25_GPT1_IRQ }, 139ee708c99SJean-Christophe Dubois { FSL_IMX25_GPT2_ADDR, FSL_IMX25_GPT2_IRQ }, 140ee708c99SJean-Christophe Dubois { FSL_IMX25_GPT3_ADDR, FSL_IMX25_GPT3_IRQ }, 141ee708c99SJean-Christophe Dubois { FSL_IMX25_GPT4_ADDR, FSL_IMX25_GPT4_IRQ } 142ee708c99SJean-Christophe Dubois }; 143ee708c99SJean-Christophe Dubois 144cb54d868SJean-Christophe Dubois s->gpt[i].ccm = IMX_CCM(&s->ccm); 145ee708c99SJean-Christophe Dubois 146ee708c99SJean-Christophe Dubois object_property_set_bool(OBJECT(&s->gpt[i]), true, "realized", &err); 147ee708c99SJean-Christophe Dubois if (err) { 148ee708c99SJean-Christophe Dubois error_propagate(errp, err); 149ee708c99SJean-Christophe Dubois return; 150ee708c99SJean-Christophe Dubois } 151ee708c99SJean-Christophe Dubois sysbus_mmio_map(SYS_BUS_DEVICE(&s->gpt[i]), 0, gpt_table[i].addr); 152ee708c99SJean-Christophe Dubois sysbus_connect_irq(SYS_BUS_DEVICE(&s->gpt[i]), 0, 153ee708c99SJean-Christophe Dubois qdev_get_gpio_in(DEVICE(&s->avic), 154ee708c99SJean-Christophe Dubois gpt_table[i].irq)); 155ee708c99SJean-Christophe Dubois } 156ee708c99SJean-Christophe Dubois 157ee708c99SJean-Christophe Dubois /* Initialize all EPIT timers */ 158ee708c99SJean-Christophe Dubois for (i = 0; i < FSL_IMX25_NUM_EPITS; i++) { 159ee708c99SJean-Christophe Dubois static const struct { 160ee708c99SJean-Christophe Dubois hwaddr addr; 161ee708c99SJean-Christophe Dubois unsigned int irq; 162ee708c99SJean-Christophe Dubois } epit_table[FSL_IMX25_NUM_EPITS] = { 163ee708c99SJean-Christophe Dubois { FSL_IMX25_EPIT1_ADDR, FSL_IMX25_EPIT1_IRQ }, 164ee708c99SJean-Christophe Dubois { FSL_IMX25_EPIT2_ADDR, FSL_IMX25_EPIT2_IRQ } 165ee708c99SJean-Christophe Dubois }; 166ee708c99SJean-Christophe Dubois 167cb54d868SJean-Christophe Dubois s->epit[i].ccm = IMX_CCM(&s->ccm); 168ee708c99SJean-Christophe Dubois 169ee708c99SJean-Christophe Dubois object_property_set_bool(OBJECT(&s->epit[i]), true, "realized", &err); 170ee708c99SJean-Christophe Dubois if (err) { 171ee708c99SJean-Christophe Dubois error_propagate(errp, err); 172ee708c99SJean-Christophe Dubois return; 173ee708c99SJean-Christophe Dubois } 174ee708c99SJean-Christophe Dubois sysbus_mmio_map(SYS_BUS_DEVICE(&s->epit[i]), 0, epit_table[i].addr); 175ee708c99SJean-Christophe Dubois sysbus_connect_irq(SYS_BUS_DEVICE(&s->epit[i]), 0, 176ee708c99SJean-Christophe Dubois qdev_get_gpio_in(DEVICE(&s->avic), 177ee708c99SJean-Christophe Dubois epit_table[i].irq)); 178ee708c99SJean-Christophe Dubois } 179ee708c99SJean-Christophe Dubois 180ee708c99SJean-Christophe Dubois qdev_set_nic_properties(DEVICE(&s->fec), &nd_table[0]); 181a699b410SJean-Christophe Dubois 182ee708c99SJean-Christophe Dubois object_property_set_bool(OBJECT(&s->fec), true, "realized", &err); 183ee708c99SJean-Christophe Dubois if (err) { 184ee708c99SJean-Christophe Dubois error_propagate(errp, err); 185ee708c99SJean-Christophe Dubois return; 186ee708c99SJean-Christophe Dubois } 187ee708c99SJean-Christophe Dubois sysbus_mmio_map(SYS_BUS_DEVICE(&s->fec), 0, FSL_IMX25_FEC_ADDR); 188ee708c99SJean-Christophe Dubois sysbus_connect_irq(SYS_BUS_DEVICE(&s->fec), 0, 189ee708c99SJean-Christophe Dubois qdev_get_gpio_in(DEVICE(&s->avic), FSL_IMX25_FEC_IRQ)); 190ee708c99SJean-Christophe Dubois 191ee708c99SJean-Christophe Dubois 192ee708c99SJean-Christophe Dubois /* Initialize all I2C */ 193ee708c99SJean-Christophe Dubois for (i = 0; i < FSL_IMX25_NUM_I2CS; i++) { 194ee708c99SJean-Christophe Dubois static const struct { 195ee708c99SJean-Christophe Dubois hwaddr addr; 196ee708c99SJean-Christophe Dubois unsigned int irq; 197ee708c99SJean-Christophe Dubois } i2c_table[FSL_IMX25_NUM_I2CS] = { 198ee708c99SJean-Christophe Dubois { FSL_IMX25_I2C1_ADDR, FSL_IMX25_I2C1_IRQ }, 199ee708c99SJean-Christophe Dubois { FSL_IMX25_I2C2_ADDR, FSL_IMX25_I2C2_IRQ }, 200ee708c99SJean-Christophe Dubois { FSL_IMX25_I2C3_ADDR, FSL_IMX25_I2C3_IRQ } 201ee708c99SJean-Christophe Dubois }; 202ee708c99SJean-Christophe Dubois 203ee708c99SJean-Christophe Dubois object_property_set_bool(OBJECT(&s->i2c[i]), true, "realized", &err); 204ee708c99SJean-Christophe Dubois if (err) { 205ee708c99SJean-Christophe Dubois error_propagate(errp, err); 206ee708c99SJean-Christophe Dubois return; 207ee708c99SJean-Christophe Dubois } 208ee708c99SJean-Christophe Dubois sysbus_mmio_map(SYS_BUS_DEVICE(&s->i2c[i]), 0, i2c_table[i].addr); 209ee708c99SJean-Christophe Dubois sysbus_connect_irq(SYS_BUS_DEVICE(&s->i2c[i]), 0, 210ee708c99SJean-Christophe Dubois qdev_get_gpio_in(DEVICE(&s->avic), 211ee708c99SJean-Christophe Dubois i2c_table[i].irq)); 212ee708c99SJean-Christophe Dubois } 213ee708c99SJean-Christophe Dubois 2146abc7158SJean-Christophe Dubois /* Initialize all GPIOs */ 2156abc7158SJean-Christophe Dubois for (i = 0; i < FSL_IMX25_NUM_GPIOS; i++) { 2166abc7158SJean-Christophe Dubois static const struct { 2176abc7158SJean-Christophe Dubois hwaddr addr; 2186abc7158SJean-Christophe Dubois unsigned int irq; 2196abc7158SJean-Christophe Dubois } gpio_table[FSL_IMX25_NUM_GPIOS] = { 2206abc7158SJean-Christophe Dubois { FSL_IMX25_GPIO1_ADDR, FSL_IMX25_GPIO1_IRQ }, 2216abc7158SJean-Christophe Dubois { FSL_IMX25_GPIO2_ADDR, FSL_IMX25_GPIO2_IRQ }, 2226abc7158SJean-Christophe Dubois { FSL_IMX25_GPIO3_ADDR, FSL_IMX25_GPIO3_IRQ }, 2236abc7158SJean-Christophe Dubois { FSL_IMX25_GPIO4_ADDR, FSL_IMX25_GPIO4_IRQ } 2246abc7158SJean-Christophe Dubois }; 2256abc7158SJean-Christophe Dubois 2266abc7158SJean-Christophe Dubois object_property_set_bool(OBJECT(&s->gpio[i]), true, "realized", &err); 2276abc7158SJean-Christophe Dubois if (err) { 2286abc7158SJean-Christophe Dubois error_propagate(errp, err); 2296abc7158SJean-Christophe Dubois return; 2306abc7158SJean-Christophe Dubois } 2316abc7158SJean-Christophe Dubois sysbus_mmio_map(SYS_BUS_DEVICE(&s->gpio[i]), 0, gpio_table[i].addr); 2326abc7158SJean-Christophe Dubois /* Connect GPIO IRQ to PIC */ 2336abc7158SJean-Christophe Dubois sysbus_connect_irq(SYS_BUS_DEVICE(&s->gpio[i]), 0, 2346abc7158SJean-Christophe Dubois qdev_get_gpio_in(DEVICE(&s->avic), 2356abc7158SJean-Christophe Dubois gpio_table[i].irq)); 2366abc7158SJean-Christophe Dubois } 2376abc7158SJean-Christophe Dubois 238ee708c99SJean-Christophe Dubois /* initialize 2 x 16 KB ROM */ 239eda40cc1SPeter Maydell memory_region_init_rom(&s->rom[0], NULL, 240ee708c99SJean-Christophe Dubois "imx25.rom0", FSL_IMX25_ROM0_SIZE, &err); 241ee708c99SJean-Christophe Dubois if (err) { 242ee708c99SJean-Christophe Dubois error_propagate(errp, err); 243ee708c99SJean-Christophe Dubois return; 244ee708c99SJean-Christophe Dubois } 245ee708c99SJean-Christophe Dubois memory_region_add_subregion(get_system_memory(), FSL_IMX25_ROM0_ADDR, 246ee708c99SJean-Christophe Dubois &s->rom[0]); 247eda40cc1SPeter Maydell memory_region_init_rom(&s->rom[1], NULL, 248ee708c99SJean-Christophe Dubois "imx25.rom1", FSL_IMX25_ROM1_SIZE, &err); 249ee708c99SJean-Christophe Dubois if (err) { 250ee708c99SJean-Christophe Dubois error_propagate(errp, err); 251ee708c99SJean-Christophe Dubois return; 252ee708c99SJean-Christophe Dubois } 253ee708c99SJean-Christophe Dubois memory_region_add_subregion(get_system_memory(), FSL_IMX25_ROM1_ADDR, 254ee708c99SJean-Christophe Dubois &s->rom[1]); 255ee708c99SJean-Christophe Dubois 256ee708c99SJean-Christophe Dubois /* initialize internal RAM (128 KB) */ 25798a99ce0SPeter Maydell memory_region_init_ram(&s->iram, NULL, "imx25.iram", FSL_IMX25_IRAM_SIZE, 258ee708c99SJean-Christophe Dubois &err); 259ee708c99SJean-Christophe Dubois if (err) { 260ee708c99SJean-Christophe Dubois error_propagate(errp, err); 261ee708c99SJean-Christophe Dubois return; 262ee708c99SJean-Christophe Dubois } 263ee708c99SJean-Christophe Dubois memory_region_add_subregion(get_system_memory(), FSL_IMX25_IRAM_ADDR, 264ee708c99SJean-Christophe Dubois &s->iram); 265ee708c99SJean-Christophe Dubois 266ee708c99SJean-Christophe Dubois /* internal RAM (128 KB) is aliased over 128 MB - 128 KB */ 267ee708c99SJean-Christophe Dubois memory_region_init_alias(&s->iram_alias, NULL, "imx25.iram_alias", 268ee708c99SJean-Christophe Dubois &s->iram, 0, FSL_IMX25_IRAM_ALIAS_SIZE); 269ee708c99SJean-Christophe Dubois memory_region_add_subregion(get_system_memory(), FSL_IMX25_IRAM_ALIAS_ADDR, 270ee708c99SJean-Christophe Dubois &s->iram_alias); 271ee708c99SJean-Christophe Dubois } 272ee708c99SJean-Christophe Dubois 273ee708c99SJean-Christophe Dubois static void fsl_imx25_class_init(ObjectClass *oc, void *data) 274ee708c99SJean-Christophe Dubois { 275ee708c99SJean-Christophe Dubois DeviceClass *dc = DEVICE_CLASS(oc); 276ee708c99SJean-Christophe Dubois 277ee708c99SJean-Christophe Dubois dc->realize = fsl_imx25_realize; 278eccfa35eSJean-Christophe Dubois dc->desc = "i.MX25 SOC"; 2795e0c7044SThomas Huth /* 2805e0c7044SThomas Huth * Reason: uses serial_hds in realize and the imx25 board does not 2815e0c7044SThomas Huth * support multiple CPUs 2825e0c7044SThomas Huth */ 2835e0c7044SThomas Huth dc->user_creatable = false; 284ee708c99SJean-Christophe Dubois } 285ee708c99SJean-Christophe Dubois 286ee708c99SJean-Christophe Dubois static const TypeInfo fsl_imx25_type_info = { 287ee708c99SJean-Christophe Dubois .name = TYPE_FSL_IMX25, 288ee708c99SJean-Christophe Dubois .parent = TYPE_DEVICE, 289ee708c99SJean-Christophe Dubois .instance_size = sizeof(FslIMX25State), 290ee708c99SJean-Christophe Dubois .instance_init = fsl_imx25_init, 291ee708c99SJean-Christophe Dubois .class_init = fsl_imx25_class_init, 292ee708c99SJean-Christophe Dubois }; 293ee708c99SJean-Christophe Dubois 294ee708c99SJean-Christophe Dubois static void fsl_imx25_register_types(void) 295ee708c99SJean-Christophe Dubois { 296ee708c99SJean-Christophe Dubois type_register_static(&fsl_imx25_type_info); 297ee708c99SJean-Christophe Dubois } 298ee708c99SJean-Christophe Dubois 299ee708c99SJean-Christophe Dubois type_init(fsl_imx25_register_types) 300