Home | History | Annotate | Download | only in pmic

Lines Matching refs:emul

28 static int sandbox_i2c_pmic_read_data(struct udevice *emul, uchar chip,
31 struct sandbox_i2c_pmic_plat_data *plat = dev_get_platdata(emul);
47 static int sandbox_i2c_pmic_write_data(struct udevice *emul, uchar chip,
51 struct sandbox_i2c_pmic_plat_data *plat = dev_get_platdata(emul);
81 static int sandbox_i2c_pmic_xfer(struct udevice *emul, struct i2c_msg *msg,
89 ret = sandbox_i2c_pmic_read_data(emul, msg->addr,
92 ret = sandbox_i2c_pmic_write_data(emul, msg->addr,
104 static int sandbox_i2c_pmic_ofdata_to_platdata(struct udevice *emul)
106 struct sandbox_i2c_pmic_plat_data *plat = dev_get_platdata(emul);
107 struct udevice *pmic_dev = dev_get_parent(emul);
123 reg_defaults = dev_read_u8_array_ptr(emul, "reg-defaults",
128 emul->name);