Statistics
| Branch: | Revision:

root / hw / realview.c @ dd4239d6

History | View | Annotate | Download (11.1 kB)

1 5fafdf24 ths
/*
2 e69954b9 pbrook
 * ARM RealView Baseboard System emulation.
3 e69954b9 pbrook
 *
4 a1bb27b1 pbrook
 * Copyright (c) 2006-2007 CodeSourcery.
5 e69954b9 pbrook
 * Written by Paul Brook
6 e69954b9 pbrook
 *
7 e69954b9 pbrook
 * This code is licenced under the GPL.
8 e69954b9 pbrook
 */
9 e69954b9 pbrook
10 2e9bdce5 Paul Brook
#include "sysbus.h"
11 87ecb68b pbrook
#include "arm-misc.h"
12 87ecb68b pbrook
#include "primecell.h"
13 87ecb68b pbrook
#include "devices.h"
14 87ecb68b pbrook
#include "pci.h"
15 87ecb68b pbrook
#include "net.h"
16 87ecb68b pbrook
#include "sysemu.h"
17 87ecb68b pbrook
#include "boards.h"
18 e69954b9 pbrook
19 0ef849d7 Paul Brook
#define SMP_BOOT_ADDR 0xe0000000
20 e69954b9 pbrook
/* Board init.  */
21 e69954b9 pbrook
22 f93eb9ff balrog
static struct arm_boot_info realview_binfo = {
23 0ef849d7 Paul Brook
    .smp_loader_start = SMP_BOOT_ADDR,
24 f93eb9ff balrog
};
25 f93eb9ff balrog
26 be0f204a Paul Brook
static void secondary_cpu_reset(void *opaque)
27 be0f204a Paul Brook
{
28 be0f204a Paul Brook
  CPUState *env = opaque;
29 be0f204a Paul Brook
30 be0f204a Paul Brook
  cpu_reset(env);
31 be0f204a Paul Brook
  /* Set entry point for secondary CPUs.  This assumes we're using
32 be0f204a Paul Brook
     the init code from arm_boot.c.  Real hardware resets all CPUs
33 be0f204a Paul Brook
     the same.  */
34 0ef849d7 Paul Brook
  env->regs[15] = SMP_BOOT_ADDR;
35 be0f204a Paul Brook
}
36 be0f204a Paul Brook
37 f7c70325 Paul Brook
/* The following two lists must be consistent.  */
38 c988bfad Paul Brook
enum realview_board_type {
39 c988bfad Paul Brook
    BOARD_EB,
40 0ef849d7 Paul Brook
    BOARD_EB_MPCORE,
41 f7c70325 Paul Brook
    BOARD_PB_A8,
42 f7c70325 Paul Brook
    BOARD_PBX_A9,
43 f7c70325 Paul Brook
};
44 f7c70325 Paul Brook
45 f7c70325 Paul Brook
int realview_board_id[] = {
46 f7c70325 Paul Brook
    0x33b,
47 f7c70325 Paul Brook
    0x33b,
48 f7c70325 Paul Brook
    0x769,
49 f7c70325 Paul Brook
    0x76d
50 c988bfad Paul Brook
};
51 c988bfad Paul Brook
52 c227f099 Anthony Liguori
static void realview_init(ram_addr_t ram_size,
53 3023f332 aliguori
                     const char *boot_device,
54 e69954b9 pbrook
                     const char *kernel_filename, const char *kernel_cmdline,
55 c988bfad Paul Brook
                     const char *initrd_filename, const char *cpu_model,
56 c988bfad Paul Brook
                     enum realview_board_type board_type)
