diff options
author | Paul Brook <paul@codesourcery.com> | 2009-11-19 16:45:21 +0000 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2009-11-19 16:45:21 +0000 |
commit | f7c703250cef231085f07352b719bb91d71ea8a1 (patch) | |
tree | 8a511980622c574aba59fd41d320a94bf025b010 /hw/a9mpcore.c | |
parent | 100555620f4c825c3d2d37ed4d8b921b4604c1f6 (diff) |
ARM PBX-A9 board support
Implement ARM RealView PBX-A9 board support.
Signed-off-by: Paul Brook <paul@codesourcery.com>
Diffstat (limited to 'hw/a9mpcore.c')
-rw-r--r-- | hw/a9mpcore.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/hw/a9mpcore.c b/hw/a9mpcore.c new file mode 100644 index 0000000000..b5e5328395 --- /dev/null +++ b/hw/a9mpcore.c @@ -0,0 +1,29 @@ +/* + * Cortex-A9MPCore internal peripheral emulation. + * + * Copyright (c) 2009 CodeSourcery. + * Written by Paul Brook + * + * This code is licenced under the GPL. + */ + +/* 64 external IRQ lines. */ +#define GIC_NIRQ 96 +#include "mpcore.c" + +static SysBusDeviceInfo mpcore_priv_info = { + .init = mpcore_priv_init, + .qdev.name = "a9mpcore_priv", + .qdev.size = sizeof(mpcore_priv_state), + .qdev.props = (Property[]) { + DEFINE_PROP_UINT32("num-cpu", mpcore_priv_state, num_cpu, 1), + DEFINE_PROP_END_OF_LIST(), + } +}; + +static void a9mpcore_register_devices(void) +{ + sysbus_register_withprop(&mpcore_priv_info); +} + +device_init(a9mpcore_register_devices) |