1 |
/* |
/* |
2 |
* Copyright (C) 2005-2006 Anders Gavare. All rights reserved. |
* Copyright (C) 2005-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_zaurus.c,v 1.4 2006/06/24 10:19:19 debug Exp $ |
* $Id: machine_zaurus.c,v 1.7 2007/03/26 22:53:12 debug Exp $ |
29 |
*/ |
*/ |
30 |
|
|
31 |
#include <stdio.h> |
#include <stdio.h> |
48 |
|
|
49 |
/* TODO: replace this with the correct device */ |
/* TODO: replace this with the correct device */ |
50 |
dev_ram_init(machine, 0x40d00000, 0x1000, DEV_RAM_RAM, 0); |
dev_ram_init(machine, 0x40d00000, 0x1000, DEV_RAM_RAM, 0); |
51 |
|
/* |
52 |
device_add(machine, "ns16550 irq=0 addr=0x40100000 addr_mult=4"); |
device_add(machine, "ns16550 irq=0 addr=0x40100000 addr_mult=4"); |
53 |
device_add(machine, "ns16550 irq=0 addr=0xfd400000 addr_mult=4"); |
device_add(machine, "ns16550 irq=0 addr=0xfd400000 addr_mult=4"); |
54 |
|
*/ |
55 |
|
|
56 |
|
dev_fb_init(machine, machine->memory, 0x44000000, |
57 |
|
VFB_GENERIC, 640,240, 640,240, 16, "PXA2X0 LCD"); |
58 |
|
|
59 |
if (!machine->prom_emulation) |
if (!machine->prom_emulation) |
60 |
return; |
return; |
61 |
|
|
62 |
/* TODO */ |
/* TODO: Registers, etc. */ |
63 |
|
|
64 |
arm_setup_initial_translation_table(cpu, 0x4000); |
arm_setup_initial_translation_table(cpu, 0x4000); |
65 |
} |
} |
66 |
|
|
67 |
|
|
68 |
MACHINE_DEFAULT_CPU(zaurus) |
MACHINE_DEFAULT_CPU(zaurus) |
69 |
{ |
{ |
70 |
machine->cpu_name = strdup("PXA210"); |
machine->cpu_name = strdup("PXA27X"); |
71 |
} |
} |
72 |
|
|
73 |
|
|