57 e69954b9 pbrook
{
58 c988bfad Paul Brook
    CPUState *env = NULL;
59 c227f099 Anthony Liguori
    ram_addr_t ram_offset;
60 0027b06d Paul Brook
    DeviceState *dev;
61 c988bfad Paul Brook
    SysBusDevice *busdev;
62 fe7e8758 Paul Brook
    qemu_irq *irqp;
63 fe7e8758 Paul Brook
    qemu_irq pic[64];
64 e69954b9 pbrook
    PCIBus *pci_bus;
65 e69954b9 pbrook
    NICInfo *nd;
66 e69954b9 pbrook
    int n;
67 0ef849d7 Paul Brook
    int done_nic = 0;
68 9ee6e8bb pbrook
    qemu_irq cpu_irq[4];
69 f7c70325 Paul Brook
    int is_mpcore = 0;
70 f7c70325 Paul Brook
    int is_pb = 0;
71 26e92f65 Paul Brook
    uint32_t proc_id = 0;
72 0ef849d7 Paul Brook
    uint32_t sys_id;
73 0ef849d7 Paul Brook
    ram_addr_t low_ram_size;
74 e69954b9 pbrook
75 f7c70325 Paul Brook
    switch (board_type) {
76 f7c70325 Paul Brook
    case BOARD_EB:
77 f7c70325 Paul Brook
        break;
78 f7c70325 Paul Brook
    case BOARD_EB_MPCORE:
79 f7c70325 Paul Brook
        is_mpcore = 1;
80 f7c70325 Paul Brook
        break;
81 f7c70325 Paul Brook
    case BOARD_PB_A8:
82 f7c70325 Paul Brook
        is_pb = 1;
83 f7c70325 Paul Brook
        break;
84 f7c70325 Paul Brook
    case BOARD_PBX_A9:
85 f7c70325 Paul Brook
        is_mpcore = 1;
86 f7c70325 Paul Brook
        is_pb = 1;
87 f7c70325 Paul Brook
        break;
88 f7c70325 Paul Brook
    }
89 c988bfad Paul Brook
    for (n = 0; n < smp_cpus; n++) {
90 9ee6e8bb pbrook
        env = cpu_init(cpu_model);
91 9ee6e8bb pbrook
        if (!env) {
92 9ee6e8bb pbrook
            fprintf(stderr, "Unable to find CPU definition\n");
93 9ee6e8bb pbrook
            exit(1);
94 9ee6e8bb pbrook
        }
95 fe7e8758 Paul Brook
        irqp = arm_pic_init_cpu(env);
96 fe7e8758 Paul Brook
        cpu_irq[n] = irqp[ARM_PIC_CPU_IRQ];
97 9ee6e8bb pbrook
        if (n > 0) {
98 be0f204a Paul Brook
            qemu_register_reset(secondary_cpu_reset, env);
99 9ee6e8bb pbrook
        }
100 aaed909a bellard
    }
101 26e92f65 Paul Brook
    if (arm_feature(env, ARM_FEATURE_V7)) {
102 f7c70325 Paul Brook
        if (is_mpcore) {
103 f7c70325 Paul Brook
            proc_id = 0x0c000000;
104 f7c70325 Paul Brook
        } else {
105 f7c70325 Paul Brook
            proc_id = 0x0e000000;
106 f7c70325 Paul Brook
        }
107 26e92f65 Paul Brook
    } else if (arm_feature(env, ARM_FEATURE_V6K)) {
108 26e92f65 Paul Brook
        proc_id = 0x06000000;
109 26e92f65 Paul Brook
    } else if (arm_feature(env, ARM_FEATURE_V6)) {
110 26e92f65 Paul Brook
        proc_id = 0x04000000;
111 26e92f65 Paul Brook
    } else {
112 26e92f65 Paul Brook
        proc_id = 0x02000000;
113 26e92f65 Paul Brook
    }
114 aaed909a bellard
115 7ffab4d7 pbrook
    ram_offset = qemu_ram_alloc(ram_size);
116 0ef849d7 Paul Brook
    low_ram_size = ram_size;
117 0ef849d7 Paul Brook
    if (low_ram_size > 0x10000000)
118 0ef849d7 Paul Brook
      low_ram_size = 0x10000000;
119 1235fc06 ths
    /* ??? RAM should repeat to fill physical memory space.  */
120 e69954b9 pbrook
    /* SDRAM at address zero.  */
121 0ef849d7 Paul Brook
    cpu_register_physical_memory(0, low_ram_size, ram_offset | IO_MEM_RAM);
122 0ef849d7 Paul Brook
    if (is_pb) {
123 0ef849d7 Paul Brook
        /* And again at a high address.  */
124 0ef849d7 Paul Brook
        cpu_register_physical_memory(0x70000000, ram_size,
125 0ef849d7 Paul Brook
                                     ram_offset | IO_MEM_RAM);
126 0ef849d7 Paul Brook
    } else {
127 0ef849d7 Paul Brook
        ram_size = low_ram_size;
128 0ef849d7 Paul Brook
    }
129 e69954b9 pbrook
130 0ef849d7 Paul Brook
    sys_id = is_pb ? 0x01780500 : 0xc1400400;
131 0ef849d7 Paul Brook
    arm_sysctl_init(0x10000000, sys_id, proc_id);
132 9ee6e8bb pbrook
133 c988bfad Paul Brook
    if (is_mpcore) {
134 f7c70325 Paul Brook
        dev = qdev_create(NULL, is_pb ? "a9mpcore_priv": "realview_mpcore");
135 c988bfad Paul Brook
        qdev_prop_set_uint32(dev, "num-cpu", smp_cpus);
136 c988bfad Paul Brook
        qdev_init_nofail(dev);
137 c988bfad Paul Brook
        busdev = sysbus_from_qdev(dev);
138 f7c70325 Paul Brook
        if (is_pb) {
139 f7c70325 Paul Brook
            realview_binfo.smp_priv_base = 0x1f000000;
140 f7c70325 Paul Brook
        } else {
141 f7c70325 Paul Brook
            realview_binfo.smp_priv_base = 0x10100000;
142 f7c70325 Paul Brook
        }
143 f7c70325 Paul Brook
        sysbus_mmio_map(busdev, 0, realview_binfo.smp_priv_base);
144 c988bfad Paul Brook
        for (n = 0; n < smp_cpus; n++) {
145 c988bfad Paul Brook
            sysbus_connect_irq(busdev, n, cpu_irq[n]);
146 c988bfad Paul Brook
        }
147 9ee6e8bb pbrook
    } else {
148 0ef849d7 Paul Brook
        uint32_t gic_addr = is_pb ? 0x1e000000 : 0x10040000;
149 0ef849d7 Paul Brook
        /* For now just create the nIRQ GIC, and ignore the others.  */
150 0ef849d7 Paul Brook
        dev = sysbus_create_simple("realview_gic", gic_addr, cpu_irq[0]);
151 fe7e8758 Paul Brook
    }
152 fe7e8758 Paul Brook
    for (n = 0; n < 64; n++) {
153 067a3ddc Paul Brook
        pic[n] = qdev_get_gpio_in(dev, n);
154 9ee6e8bb pbrook
    }
155 9ee6e8bb pbrook
156 86394e96 Paul Brook
    sysbus_create_simple("pl050_keyboard", 0x10006000, pic[20]);
157 86394e96 Paul Brook
    sysbus_create_simple("pl050_mouse", 0x10007000, pic[21]);
158 e69954b9 pbrook
159 a7d518a6 Paul Brook
    sysbus_create_simple("pl011", 0x10009000, pic[12]);
160 a7d518a6 Paul Brook
    sysbus_create_simple("pl011", 0x1000a000, pic[13]);
161 a7d518a6 Paul Brook
    sysbus_create_simple("pl011", 0x1000b000, pic[14]);
162 a7d518a6 Paul Brook
    sysbus_create_simple("pl011", 0x1000c000, pic[15]);
163 e69954b9 pbrook
164 e69954b9 pbrook
    /* DMA controller is optional, apparently.  */
165 b4496b13 Paul Brook
    sysbus_create_simple("pl081", 0x10030000, pic[24]);
166 e69954b9 pbrook
167 6a824ec3 Paul Brook
    sysbus_create_simple("sp804", 0x10011000, pic[4]);
168 6a824ec3 Paul Brook
    sysbus_create_simple("sp804", 0x10012000, pic[5]);
169 e69954b9 pbrook
170 2e9bdce5 Paul Brook
    sysbus_create_simple("pl110_versatile", 0x10020000, pic[23]);
171 e69954b9 pbrook
172 aa9311d8 Paul Brook
    sysbus_create_varargs("pl181", 0x10005000, pic[17], pic[18], NULL);
173 a1bb27b1 pbrook
174 a63bdb31 Paul Brook
    sysbus_create_simple("pl031", 0x10017000, pic[10]);
175 7e1543c2 pbrook
176 0ef849d7 Paul Brook
    if (!is_pb) {
177 0ef849d7 Paul Brook
        dev = sysbus_create_varargs("realview_pci", 0x60000000,
178 0ef849d7 Paul Brook
                                    pic[48], pic[49], pic[50], pic[51], NULL);
179 0ef849d7 Paul Brook
        pci_bus = (PCIBus *)qdev_get_child_bus(dev, "pci");
180 0ef849d7 Paul Brook
        if (usb_enabled) {
181 0ef849d7 Paul Brook
            usb_ohci_init_pci(pci_bus, -1);
182 0ef849d7 Paul Brook
        }
183 0ef849d7 Paul Brook
        n = drive_get_max_bus(IF_SCSI);
184 0ef849d7 Paul Brook
        while (n >= 0) {
185 0ef849d7 Paul Brook
            pci_create_simple(pci_bus, -1, "lsi53c895a");
186 0ef849d7 Paul Brook
            n--;
187 0ef849d7 Paul Brook
        }
188 e69954b9 pbrook
    }
189 e69954b9 pbrook
    for(n = 0; n < nb_nics; n++) {
190 e69954b9 pbrook
        nd = &nd_table[n];
191 0ae18cee aliguori
192 0ef849d7 Paul Brook
        if ((!nd->model && !done_nic)
193 0ef849d7 Paul Brook
            || strcmp(nd->model, is_pb ? "lan9118" : "smc91c111") == 0) {
194 0ef849d7 Paul Brook
            if (is_pb) {
195 0ef849d7 Paul Brook
                lan9118_init(nd, 0x4e000000, pic[28]);
196 0ef849d7 Paul Brook
            } else {
197 0ef849d7 Paul Brook
                smc91c111_init(nd, 0x4e000000, pic[28]);
198 0ef849d7 Paul Brook
            }
199 0ef849d7 Paul Brook
            done_nic = 1;
200 e69954b9 pbrook
        } else {
201 07caea31 Markus Armbruster
            pci_nic_init_nofail(nd, "rtl8139", NULL);
202 e69954b9 pbrook
        }
203 e69954b9 pbrook
    }
204 e69954b9 pbrook
205 e69954b9 pbrook
    /* Memory map for RealView Emulation Baseboard:  */
206 e69954b9 pbrook
    /* 0x10000000 System registers.  */
207 e69954b9 pbrook
    /*  0x10001000 System controller.  */
208 e69954b9 pbrook
    /*  0x10002000 Two-Wire Serial Bus.  */
209 e69954b9 pbrook
    /* 0x10003000 Reserved.  */
210 e69954b9 pbrook
    /*  0x10004000 AACI.  */
211 e69954b9 pbrook
    /*  0x10005000 MCI.  */
212 e69954b9 pbrook
    /* 0x10006000 KMI0.  */
213 e69954b9 pbrook
    /* 0x10007000 KMI1.  */
214 0ef849d7 Paul Brook
    /*  0x10008000 Character LCD. (EB) */
215 e69954b9 pbrook
    /* 0x10009000 UART0.  */
216 e69954b9 pbrook
    /* 0x1000a000 UART1.  */
217 e69954b9 pbrook
    /* 0x1000b000 UART2.  */
218 e69954b9 pbrook
    /* 0x1000c000 UART3.  */
219 e69954b9 pbrook
    /*  0x1000d000 SSPI.  */
220 e69954b9 pbrook
    /*  0x1000e000 SCI.  */
221 e69954b9 pbrook
    /* 0x1000f000 Reserved.  */
222 e69954b9 pbrook
    /*  0x10010000 Watchdog.  */
223 e69954b9 pbrook
    /* 0x10011000 Timer 0+1.  */
224 e69954b9 pbrook
    /* 0x10012000 Timer 2+3.  */
225 e69954b9 pbrook
    /*  0x10013000 GPIO 0.  */
226 e69954b9 pbrook
    /*  0x10014000 GPIO 1.  */
227 e69954b9 pbrook
    /*  0x10015000 GPIO 2.  */
228 0ef849d7 Paul Brook
    /*  0x10002000 Two-Wire Serial Bus - DVI. (PB) */
229 7e1543c2 pbrook
    /* 0x10017000 RTC.  */
230 e69954b9 pbrook
    /*  0x10018000 DMC.  */
231 e69954b9 pbrook
    /*  0x10019000 PCI controller config.  */
232 e69954b9 pbrook
    /*  0x10020000 CLCD.  */
233 e69954b9 pbrook
    /* 0x10030000 DMA Controller.  */
234 0ef849d7 Paul Brook
    /* 0x10040000 GIC1. (EB) */
235 0ef849d7 Paul Brook
    /*  0x10050000 GIC2. (EB) */
236 0ef849d7 Paul Brook
    /*  0x10060000 GIC3. (EB) */
237 0ef849d7 Paul Brook
    /*  0x10070000 GIC4. (EB) */
238 e69954b9 pbrook
    /*  0x10080000 SMC.  */
239 0ef849d7 Paul Brook
    /* 0x1e000000 GIC1. (PB) */
240 0ef849d7 Paul Brook
    /*  0x1e001000 GIC2. (PB) */
241 0ef849d7 Paul Brook
    /*  0x1e002000 GIC3. (PB) */
242 0ef849d7 Paul Brook
    /*  0x1e003000 GIC4. (PB) */
243 e69954b9 pbrook
    /*  0x40000000 NOR flash.  */
244 e69954b9 pbrook
    /*  0x44000000 DoC flash.  */
245 e69954b9 pbrook
    /*  0x48000000 SRAM.  */
246 e69954b9 pbrook
    /*  0x4c000000 Configuration flash.  */
247 e69954b9 pbrook
    /* 0x4e000000 Ethernet.  */
248 e69954b9 pbrook
    /*  0x4f000000 USB.  */
249 e69954b9 pbrook
    /*  0x50000000 PISMO.  */
250 e69954b9 pbrook
    /*  0x54000000 PISMO.  */
251 e69954b9 pbrook
    /*  0x58000000 PISMO.  */
252 e69954b9 pbrook
    /*  0x5c000000 PISMO.  */
253 e69954b9 pbrook
    /* 0x60000000 PCI.  */
254 e69954b9 pbrook
    /* 0x61000000 PCI Self Config.  */
255 e69954b9 pbrook
    /* 0x62000000 PCI Config.  */
256 e69954b9 pbrook
    /* 0x63000000 PCI IO.  */
257 e69954b9 pbrook
    /* 0x64000000 PCI mem 0.  */
258 e69954b9 pbrook
    /* 0x68000000 PCI mem 1.  */
259 e69954b9 pbrook
    /* 0x6c000000 PCI mem 2.  */
260 e69954b9 pbrook
261 7ffab4d7 pbrook
    /* ??? Hack to map an additional page of ram for the secondary CPU
262 7ffab4d7 pbrook
       startup code.  I guess this works on real hardware because the
263 7ffab4d7 pbrook
       BootROM happens to be in ROM/flash or in memory that isn't clobbered
264 7ffab4d7 pbrook
       until after Linux boots the secondary CPUs.  */
265 7ffab4d7 pbrook
    ram_offset = qemu_ram_alloc(0x1000);
266 0ef849d7 Paul Brook
    cpu_register_physical_memory(SMP_BOOT_ADDR, 0x1000,
267 0ef849d7 Paul Brook
                                 ram_offset | IO_MEM_RAM);
268 7ffab4d7 pbrook
269 f93eb9ff balrog
    realview_binfo.ram_size = ram_size;
270 f93eb9ff balrog
    realview_binfo.kernel_filename = kernel_filename;
271 f93eb9ff balrog
    realview_binfo.kernel_cmdline = kernel_cmdline;
272 f93eb9ff balrog
    realview_binfo.initrd_filename = initrd_filename;
273 c988bfad Paul Brook
    realview_binfo.nb_cpus = smp_cpus;
274 f7c70325 Paul Brook
    realview_binfo.board_id = realview_board_id[board_type];
275 0ef849d7 Paul Brook
    realview_binfo.loader_start = is_pb ? 0x70000000 : 0;
276 f93eb9ff balrog
    arm_load_kernel(first_cpu, &realview_binfo);
277 e69954b9 pbrook
}
278 e69954b9 pbrook
279 c988bfad Paul Brook
static void realview_eb_init(ram_addr_t ram_size,
280 c988bfad Paul Brook
                     const char *boot_device,
281 c988bfad Paul Brook
                     const char *kernel_filename, const char *kernel_cmdline,
282 c988bfad Paul Brook
                     const char *initrd_filename, const char *cpu_model)
