fsl-imx31.c (c221287f8ff4e46fffad11bb2a6bc99442e845be) | fsl-imx31.c (9bca0edb282de0007a4f068d9d20f3e3c3aadef7) |
---|---|
1/* 2 * Copyright (c) 2013 Jean-Christophe Dubois <jcd@tribudubois.net> 3 * 4 * i.MX31 SOC emulation. 5 * 6 * Based on hw/arm/fsl-imx31.c 7 * 8 * This program is free software; you can redistribute it and/or modify it --- 93 unchanged lines hidden (view full) --- 102 hwaddr addr; 103 unsigned int irq; 104 } serial_table[FSL_IMX31_NUM_UARTS] = { 105 { FSL_IMX31_UART1_ADDR, FSL_IMX31_UART1_IRQ }, 106 { FSL_IMX31_UART2_ADDR, FSL_IMX31_UART2_IRQ }, 107 }; 108 109 if (i < MAX_SERIAL_PORTS) { | 1/* 2 * Copyright (c) 2013 Jean-Christophe Dubois <jcd@tribudubois.net> 3 * 4 * i.MX31 SOC emulation. 5 * 6 * Based on hw/arm/fsl-imx31.c 7 * 8 * This program is free software; you can redistribute it and/or modify it --- 93 unchanged lines hidden (view full) --- 102 hwaddr addr; 103 unsigned int irq; 104 } serial_table[FSL_IMX31_NUM_UARTS] = { 105 { FSL_IMX31_UART1_ADDR, FSL_IMX31_UART1_IRQ }, 106 { FSL_IMX31_UART2_ADDR, FSL_IMX31_UART2_IRQ }, 107 }; 108 109 if (i < MAX_SERIAL_PORTS) { |
110 qdev_prop_set_chr(DEVICE(&s->uart[i]), "chardev", serial_hds[i]); | 110 qdev_prop_set_chr(DEVICE(&s->uart[i]), "chardev", serial_hd(i)); |
111 } 112 113 object_property_set_bool(OBJECT(&s->uart[i]), true, "realized", &err); 114 if (err) { 115 error_propagate(errp, err); 116 return; 117 } 118 --- 156 unchanged lines hidden --- | 111 } 112 113 object_property_set_bool(OBJECT(&s->uart[i]), true, "realized", &err); 114 if (err) { 115 error_propagate(errp, err); 116 return; 117 } 118 --- 156 unchanged lines hidden --- |