/Zephyr-latest/drivers/i3c/ |
D | i3c_npcx.c | 433 SET_FIELD(val, NPCX_I3C_MCTRL_IBIRESP, MCTRL_IBIRESP_NACK); in npcx_i3c_request_daa() 436 SET_FIELD(val, NPCX_I3C_MCTRL_REQUEST, MCTRL_REQUEST_PROCESSDAA); in npcx_i3c_request_daa() 453 SET_FIELD(val, NPCX_I3C_MCTRL_IBIRESP, MCTRL_IBIRESP_ACK); in npcx_i3c_request_auto_ibi() 454 SET_FIELD(val, NPCX_I3C_MCTRL_REQUEST, MCTRL_REQUEST_AUTOIBI); in npcx_i3c_request_auto_ibi() 486 SET_FIELD(mctrl, NPCX_I3C_MCTRL_REQUEST, MCTRL_REQUEST_EMITSTARTADDR); in npcx_i3c_request_emit_start() 489 SET_FIELD(mctrl, NPCX_I3C_MCTRL_TYPE, op_type); in npcx_i3c_request_emit_start() 492 SET_FIELD(mctrl, NPCX_I3C_MCTRL_IBIRESP, MCTRL_IBIRESP_NACK); in npcx_i3c_request_emit_start() 495 SET_FIELD(mctrl, NPCX_I3C_MCTRL_ADDR, addr); in npcx_i3c_request_emit_start() 500 SET_FIELD(mctrl, NPCX_I3C_MCTRL_RDTERM, read_sz); /* Set read length */ in npcx_i3c_request_emit_start() 544 SET_FIELD(val, NPCX_I3C_MCTRL_REQUEST, MCTRL_REQUEST_EMITSTOP); in npcx_i3c_request_emit_stop() [all …]
|
/Zephyr-latest/soc/nuvoton/npcx/npcx9/ |
D | soc.c | 21 SET_FIELD(NPCX_JEN_CTL1(scfg_base), NPCX_JEN_CTL1_JEN_HEN, in soc_early_init_hook()
|
/Zephyr-latest/soc/nuvoton/npcx/npcx4/ |
D | soc.c | 31 SET_FIELD(inst->UMA_ECTS, NPCX_UMA_ECTS_UMA_ADDR_SIZE, 0); in soc_early_init_hook()
|
/Zephyr-latest/drivers/flash/ |
D | flash_npcx_fiu_qspi.c | 118 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-latest/soc/nuvoton/npcx/common/reg/ |
D | reg_access.h | 24 #define SET_FIELD(reg, field, value) \ macro
|
/Zephyr-latest/drivers/sensor/nuvoton/nuvoton_tach_npcx/ |
D | tach_nuvoton_npcx.c | 112 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-latest/drivers/espi/ |
D | espi_npcx.c | 521 SET_FIELD(inst->VWEVSM[idx], NPCX_VWEVSM_VALID, valid); in espi_vw_config_output() 527 SET_FIELD(inst->VWEVSM[idx], NPCX_VWEVSM_HW_WIRE, 0); in espi_vw_config_output() 543 SET_FIELD(inst->VWGPSM[idx], NPCX_VWEVSM_VALID, valid); in espi_vw_gpio_config_output() 553 SET_FIELD(inst->VWGPSM[idx], NPCX_VWEVSM_WIRE, val); in espi_vw_gpio_config_output() 733 SET_FIELD(inst->ESPICFG, NPCX_ESPICFG_MAXFREQ_FIELD, max_freq); in espi_npcx_configure() 743 SET_FIELD(inst->ESPICFG, NPCX_ESPICFG_IOMODE_FIELD, io_mode); in espi_npcx_configure() 849 SET_FIELD(inst->VWGPSM[reg_idx], NPCX_VWEVSM_WIRE, val); in espi_npcx_send_vwire() 852 SET_FIELD(inst->VWEVSM[reg_idx], NPCX_VWEVSM_WIRE, val); in espi_npcx_send_vwire() 1469 SET_FIELD(inst->VWEVMS[num], NPCX_VWEVMS_INDEX, index); in espi_npcx_init() 1470 SET_FIELD(inst->VWEVMS[num], NPCX_VWEVMS_VALID, 0x0); in espi_npcx_init() [all …]
|
D | espi_taf_npcx.c | 615 SET_FIELD(inst->FLASHCFG, NPCX_FLASHCFG_FLCAPA, in espi_taf_npcx_init() 617 SET_FIELD(inst->FLASHCFG, NPCX_FLASHCFG_TRGFLEBLKSIZE, in espi_taf_npcx_init() 619 SET_FIELD(inst->FLASHCFG, NPCX_FLASHCFG_FLREQSUP, in espi_taf_npcx_init() 633 SET_FIELD(inst->FLASH_RPMC_CFG_1, NPCX_FLASH_RPMC_CFG1_CNTR, count_num); in espi_taf_npcx_init() 634 SET_FIELD(inst->FLASH_RPMC_CFG_1, NPCX_FLASH_RPMC_CFG1_OP1, config->rpmc_op1_code); in espi_taf_npcx_init() 635 SET_FIELD(inst->FLASH_RPMC_CFG_1, NPCX_FLASH_RPMC_CFG1_TRGRPMCSUP, config->rpmc_cnt_num); in espi_taf_npcx_init()
|
D | host_subs_npcx.c | 418 SET_FIELD(inst_shm->WIN_SIZE, NPCX_WIN_SIZE_RWIN1_SIZE_FIELD, in host_hcmd_init() 453 SET_FIELD(inst_shm->WIN_SIZE, NPCX_WIN_SIZE_RWIN2_SIZE_FIELD, in host_shared_mem_region_init()
|
/Zephyr-latest/drivers/pwm/ |
D | pwm_npcx.c | 65 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-latest/drivers/adc/ |
D | adc_npcx.c | 318 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-latest/soc/nuvoton/npcx/common/ |
D | scfg.c | 131 SET_FIELD(inst_scfg->DEVCNT, NPCX_DEVCNT_HIF_TYP_SEL_FIELD, hif_type); in npcx_host_interface_sel()
|
/Zephyr-latest/drivers/i2c/ |
D | i2c_npcx_controller.c | 324 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-latest/drivers/input/ |
D | input_npcx_kbd.c | 179 SET_FIELD(inst->KBSCTL, NPCX_KBSCTL_KBHDRV_FIELD, 0x01); in npcx_kbd_init()
|
/Zephyr-latest/drivers/pinctrl/ |
D | pinctrl_npcx.c | 154 SET_FIELD(NPCX_DEV_CTL(scfg_base, ctrl->offest), in npcx_device_control_configure()
|
/Zephyr-latest/drivers/peci/ |
D | peci_npcx.c | 96 SET_FIELD(reg->PECI_RATE, NPCX_PECI_RATE_MAX_BIT_RATE, bit_rate_divider); in peci_npcx_configure()
|
/Zephyr-latest/drivers/spi/ |
D | spi_npcx_spip.c | 138 SET_FIELD(reg_base->SPIP_CTL1, NPCX_SPIP_CTL1_SCDV, prescaler_divider); in spi_npcx_spip_configure()
|
/Zephyr-latest/subsys/mgmt/ec_host_cmd/backends/ |
D | ec_host_cmd_backend_shi_npcx.c | 512 SET_FIELD(inst->SHICFG5, NPCX_SHICFG5_IBUFLVL2, SHI_IBUFLVL2_THRESHOLD); in shi_npcx_sec_ibf_int_enable() 523 SET_FIELD(inst->SHICFG5, NPCX_SHICFG5_IBUFLVL2, 0); in shi_npcx_sec_ibf_int_enable()
|
/Zephyr-latest/drivers/serial/ |
D | uart_npcx.c | 658 SET_FIELD(inst->UFRCTL, NPCX_UFRCTL_RFULL_LVL_SEL, 1); in uart_npcx_async_rx_enable()
|