283 c988bfad Paul Brook
{
284 c988bfad Paul Brook
    if (!cpu_model) {
285 c988bfad Paul Brook
        cpu_model = "arm926";
286 c988bfad Paul Brook
    }
287 c988bfad Paul Brook
    realview_init(ram_size, boot_device, kernel_filename, kernel_cmdline,
288 c988bfad Paul Brook
                  initrd_filename, cpu_model, BOARD_EB);
289 c988bfad Paul Brook
}
290 c988bfad Paul Brook
291 c988bfad Paul Brook
static void realview_eb_mpcore_init(ram_addr_t ram_size,
292 c988bfad Paul Brook
                     const char *boot_device,
293 c988bfad Paul Brook
                     const char *kernel_filename, const char *kernel_cmdline,
294 c988bfad Paul Brook
                     const char *initrd_filename, const char *cpu_model)
295 c988bfad Paul Brook
{
296 c988bfad Paul Brook
    if (!cpu_model) {
297 c988bfad Paul Brook
        cpu_model = "arm11mpcore";
298 c988bfad Paul Brook
    }
299 c988bfad Paul Brook
    realview_init(ram_size, boot_device, kernel_filename, kernel_cmdline,
300 c988bfad Paul Brook
                  initrd_filename, cpu_model, BOARD_EB_MPCORE);
301 c988bfad Paul Brook
}
302 c988bfad Paul Brook
303 0ef849d7 Paul Brook
static void realview_pb_a8_init(ram_addr_t ram_size,
304 0ef849d7 Paul Brook
                     const char *boot_device,
305 0ef849d7 Paul Brook
                     const char *kernel_filename, const char *kernel_cmdline,
306 0ef849d7 Paul Brook
                     const char *initrd_filename, const char *cpu_model)
