imx_gpt.c (95a9457fd44ad97c518858a4e1586a5498f9773c) imx_gpt.c (b01422622b7c7293196fdaf1dbb4f495af44ecf9)
1/*
2 * IMX GPT Timer
3 *
4 * Copyright (c) 2008 OK Labs
5 * Copyright (c) 2011 NICTA Pty Ltd
6 * Originally written by Hans Jiang
7 * Updated by Peter Chubb
8 * Updated by Jean-Christophe Dubois <jcd@tribudubois.net>

--- 478 unchanged lines hidden (view full) ---

487 QEMUBH *bh;
488
489 sysbus_init_irq(sbd, &s->irq);
490 memory_region_init_io(&s->iomem, OBJECT(s), &imx_gpt_ops, s, TYPE_IMX_GPT,
491 0x00001000);
492 sysbus_init_mmio(sbd, &s->iomem);
493
494 bh = qemu_bh_new(imx_gpt_timeout, s);
1/*
2 * IMX GPT Timer
3 *
4 * Copyright (c) 2008 OK Labs
5 * Copyright (c) 2011 NICTA Pty Ltd
6 * Originally written by Hans Jiang
7 * Updated by Peter Chubb
8 * Updated by Jean-Christophe Dubois <jcd@tribudubois.net>

--- 478 unchanged lines hidden (view full) ---

487 QEMUBH *bh;
488
489 sysbus_init_irq(sbd, &s->irq);
490 memory_region_init_io(&s->iomem, OBJECT(s), &imx_gpt_ops, s, TYPE_IMX_GPT,
491 0x00001000);
492 sysbus_init_mmio(sbd, &s->iomem);
493
494 bh = qemu_bh_new(imx_gpt_timeout, s);
495 s->timer = ptimer_init(bh, PTIMER_POLICY_DEFAULT);
495 s->timer = ptimer_init_with_bh(bh, PTIMER_POLICY_DEFAULT);
496}
497
498static void imx_gpt_class_init(ObjectClass *klass, void *data)
499{
500 DeviceClass *dc = DEVICE_CLASS(klass);
501
502 dc->realize = imx_gpt_realize;
503 dc->reset = imx_gpt_reset;

--- 67 unchanged lines hidden ---
496}
497
498static void imx_gpt_class_init(ObjectClass *klass, void *data)
499{
500 DeviceClass *dc = DEVICE_CLASS(klass);
501
502 dc->realize = imx_gpt_realize;
503 dc->reset = imx_gpt_reset;

--- 67 unchanged lines hidden ---