Lines Matching refs:busdev
284 struct rt_i2c_bus_device *busdev; in rt_hw_i2c_init() local
288 busdev = &i2c_dev0; in rt_hw_i2c_init()
304 busdev->priv = (void *)&bit_ops_0; in rt_hw_i2c_init()
305 rt_i2c_bit_add_bus(busdev, "i2c0"); in rt_hw_i2c_init()
308 busdev->ops = &i2c_ops; in rt_hw_i2c_init()
309 busdev->priv = (void *)I2C0_BASE_ADDR; in rt_hw_i2c_init()
312 rt_i2c_bus_device_register(busdev, "i2c0"); in rt_hw_i2c_init()
318 busdev = &i2c_dev1; in rt_hw_i2c_init()
334 busdev->priv = (void *)&bit_ops_1; in rt_hw_i2c_init()
335 rt_i2c_bit_add_bus(busdev, "i2c1"); in rt_hw_i2c_init()
338 busdev->ops = &i2c_ops; in rt_hw_i2c_init()
339 busdev->priv = (void *)I2C1_BASE_ADDR; in rt_hw_i2c_init()
342 rt_i2c_bus_device_register(busdev, "i2c1"); in rt_hw_i2c_init()
348 busdev = &i2c_dev2; in rt_hw_i2c_init()
364 busdev->priv = (void *)&bit_ops_2; in rt_hw_i2c_init()
365 rt_i2c_bit_add_bus(busdev, "i2c2"); in rt_hw_i2c_init()
368 busdev->ops = &i2c_ops; in rt_hw_i2c_init()
369 busdev->priv = (void *)I2C2_BASE_ADDR; in rt_hw_i2c_init()
372 rt_i2c_bus_device_register(busdev, "i2c2"); in rt_hw_i2c_init()