Lines Matching full:ucb
26 static struct ucb1x00 *ucb; variable
63 ucb1x00_adc_enable(ucb); in collie_read_bat()
64 value = ucb1x00_adc_read(ucb, bat->adc_bat, UCB_SYNC); in collie_read_bat()
65 ucb1x00_adc_disable(ucb); in collie_read_bat()
82 ucb1x00_adc_enable(ucb); in collie_read_temp()
83 value = ucb1x00_adc_read(ucb, bat->adc_temp, UCB_SYNC); in collie_read_temp()
84 ucb1x00_adc_disable(ucb); in collie_read_temp()
292 if (device_may_wakeup(&dev->ucb->dev) && in collie_bat_suspend()
319 struct gpio_chip *gc = &dev->ucb->gpio; in collie_bat_probe()
324 ucb = dev->ucb; in collie_bat_probe()
327 collie_bat_main.gpio_full = gpiod_get(&dev->ucb->dev, in collie_bat_probe()
333 collie_mbat_low = gpiod_get(&dev->ucb->dev, in collie_bat_probe()
341 collie_bat_main.gpio_charge_on = gpiod_get(&dev->ucb->dev, in collie_bat_probe()
349 /* COLLIE_GPIO_MBAT_ON = GPIO 7 on the UCB (TC35143) */ in collie_bat_probe()
360 /* COLLIE_GPIO_TMP_ON = GPIO 9 on the UCB (TC35143) */ in collie_bat_probe()
373 * GPIO 8 on the UCB (TC35143) in collie_bat_probe()
390 collie_bat_main.psy = power_supply_register(&dev->ucb->dev, in collie_bat_probe()
399 collie_bat_bu.psy = power_supply_register(&dev->ucb->dev, in collie_bat_probe()
414 device_init_wakeup(&ucb->dev, 1); in collie_bat_probe()
451 /* These are directly from the UCB so let's free them */ in collie_bat_remove()