Home
last modified time | relevance | path

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

/Zephyr-Core-3.5.0/soc/arm/nuvoton_npcx/npcx4/
Dsoc.c30 SET_FIELD(inst->UMA_ECTS, NPCX_UMA_ECTS_UMA_ADDR_SIZE, 0); in soc_npcx4_init()
/Zephyr-Core-3.5.0/soc/arm/nuvoton_npcx/common/reg/
Dreg_access.h24 #define SET_FIELD(reg, field, value) \ macro
/Zephyr-Core-3.5.0/drivers/flash/
Dflash_npcx_fiu_qspi.c118 SET_FIELD(inst->SPI_DEV, NPCX_SPI_DEV_NADDRB, NPCX_DEV_NUM_ADDR_4BYTE); in qspi_npcx_config_dra_4byte_mode()
133 SET_FIELD(inst->BURST_CFG, NPCX_BURST_CFG_SPI_DEV_SEL, spi_dev_num); in qspi_npcx_config_dra_mode()
144 SET_FIELD(inst->SPI_FL_CFG, NPCX_SPI_FL_CFG_RD_MODE, qspi_cfg->rd_mode); in qspi_npcx_config_dra_mode()
/Zephyr-Core-3.5.0/drivers/sensor/nuvoton_tach_npcx/
Dtach_nuvoton_npcx.c112 SET_FIELD(inst->TCKC, NPCX_TCKC_C1CSEL_FIELD, data->input_clk == LFCLK in tach_npcx_start_port_a()
136 SET_FIELD(inst->TCKC, NPCX_TCKC_C2CSEL_FIELD, data->input_clk == LFCLK in tach_npcx_start_port_b()
224 SET_FIELD(inst->TMCTRL, NPCX_TMCTRL_MDSEL_FIELD, NPCX_TACH_MDSEL); in tach_npcx_configure()
/Zephyr-Core-3.5.0/drivers/pwm/
Dpwm_npcx.c65 SET_FIELD(inst->PWMCTL, NPCX_PWMCTL_HB_DC_CTL_FIELD, in pwm_npcx_configure()
69 SET_FIELD(inst->PWMCTLEX, NPCX_PWMCTLEX_FCK_SEL_FIELD, in pwm_npcx_configure()
/Zephyr-Core-3.5.0/drivers/adc/
Dadc_npcx.c318 SET_FIELD(inst->ADCCNF, NPCX_ADCCNF_ADCMD_FIELD, in adc_npcx_start_scan()
477 SET_FIELD(inst->ADCCNF, NPCX_ADCCNF_ADCMD_FIELD, in adc_npcx_set_repetitive()
596 SET_FIELD(THRCTL(config->base, th_sel), in adc_npcx_threshold_ctrl_setup()
605 SET_FIELD(THRCTL(config->base, th_sel), NPCX_THRCTL_THRVAL, in adc_npcx_threshold_ctrl_setup()
809 SET_FIELD(inst->ATCTL, NPCX_ATCTL_SCLKDIV_FIELD, prescaler - 1); in adc_npcx_init()
812 SET_FIELD(inst->ATCTL, NPCX_ATCTL_DLY_FIELD, ADC_REGULAR_DLY_VAL); in adc_npcx_init()
/Zephyr-Core-3.5.0/drivers/espi/
Despi_npcx.c367 SET_FIELD(inst->VWEVSM[idx], NPCX_VWEVSM_VALID, valid); in espi_vw_config_output()
373 SET_FIELD(inst->VWEVSM[idx], NPCX_VWEVSM_HW_WIRE, 0); in espi_vw_config_output()
389 SET_FIELD(inst->VWGPSM[idx], NPCX_VWEVSM_VALID, valid); in espi_vw_gpio_config_output()
399 SET_FIELD(inst->VWGPSM[idx], NPCX_VWEVSM_WIRE, val); in espi_vw_gpio_config_output()
562 SET_FIELD(inst->ESPICFG, NPCX_ESPICFG_MAXFREQ_FIELD, max_freq); in espi_npcx_configure()
572 SET_FIELD(inst->ESPICFG, NPCX_ESPICFG_IOMODE_FIELD, io_mode); in espi_npcx_configure()
672 SET_FIELD(inst->VWGPSM[reg_idx], NPCX_VWEVSM_WIRE, val); in espi_npcx_send_vwire()
675 SET_FIELD(inst->VWEVSM[reg_idx], NPCX_VWEVSM_WIRE, val); in espi_npcx_send_vwire()
Dhost_subs_npcx.c405 SET_FIELD(inst_shm->WIN_SIZE, NPCX_WIN_SIZE_RWIN1_SIZE_FIELD, in host_hcmd_init()
440 SET_FIELD(inst_shm->WIN_SIZE, NPCX_WIN_SIZE_RWIN2_SIZE_FIELD, in host_shared_mem_region_init()
/Zephyr-Core-3.5.0/soc/arm/nuvoton_npcx/common/
Dscfg.c131 SET_FIELD(inst_scfg->DEVCNT, NPCX_DEVCNT_HIF_TYP_SEL_FIELD, hif_type); in npcx_host_interface_sel()
/Zephyr-Core-3.5.0/drivers/i2c/
Di2c_npcx_controller.c324 SET_FIELD(inst->SMBRXF_CTL, NPCX_SMBRXF_CTL_RX_THR, value); in i2c_ctrl_fifo_rx_setup_threshold_nack()
394 SET_FIELD(inst->SMBCTL2, NPCX_SMBCTL2_SCLFRQ0_6_FIELD, in i2c_ctrl_config_bus_freq()
396 SET_FIELD(inst->SMBCTL3, NPCX_SMBCTL3_SCLFRQ7_8_FIELD, in i2c_ctrl_config_bus_freq()
398 SET_FIELD(inst->SMBCTL4, NPCX_SMBCTL4_HLDT_FIELD, in i2c_ctrl_config_bus_freq()
406 SET_FIELD(inst->SMBCTL4, NPCX_SMBCTL4_HLDT_FIELD, in i2c_ctrl_config_bus_freq()
/Zephyr-Core-3.5.0/drivers/pinctrl/
Dpinctrl_npcx.c161 SET_FIELD(NPCX_DEV_CTL(scfg_base, ctrl->offest), in npcx_device_control_configure()
/Zephyr-Core-3.5.0/drivers/peci/
Dpeci_npcx.c96 SET_FIELD(reg->PECI_RATE, NPCX_PECI_RATE_MAX_BIT_RATE, bit_rate_divider); in peci_npcx_configure()
/Zephyr-Core-3.5.0/subsys/mgmt/ec_host_cmd/backends/
Dec_host_cmd_backend_shi_npcx.c423 SET_FIELD(inst->SHICFG5, NPCX_SHICFG5_IBUFLVL2, SHI_IBUFLVL2_THRESHOLD); in shi_npcx_sec_ibf_int_enable()
434 SET_FIELD(inst->SHICFG5, NPCX_SHICFG5_IBUFLVL2, 0); in shi_npcx_sec_ibf_int_enable()
/Zephyr-Core-3.5.0/drivers/input/
Dinput_npcx_kbd.c449 SET_FIELD(inst->KBSCTL, NPCX_KBSCTL_KBHDRV_FIELD, 0x01); in input_npcx_kbd_init()