307 0ef849d7 Paul Brook
{
308 0ef849d7 Paul Brook
    if (!cpu_model) {
309 0ef849d7 Paul Brook
        cpu_model = "cortex-a8";
310 0ef849d7 Paul Brook
    }
311 0ef849d7 Paul Brook
    realview_init(ram_size, boot_device, kernel_filename, kernel_cmdline,
312 0ef849d7 Paul Brook
                  initrd_filename, cpu_model, BOARD_PB_A8);
313 0ef849d7 Paul Brook
}
314 0ef849d7 Paul Brook
315 f7c70325 Paul Brook
static void realview_pbx_a9_init(ram_addr_t ram_size,
316 f7c70325 Paul Brook
                     const char *boot_device,
317 f7c70325 Paul Brook
                     const char *kernel_filename, const char *kernel_cmdline,
318 f7c70325 Paul Brook
                     const char *initrd_filename, const char *cpu_model)
319 f7c70325 Paul Brook
{
320 f7c70325 Paul Brook
    if (!cpu_model) {
321 f7c70325 Paul Brook
        cpu_model = "cortex-a9";
322 f7c70325 Paul Brook
    }
323 f7c70325 Paul Brook
    realview_init(ram_size, boot_device, kernel_filename, kernel_cmdline,
324 f7c70325 Paul Brook
                  initrd_filename, cpu_model, BOARD_PBX_A9);
325 f7c70325 Paul Brook
}
326 f7c70325 Paul Brook
327 c988bfad Paul Brook
static QEMUMachine realview_eb_machine = {
328 c988bfad Paul Brook
    .name = "realview-eb",
329 c9b1ae2c blueswir1
    .desc = "ARM RealView Emulation Baseboard (ARM926EJ-S)",
330 c988bfad Paul Brook
    .init = realview_eb_init,
331 c988bfad Paul Brook
    .use_scsi = 1,
332 c988bfad Paul Brook
};
333 c988bfad Paul Brook
334 c988bfad Paul Brook
static QEMUMachine realview_eb_mpcore_machine = {
335 c988bfad Paul Brook
    .name = "realview-eb-mpcore",
336 c988bfad Paul Brook
    .desc = "ARM RealView Emulation Baseboard (ARM11MPCore)",
337 c988bfad Paul Brook
    .init = realview_eb_mpcore_init,
338 c9b1ae2c blueswir1
    .use_scsi = 1,
339 c988bfad Paul Brook
    .max_cpus = 4,
340 e69954b9 pbrook
};
341 f80f9ec9 Anthony Liguori
342 0ef849d7 Paul Brook
static QEMUMachine realview_pb_a8_machine = {
343 0ef849d7 Paul Brook
    .name = "realview-pb-a8",
344 0ef849d7 Paul Brook
    .desc = "ARM RealView Platform Baseboard for Cortex-A8",
345 0ef849d7 Paul Brook
    .init = realview_pb_a8_init,
346 f7c70325 Paul Brook
};
347 f7c70325 Paul Brook
348 f7c70325 Paul Brook
static QEMUMachine realview_pbx_a9_machine = {
349 f7c70325 Paul Brook
    .name = "realview-pbx-a9",
350 f7c70325 Paul Brook
    .desc = "ARM RealView Platform Baseboard Explore for Cortex-A9",
351 f7c70325 Paul Brook
    .init = realview_pbx_a9_init,
352 0ef849d7 Paul Brook
    .use_scsi = 1,
353 f7c70325 Paul Brook
    .max_cpus = 4,
354 0ef849d7 Paul Brook
};
355 0ef849d7 Paul Brook
356 f80f9ec9 Anthony Liguori
static void realview_machine_init(void)
357 f80f9ec9 Anthony Liguori
{
358 c988bfad Paul Brook
    qemu_register_machine(&realview_eb_machine);
359 c988bfad Paul Brook
    qemu_register_machine(&realview_eb_mpcore_machine);
360 0ef849d7 Paul Brook
    qemu_register_machine(&realview_pb_a8_machine);
361 f7c70325 Paul Brook
    qemu_register_machine(&realview_pbx_a9_machine);
362 f80f9ec9 Anthony Liguori
}
363 f80f9ec9 Anthony Liguori
364 f80f9ec9 Anthony Liguori
machine_init(realview_machine_init);