blob: 4fc190be4bd7e76a183d13f17e298b9ce7b9cd38 [file] [log] [blame]
Simon Glass4662f612020-12-19 10:39:54 -07001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright 2020 Google LLC
4 * Written by Simon Glass <sjg@chromium.org>
5 */
6
7#ifndef __asn_i2c_h
8#define __asn_i2c_h
9
10struct sandbox_i2c_priv {
11 bool test_mode;
12};
13
Simon Glass3ee1d392021-03-15 17:25:27 +130014/**
15 * struct i2c_emul_uc_plat - information about the emulator for this device
16 *
17 * This is used by devices in UCLASS_I2C_EMUL to record information about the
18 * device being emulated. It is accessible with dev_get_uclass_plat()
19 *
20 * @dev: Device being emulated
21 * @idx: of-platdata index, set up by the device's bind() method if of-platdata
22 * is in use
23 */
24struct i2c_emul_uc_plat {
25 struct udevice *dev;
26 int idx;
27};
28
Simon Glass4662f612020-12-19 10:39:54 -070029#endif /* __asn_i2c_h */