mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
i.MX: KZM: use standalone i.MX31 SOC support
Convert the KZM board to use the i.MX31 SoC defintition instead of redefining the entire SoC on the machine level. Major rewrite of the machine init code. While touching the memory map comment de-indent to the correct level of indentation. This obsoletes the legacy i.MX device device creation helpers which are removed. Tested by booting a minimal Linux system on the emulated platform Signed-off-by: Jean-Christophe Dubois <jcd@tribudubois.net> Reviewed-by: Peter Crosthwaite <crosthwaite.peter@gmail.com> Message-id: 5e783561f092e1c939562fdff001f1ab1194b07f.1441057361.git.jcd@tribudubois.net Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
558df83db7
commit
f044ac4980
5 changed files with 94 additions and 178 deletions
|
@ -12,7 +12,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include "hw/arm/imx.h"
|
||||
#include "hw/timer/imx_gpt.h"
|
||||
#include "hw/misc/imx_ccm.h"
|
||||
#include "qemu/main-loop.h"
|
||||
|
@ -449,16 +448,6 @@ static void imx_gpt_realize(DeviceState *dev, Error **errp)
|
|||
s->timer = ptimer_init(bh);
|
||||
}
|
||||
|
||||
void imx_timerg_create(const hwaddr addr, qemu_irq irq, DeviceState *ccm)
|
||||
{
|
||||
IMXGPTState *pp;
|
||||
DeviceState *dev;
|
||||
|
||||
dev = sysbus_create_simple(TYPE_IMX_GPT, addr, irq);
|
||||
pp = IMX_GPT(dev);
|
||||
pp->ccm = ccm;
|
||||
}
|
||||
|
||||
static void imx_gpt_class_init(ObjectClass *klass, void *data)
|
||||
{
|
||||
DeviceClass *dc = DEVICE_CLASS(klass);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue