diff options
author | Edgar E. Iglesias <edgar.iglesias@gmail.com> | 2009-05-16 01:40:46 +0200 |
---|---|---|
committer | Edgar E. Iglesias <edgar.iglesias@gmail.com> | 2009-05-16 02:13:49 +0200 |
commit | 4b816985b8622473afbe3e1bbe066a961661a5da (patch) | |
tree | 3b0ed9c13607a5390b2ec99dd3cbf9ee070f0095 /hw/axis_dev88.c | |
parent | 73cfd29fb34568f926386c2f43811362f2c22154 (diff) |
ETRAX-SER: qdevify.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Diffstat (limited to 'hw/axis_dev88.c')
-rw-r--r-- | hw/axis_dev88.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/hw/axis_dev88.c b/hw/axis_dev88.c index 3ed20665da..5a913ec238 100644 --- a/hw/axis_dev88.c +++ b/hw/axis_dev88.c @@ -21,15 +21,12 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -#include <time.h> -#include <sys/time.h> -#include "hw.h" + +#include "sysbus.h" #include "net.h" #include "flash.h" -#include "sysemu.h" -#include "devices.h" #include "boards.h" - +#include "sysemu.h" #include "etraxfs.h" #define D(x) @@ -323,10 +320,8 @@ void axisdev88_init (ram_addr_t ram_size, etraxfs_timer_init(env, irq + 0x1b, nmi + 1, 0x3005e000); for (i = 0; i < 4; i++) { - if (serial_hds[i]) { - etraxfs_ser_init(env, irq + 0x14 + i, - serial_hds[i], 0x30026000 + i * 0x2000); - } + sysbus_create_simple("etraxfs,serial", 0x30026000 + i * 0x2000, + irq[0x14 + i]); } if (kernel_filename) { |