root / hw / a9mpcore.c @ ad674e53
History | View | Annotate | Download (676 Bytes)
1 | f7c70325 | Paul Brook | /*
|
---|---|---|---|
2 | f7c70325 | Paul Brook | * Cortex-A9MPCore internal peripheral emulation.
|
3 | f7c70325 | Paul Brook | *
|
4 | f7c70325 | Paul Brook | * Copyright (c) 2009 CodeSourcery.
|
5 | f7c70325 | Paul Brook | * Written by Paul Brook
|
6 | f7c70325 | Paul Brook | *
|
7 | f7c70325 | Paul Brook | * This code is licenced under the GPL.
|
8 | f7c70325 | Paul Brook | */
|
9 | f7c70325 | Paul Brook | |
10 | f7c70325 | Paul Brook | /* 64 external IRQ lines. */
|
11 | f7c70325 | Paul Brook | #define GIC_NIRQ 96 |
12 | f7c70325 | Paul Brook | #include "mpcore.c" |
13 | f7c70325 | Paul Brook | |
14 | f7c70325 | Paul Brook | static SysBusDeviceInfo mpcore_priv_info = {
|
15 | f7c70325 | Paul Brook | .init = mpcore_priv_init, |
16 | f7c70325 | Paul Brook | .qdev.name = "a9mpcore_priv",
|
17 | f7c70325 | Paul Brook | .qdev.size = sizeof(mpcore_priv_state),
|
18 | f7c70325 | Paul Brook | .qdev.props = (Property[]) { |
19 | f7c70325 | Paul Brook | DEFINE_PROP_UINT32("num-cpu", mpcore_priv_state, num_cpu, 1), |
20 | f7c70325 | Paul Brook | DEFINE_PROP_END_OF_LIST(), |
21 | f7c70325 | Paul Brook | } |
22 | f7c70325 | Paul Brook | }; |
23 | f7c70325 | Paul Brook | |
24 | f7c70325 | Paul Brook | static void a9mpcore_register_devices(void) |
25 | f7c70325 | Paul Brook | { |
26 | f7c70325 | Paul Brook | sysbus_register_withprop(&mpcore_priv_info); |
27 | f7c70325 | Paul Brook | } |
28 | f7c70325 | Paul Brook | |
29 | f7c70325 | Paul Brook | device_init(a9mpcore_register_devices) |