omap_i2c.c (2c9b15cab12c21e32dffb67c5e18f3dc407ca224) omap_i2c.c (1437c94b2689c2010362f84d14f14feaa1d8dba3)
1/*
2 * TI OMAP on-chip I2C controller. Only "new I2C" mode supported.
3 *
4 * Copyright (C) 2007 Andrzej Zaborowski <balrog@zabor.org>
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; either version 2 of

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

443 }
444 if (s->revision >= OMAP2_INTR_REV && !s->iclk) {
445 /* Note that OMAP1 doesn't have a separate interface clock */
446 hw_error("omap_i2c: iclk not connected\n");
447 }
448 sysbus_init_irq(dev, &s->irq);
449 sysbus_init_irq(dev, &s->drq[0]);
450 sysbus_init_irq(dev, &s->drq[1]);
1/*
2 * TI OMAP on-chip I2C controller. Only "new I2C" mode supported.
3 *
4 * Copyright (C) 2007 Andrzej Zaborowski <balrog@zabor.org>
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; either version 2 of

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

443 }
444 if (s->revision >= OMAP2_INTR_REV && !s->iclk) {
445 /* Note that OMAP1 doesn't have a separate interface clock */
446 hw_error("omap_i2c: iclk not connected\n");
447 }
448 sysbus_init_irq(dev, &s->irq);
449 sysbus_init_irq(dev, &s->drq[0]);
450 sysbus_init_irq(dev, &s->drq[1]);
451 memory_region_init_io(&s->iomem, NULL, &omap_i2c_ops, s, "omap.i2c",
451 memory_region_init_io(&s->iomem, OBJECT(s), &omap_i2c_ops, s, "omap.i2c",
452 (s->revision < OMAP2_INTR_REV) ? 0x800 : 0x1000);
453 sysbus_init_mmio(dev, &s->iomem);
454 s->bus = i2c_init_bus(&dev->qdev, NULL);
455 return 0;
456}
457
458static Property omap_i2c_properties[] = {
459 DEFINE_PROP_UINT8("revision", OMAPI2CState, revision, 0),

--- 33 unchanged lines hidden ---
452 (s->revision < OMAP2_INTR_REV) ? 0x800 : 0x1000);
453 sysbus_init_mmio(dev, &s->iomem);
454 s->bus = i2c_init_bus(&dev->qdev, NULL);
455 return 0;
456}
457
458static Property omap_i2c_properties[] = {
459 DEFINE_PROP_UINT8("revision", OMAPI2CState, revision, 0),

--- 33 unchanged lines hidden ---