Home
last modified time | relevance | path

Searched refs:i2c (Results 1 – 25 of 181) sorted by relevance

12345678

/hal_nxp-latest/mcux/mcux-sdk/components/codec/tfa9xxx/vas_tfa_drv/
Dtfa2_init.c22 tfa2_i2c_hap_key2(tfa->i2c, 0); in tfa9894_init()
29 tfa2_i2c_write_reg(tfa->i2c, 0x00, 0xa245); // POR=0x8245 in tfa9894_init()
30 tfa2_i2c_write_reg(tfa->i2c, 0x01, 0x15da); // POR=0x11ca in tfa9894_init()
31 tfa2_i2c_write_reg(tfa->i2c, 0x02, 0x5288); // POR=0x55c8 in tfa9894_init()
32 tfa2_i2c_write_reg(tfa->i2c, 0x52, 0xbe17); // POR=0xb617 in tfa9894_init()
33 tfa2_i2c_write_reg(tfa->i2c, 0x53, 0x0dbe); // POR=0x0d9e in tfa9894_init()
34 tfa2_i2c_write_reg(tfa->i2c, 0x56, 0x05c3); // POR=0x07c3 in tfa9894_init()
35 tfa2_i2c_write_reg(tfa->i2c, 0x57, 0x0344); // POR=0x0366 in tfa9894_init()
36 tfa2_i2c_write_reg(tfa->i2c, 0x61, 0x0032); // POR=0x0073 in tfa9894_init()
37 tfa2_i2c_write_reg(tfa->i2c, 0x71, 0x00cf); // POR=0x018d in tfa9894_init()
[all …]
Dtfa2_dev.c80 int manstate = tfa2_i2c_read_bf(tfa->i2c, tfa->bf_manstate); in tfa2_show_current_state()
83 dev_err(&tfa->i2c->dev, "can't read MANSTATE\n"); in tfa2_show_current_state()
90 dev_dbg(&tfa->i2c->dev, "Current HW manager state: %s \n", tfa2_manstate_string[manstate]); in tfa2_show_current_state()
95 return tfa2_i2c_get_revid(tfa->i2c); in tfa2_dev_get_revid()
98 int tfa2_i2c_get_revid(struct i2c_client *i2c) in tfa2_i2c_get_revid() argument
102 rc = tfa2_i2c_read_bf(i2c, TFA9XXX_BF_REV); in tfa2_i2c_get_revid()
106 dev_dbg(&i2c->dev, "HW rev: 0x%04x\n", (uint16_t)rc); in tfa2_i2c_get_revid()
116 tfa->slave_address = tfa->i2c->addr; /* used by HostSDK */ in tfa2_dev_probe()
118 if (tfa->i2c->addr > 0) in tfa2_dev_probe()
121 rc = tfa2_i2c_get_revid(tfa->i2c); in tfa2_dev_probe()
[all …]
Dtfa2_haptic.c85 …dev_dbg(&tfa->i2c->dev, "starting obj[%d] of total %d ms\n", index + 1, tfa2_haptic_get_duration(t… in tfa2_haptic_start()
89 rc = tfa2_haptic_start_object(tfa->i2c, data, index); in tfa2_haptic_start()
177 return tfa2_i2c_write_cf_mem32(tfa->i2c, cmdobjsel, (int32_t *)&stop_obj, 1, TFA2_CF_MEM_XMEM); in tfa2_haptic_stop()
355 int manstate = tfa2_i2c_read_bf(tfa->i2c, tfa->bf_manstate); in tfa2_haptic_recalculate_wait()
365 tfa->i2c, in tfa2_haptic_recalculate_wait()
383 tfa2_haptic_read_sampcnt0(tfa->i2c, &sampcnt0); in tfa2_haptic_recalculate_wait()
385 tfa2_haptic_read_recalc_selector(tfa->i2c, &recalc_selector); in tfa2_haptic_recalculate_wait()
409 …rc = tfa2_i2c_read_cf_mem32_dsp_reset(tfa->i2c, FW_XMEM_VERSION, &fw_version, 1, TFA2_CF_MEM_XMEM); in tfa2_hap_patch_version()
410 …dev_dbg(&tfa->i2c->dev, "%s patch version %d.%d.%d\n", string, (fw_version >> 16) & 0xff, (fw_vers… in tfa2_hap_patch_version()
415 …dev_err(&tfa->i2c->dev, "%s: unsupported firmware version 0x%x, expected 0x%x\n", __func__, fw_ver… in tfa2_hap_patch_version()
[all …]
Dtfa2_container.c31 … dev_dbg(&tfa->i2c->dev, "dsp mem (%d): 0x%02x=0x%04x\n", cfmem->type, address, cfmem->words[i]); in tfa2_cnt_write_dspmem()
32 …rc = tfa2_i2c_write_cf_mem32(tfa->i2c, address++, (int32_t *)cfmem + offsetof(nxpTfaDspMem_t, word… in tfa2_cnt_write_dspmem()
504 …dev_dbg(&tfa->i2c->dev, "register: 0x%02x=0x%04x (msk=0x%04x)\n", reg->address, reg->value, reg->m… in tfa2_dev_cnt_write_register()
506 rc = tfa2_i2c_read_reg(tfa->i2c, reg->address); /* will report error */ in tfa2_dev_cnt_write_register()
516 rc = tfa2_i2c_write_reg(tfa->i2c, reg->address, value); in tfa2_dev_cnt_write_register()
569 dev_dbg(&tfa->i2c->dev, "Invalid profile index given: %d\n", prof_idx); in tfa2_cnt_write_regs_profile()
574 dev_dbg(&tfa->i2c->dev, "----- profile: %s (%d) -----\n", profile, prof_idx); in tfa2_cnt_write_regs_profile()
628 rc = tfa2_i2c_write_bf_volatile(tfa->i2c, bitf->field, bitf->value); in tfa2_cnt_write_item()
652 dev_dbg(&tfa->i2c->dev, ";string: %s\n", tfa2_cnt_get_string(tfa->cnt, dsc)); in tfa2_cnt_write_item()
665 dev_err(&tfa->i2c->dev, "unsupported list item:%d\n", dsc->type); in tfa2_cnt_write_item()
[all …]
/hal_nxp-latest/mcux/mcux-sdk/cmsis_drivers/i2c/
Dfsl_i2c_cmsis.c150 …int32_t I2C_Master_DmaInitialize(ARM_I2C_SignalEvent_t cb_event, cmsis_i2c_dma_driver_state_t *i2c) in I2C_Master_DmaInitialize() argument
152 if (0U == (i2c->flags & (uint8_t)I2C_FLAG_INIT)) in I2C_Master_DmaInitialize()
156 DMAMUX_SetSource(i2c->dmaResource->i2cDmamuxBase, i2c->dmaResource->i2cDmamuxChannel, in I2C_Master_DmaInitialize()
157 (int32_t)i2c->dmaResource->i2cDmaRequest); in I2C_Master_DmaInitialize()
158 DMAMUX_EnableChannel(i2c->dmaResource->i2cDmamuxBase, i2c->dmaResource->i2cDmamuxChannel); in I2C_Master_DmaInitialize()
160 DMAMUX_SetSource(i2c->dmaResource->i2cDmamuxBase, i2c->dmaResource->i2cDmaChannel, in I2C_Master_DmaInitialize()
161 (int32_t)i2c->dmaResource->i2cDmaRequest); in I2C_Master_DmaInitialize()
162 DMAMUX_EnableChannel(i2c->dmaResource->i2cDmamuxBase, i2c->dmaResource->i2cDmaChannel); in I2C_Master_DmaInitialize()
165 … DMA_CreateHandle(i2c->dmaHandle, i2c->dmaResource->i2cDmaBase, i2c->dmaResource->i2cDmaChannel); in I2C_Master_DmaInitialize()
167 …I2C_MasterTransferCreateHandleDMA(i2c->resource->base, i2c->master_dma_handle, KSDK_I2C_MASTER_Dma… in I2C_Master_DmaInitialize()
[all …]
/hal_nxp-latest/mcux/mcux-sdk/cmsis_drivers/ii2c/
Dfsl_i2c_cmsis.c140 …_t I2C_InterruptInitialize(ARM_I2C_SignalEvent_t cb_event, cmsis_i2c_interrupt_driver_state_t *i2c) in I2C_InterruptInitialize() argument
142 if (0U == (i2c->flags & (uint8_t)I2C_FLAG_INIT)) in I2C_InterruptInitialize()
144 i2c->cb_event = cb_event; /* cb_event is CMSIS driver callback. */ in I2C_InterruptInitialize()
145 i2c->flags = (uint8_t)I2C_FLAG_INIT; in I2C_InterruptInitialize()
151 static int32_t I2C_InterruptUninitialize(cmsis_i2c_interrupt_driver_state_t *i2c) in I2C_InterruptUninitialize() argument
153 i2c->flags = (uint8_t)I2C_FLAG_UNINIT; in I2C_InterruptUninitialize()
158 …ddr, const uint8_t *data, uint32_t num, bool xfer_pending, cmsis_i2c_interrupt_driver_state_t *i2c) in I2C_Master_InterruptTransmit() argument
165 if (i2c->handle->master_handle.state != 0U) in I2C_Master_InterruptTransmit()
171 I2C_MasterTransferCreateHandle(i2c->resource->base, &(i2c->handle->master_handle), in I2C_Master_InterruptTransmit()
172 KSDK_I2C_MASTER_InterruptCallback, (void *)i2c->cb_event); in I2C_Master_InterruptTransmit()
[all …]
/hal_nxp-latest/mcux/mcux-sdk/cmsis_drivers/flexcomm/
Dfsl_i2c_cmsis.c143 …int32_t I2C_Master_DmaInitialize(ARM_I2C_SignalEvent_t cb_event, cmsis_i2c_dma_driver_state_t *i2c) in I2C_Master_DmaInitialize() argument
145 if (0U == (i2c->flags & (uint8_t)I2C_FLAG_INIT)) in I2C_Master_DmaInitialize()
147 DMA_EnableChannel(i2c->dmaResource->i2cDmaBase, i2c->dmaResource->i2cDmaChannel); in I2C_Master_DmaInitialize()
148 … DMA_CreateHandle(i2c->dmaHandle, i2c->dmaResource->i2cDmaBase, i2c->dmaResource->i2cDmaChannel); in I2C_Master_DmaInitialize()
150 …I2C_MasterTransferCreateHandleDMA(i2c->resource->base, i2c->master_dma_handle, KSDK_I2C_MASTER_Dma… in I2C_Master_DmaInitialize()
151 (void *)cb_event, i2c->dmaHandle); in I2C_Master_DmaInitialize()
152 i2c->flags = (uint8_t)I2C_FLAG_INIT; in I2C_Master_DmaInitialize()
157 static int32_t I2C_Master_DmaUninitialize(cmsis_i2c_dma_driver_state_t *i2c) in I2C_Master_DmaUninitialize() argument
159 i2c->flags = (uint8_t)I2C_FLAG_UNINIT; in I2C_Master_DmaUninitialize()
164 …32_t addr, const uint8_t *data, uint32_t num, bool xfer_pending, cmsis_i2c_dma_driver_state_t *i2c) in I2C_Master_DmaTransmit() argument
[all …]
/hal_nxp-latest/mcux/mcux-sdk/components/codec/tfa9xxx/
Dfsl_tfa9xxx.c272 tfa->i2c = (struct i2c_client *)TFA9XXX_GetI2CClient(cnt, handle->config->slaveAddress); in TFA9XXX_CreatePlatform()
273 if (!tfa->i2c) in TFA9XXX_CreatePlatform()
278 tfa->i2c->hal = &(handle->i2cHandle); in TFA9XXX_CreatePlatform()
311 rc = tfa2_i2c_write_bf(tfa->i2c, TFA9XXX_BF_PWDN, 0); in TFA9XXX_PreStartConfigure()
372 rc = tfa2_i2c_hap_key2(tfa->i2c, 0); in TFA9XXX_CheckCalibrationStatus()
393 rc = tfa2_i2c_hap_key2(tfa->i2c, 1); in TFA9XXX_CheckCalibrationStatus()
471 tfa2_i2c_hap_key2(tfa->i2c, 0); in TFA9XXX_HardcodeCalibrationValue()
482 rc = tfa2_i2c_write_bf(tfa->i2c, TFA9XXX_BF_CMTPI, 1); in TFA9XXX_HardcodeCalibrationValue()
491 rc = tfa2_i2c_read_reg(tfa->i2c, 0xF0U + i); in TFA9XXX_HardcodeCalibrationValue()
520 rc = tfa2_i2c_read_reg(tfa->i2c, 0xF0U + i); in TFA9XXX_HardcodeCalibrationValue()
[all …]
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMX8QX2/
Dall_lib_device_MIMX8QX2.cmake6 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/i2c
10 ${CMAKE_CURRENT_LIST_DIR}/../../components/i2c
32 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/i2c
151 # include(driver_video-i2c)
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMX8QX1/
Dall_lib_device_MIMX8QX1.cmake6 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/i2c
10 ${CMAKE_CURRENT_LIST_DIR}/../../components/i2c
32 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/i2c
151 # include(driver_video-i2c)
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMX8DX2/
Dall_lib_device_MIMX8DX2.cmake6 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/i2c
10 ${CMAKE_CURRENT_LIST_DIR}/../../components/i2c
32 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/i2c
151 # include(driver_video-i2c)
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMX8DX1/
Dall_lib_device_MIMX8DX1.cmake6 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/i2c
10 ${CMAKE_CURRENT_LIST_DIR}/../../components/i2c
32 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/i2c
151 # include(driver_video-i2c)
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMX8QX6/
Dall_lib_device_MIMX8QX6.cmake7 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/i2c
11 ${CMAKE_CURRENT_LIST_DIR}/../../components/i2c
33 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/i2c
158 # include(driver_video-i2c)
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMX8DX6/
Dall_lib_device_MIMX8DX6.cmake6 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/i2c
10 ${CMAKE_CURRENT_LIST_DIR}/../../components/i2c
32 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/i2c
157 # include(driver_video-i2c)
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMX8QX5/
Dall_lib_device_MIMX8QX5.cmake6 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/i2c
10 ${CMAKE_CURRENT_LIST_DIR}/../../components/i2c
32 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/i2c
157 # include(driver_video-i2c)
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMX8DX4/
Dall_lib_device_MIMX8DX4.cmake6 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/i2c
10 ${CMAKE_CURRENT_LIST_DIR}/../../components/i2c
32 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/i2c
157 # include(driver_video-i2c)
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMX8DX3/
Dall_lib_device_MIMX8DX3.cmake6 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/i2c
10 ${CMAKE_CURRENT_LIST_DIR}/../../components/i2c
32 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/i2c
157 # include(driver_video-i2c)
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMX8DX5/
Dall_lib_device_MIMX8DX5.cmake6 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/i2c
10 ${CMAKE_CURRENT_LIST_DIR}/../../components/i2c
32 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/i2c
157 # include(driver_video-i2c)
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMX8UX5/
Dall_lib_device_MIMX8UX5.cmake6 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/i2c
10 ${CMAKE_CURRENT_LIST_DIR}/../../components/i2c
32 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/i2c
157 # include(driver_video-i2c)
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMX8UX6/
Dall_lib_device_MIMX8UX6.cmake6 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/i2c
10 ${CMAKE_CURRENT_LIST_DIR}/../../components/i2c
32 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/i2c
157 # include(driver_video-i2c)
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMX8QX3/
Dall_lib_device_MIMX8QX3.cmake6 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/i2c
10 ${CMAKE_CURRENT_LIST_DIR}/../../components/i2c
32 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/i2c
157 # include(driver_video-i2c)
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMX8QM6/
Dall_lib_device_MIMX8QM6_cm4_core1.cmake7 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/i2c
11 ${CMAKE_CURRENT_LIST_DIR}/../../components/i2c
33 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/i2c
155 # include(driver_video-i2c)
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMX8QX4/
Dall_lib_device_MIMX8QX4.cmake6 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/i2c
10 ${CMAKE_CURRENT_LIST_DIR}/../../components/i2c
32 ${CMAKE_CURRENT_LIST_DIR}/../../components/video/i2c
157 # include(driver_video-i2c)
/hal_nxp-latest/mcux/mcux-sdk/devices/MK26F18/
Dall_lib_device_MK26F18.cmake7 ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/i2c
13 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/i2c
18 ${CMAKE_CURRENT_LIST_DIR}/../../components/i2c
42 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/i2c
/hal_nxp-latest/mcux/mcux-sdk/devices/MK65F18/
Dall_lib_device_MK65F18.cmake8 ${CMAKE_CURRENT_LIST_DIR}/../../cmsis_drivers/i2c
14 ${CMAKE_CURRENT_LIST_DIR}/../../components/codec/i2c
19 ${CMAKE_CURRENT_LIST_DIR}/../../components/i2c
47 ${CMAKE_CURRENT_LIST_DIR}/../../drivers/i2c

12345678