Lines Matching refs:bus_speed
96 unsigned int bus_speed; member
405 unsigned int bus_speed; in bcm_iproc_i2c_cfg_speed() local
408 "clock-frequency", &bus_speed); in bcm_iproc_i2c_cfg_speed()
412 bus_speed = 100000; in bcm_iproc_i2c_cfg_speed()
415 if (bus_speed < 100000) { in bcm_iproc_i2c_cfg_speed()
417 bus_speed); in bcm_iproc_i2c_cfg_speed()
421 } else if (bus_speed < 400000) { in bcm_iproc_i2c_cfg_speed()
422 bus_speed = 100000; in bcm_iproc_i2c_cfg_speed()
424 bus_speed = 400000; in bcm_iproc_i2c_cfg_speed()
427 iproc_i2c->bus_speed = bus_speed; in bcm_iproc_i2c_cfg_speed()
430 val |= (bus_speed == 400000) << TIM_CFG_MODE_400_SHIFT; in bcm_iproc_i2c_cfg_speed()
433 dev_info(iproc_i2c->device, "bus set to %u Hz\n", bus_speed); in bcm_iproc_i2c_cfg_speed()
543 val |= (iproc_i2c->bus_speed == 400000) << TIM_CFG_MODE_400_SHIFT; in bcm_iproc_i2c_resume()