1 |
/* |
/* |
2 |
* Copyright (C) 2006 Anders Gavare. All rights reserved. |
* Copyright (C) 2006-2007 Anders Gavare. All rights reserved. |
3 |
* |
* |
4 |
* Redistribution and use in source and binary forms, with or without |
* Redistribution and use in source and binary forms, with or without |
5 |
* modification, are permitted provided that the following conditions are met: |
* modification, are permitted provided that the following conditions are met: |
25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: machine_ts7200.c,v 1.1 2006/02/17 20:27:21 debug Exp $ |
* $Id: machine_ts7200.c,v 1.4 2006/12/30 13:31:02 debug Exp $ |
29 |
*/ |
*/ |
30 |
|
|
31 |
#include <stdio.h> |
#include <stdio.h> |
43 |
{ |
{ |
44 |
machine->machine_name = "TS7200"; |
machine->machine_name = "TS7200"; |
45 |
|
|
|
/* TODO: _NOT_ an ns16550 */ |
|
|
device_add(machine, "ns16550 irq=0 addr=0x808c0000 addr_mult=4"); |
|
|
|
|
46 |
dev_ram_init(machine, 0xc0000000, 0x20000000, DEV_RAM_MIRROR, 0x0); |
dev_ram_init(machine, 0xc0000000, 0x20000000, DEV_RAM_MIRROR, 0x0); |
47 |
|
|
48 |
|
machine->main_console_handle = (size_t)device_add(machine, |
49 |
|
"epcom addr=0x808c0000 name2='serial console'"); |
50 |
|
|
51 |
|
|
52 |
if (!machine->prom_emulation) |
if (!machine->prom_emulation) |
53 |
return; |
return; |
54 |
|
|
61 |
|
|
62 |
MACHINE_DEFAULT_CPU(ts7200) |
MACHINE_DEFAULT_CPU(ts7200) |
63 |
{ |
{ |
64 |
machine->cpu_name = strdup("80321_600_B0"); |
machine->cpu_name = strdup("ARM920T"); |
65 |
} |
} |
66 |
|
|
67 |
|
|
68 |
MACHINE_REGISTER(ts7200) |
MACHINE_REGISTER(ts7200) |
69 |
{ |
{ |
70 |
MR_DEFAULT(ts7200, "TS7200", ARCH_ARM, MACHINE_TS7200, 1, 0); |
MR_DEFAULT(ts7200, "TS7200", ARCH_ARM, MACHINE_TS7200); |
71 |
me->aliases[0] = "ts7200"; |
|
72 |
machine_entry_add(me, ARCH_ARM); |
machine_entry_add_alias(me, "ts7200"); |
73 |
} |
} |
74 |
|
|