Home
last modified time | relevance | path

Searched refs:vbvol (Results 1 – 1 of 1) sorted by relevance

/Zephyr-latest/drivers/usb_c/tcpc/
Ducpd_numaker.c215 } vbvol; member
299 return (uint32_t)(((uint64_t)bit) * data->vref_mv * config->utcpd.vbvol.vbscale.value / in numaker_utcpd_vbus_volt_bit2mv()
319 return mv * BIT_MASK(10) / data->vref_mv / config->utcpd.vbvol.vbscale.value; in numaker_utcpd_vbus_volt_mv2bit()
1048 uint32_t vbvol = NUMAKER_UTCPD_REG_READ_BY_NAME(dev, VBVOL); in numaker_utcpd_vbus_init() local
1052 vbvol &= ~UTCPD_VBVOL_VBSCALE_Msk; in numaker_utcpd_vbus_init()
1053 vbvol |= config->utcpd.vbvol.vbscale.bit; in numaker_utcpd_vbus_init()
1054 rc = NUMAKER_UTCPD_REG_WRITE_BY_NAME(dev, VBVOL, vbvol); in numaker_utcpd_vbus_init()
2413 .pinpl = NUMAKER_UTCPD_PINPL_INIT(inst), .vbvol = NUMAKER_UTCPD_VBVOL_INIT(inst), \