2 * Copyright (c) 2015 Google, Inc
3 * Written by Simon Glass <sjg@chromium.org>
5 * SPDX-License-Identifier: GPL-2.0+
13 int intel_i2c_xfer(struct udevice *bus, struct i2c_msg *msg, int nmsgs)
18 int intel_i2c_probe_chip(struct udevice *bus, uint chip_addr, uint chip_flags)
23 int intel_i2c_set_bus_speed(struct udevice *bus, unsigned int speed)
28 static int intel_i2c_probe(struct udevice *dev)
33 static const struct dm_i2c_ops intel_i2c_ops = {
34 .xfer = intel_i2c_xfer,
35 .probe_chip = intel_i2c_probe_chip,
36 .set_bus_speed = intel_i2c_set_bus_speed,
39 static const struct udevice_id intel_i2c_ids[] = {
40 { .compatible = "intel,ich-i2c" },
44 U_BOOT_DRIVER(intel_i2c) = {
47 .of_match = intel_i2c_ids,
48 .per_child_auto_alloc_size = sizeof(struct dm_i2c_chip),
49 .ops = &intel_i2c_ops,
50 .probe = intel_i2c_probe,