Home
last modified time | relevance | path

Searched refs:spi (Results 1 – 25 of 27) sorted by relevance

12

/drivers/hdf_core/framework/model/storage/src/mtd/
Dmtd_spi_common.c15 struct SpiFlash *spi = NULL; in SpiFlashDumpDefualt() local
23 spi = CONTAINER_OF(mtdDevice, struct SpiFlash, mtd); in SpiFlashDumpDefualt()
24 HDF_LOGD("SpiFlashDumpDefualt: cs = %u, addrCycle = %u!", spi->cs, spi->addrCycle); in SpiFlashDumpDefualt()
26 cfg = &spi->readCfg; in SpiFlashDumpDefualt()
29 cfg = &spi->writeCfg; in SpiFlashDumpDefualt()
32 cfg = &spi->eraseCfg; in SpiFlashDumpDefualt()
37 int32_t SpiFlashAdd(struct SpiFlash *spi) in SpiFlashAdd() argument
39 if (spi == NULL || spi->mtd.ops == NULL) { in SpiFlashAdd()
43 if (spi->mtd.ops->dump == NULL) { in SpiFlashAdd()
44 spi->mtd.ops->dump = SpiFlashDumpDefualt; in SpiFlashAdd()
[all …]
/drivers/hdf_core/framework/model/storage/include/mtd/
Dmtd_spi_common.h56 int32_t (*waitReady)(struct SpiFlash *spi);
57 int32_t (*writeEnable)(struct SpiFlash *spi);
58 int32_t (*qeEnable)(struct SpiFlash *spi);
59 int32_t (*entry4Addr)(struct SpiFlash *spi, int enable);
100 int32_t SpiFlashWaitReady(struct SpiFlash *spi);
109 int32_t SpiFlashWriteEnable(struct SpiFlash *spi);
118 int32_t SpiFlashQeEnable(struct SpiFlash *spi);
127 int32_t SpiFlashEntry4Addr(struct SpiFlash *spi, int enable);
138 int32_t SpiFlashAdd(struct SpiFlash *spi);
147 void SpiFlashDel(struct SpiFlash *spi);
/drivers/peripheral/sensor/chipset/ppg/
Dppg_cs1262_spi.c70 __func__, busCfg->spiCfg.spi.maxSpeedHz, busCfg->spiCfg.spi.mode, in Cs1262InitSpi()
71 busCfg->spiCfg.spi.transferMode, busCfg->spiCfg.spi.bitsPerWord); in Cs1262InitSpi()
73 ret = SpiSetCfg(busCfg->spiCfg.handle, &busCfg->spiCfg.spi); in Cs1262InitSpi()
105 .speed = g_busCfg->spiCfg.spi.maxSpeedHz, in Cs1262ReadFifoReg()
113 .speed = g_busCfg->spiCfg.spi.maxSpeedHz in Cs1262ReadFifoReg()
151 .speed = g_busCfg->spiCfg.spi.maxSpeedHz in Cs1262ReadRegs()
159 .speed = g_busCfg->spiCfg.spi.maxSpeedHz in Cs1262ReadRegs()
205 .speed = g_busCfg->spiCfg.spi.maxSpeedHz in Cs1262WriteRegs()
213 .speed = g_busCfg->spiCfg.spi.maxSpeedHz in Cs1262WriteRegs()
240 .speed = g_busCfg->spiCfg.spi.maxSpeedHz in Cs1262WriteData()
/drivers/hdf_core/adapter/khdf/linux/platform/spi/
DMakefile17 obj-y += $(HDF_PLATFORM_FRAMEWORKS_ROOT)/src/spi/spi_core.o \
18 $(HDF_PLATFORM_FRAMEWORKS_ROOT)/src/spi/spi_if.o \
Dspi_adapter.c283 struct SpiDev *spi = NULL; in SpiFindDeviceFromBus() local
304 spi = SpiFindDeviceByCsNum(cntlr, cntlr->curCs); in SpiFindDeviceFromBus()
305 if (spi == NULL) { in SpiFindDeviceFromBus()
306 spi = SpiDevCreat(cntlr); in SpiFindDeviceFromBus()
308 if (spi == NULL) { in SpiFindDeviceFromBus()
312 SpiDevInit(spi, spidev); in SpiFindDeviceFromBus()
376 struct spi_device *spi, struct spi_transfer *xfer) in SpiAdapterTransferOneDummy() argument
379 (void)spi; in SpiAdapterTransferOneDummy()
/drivers/hdf_core/adapter/khdf/linux/test/
DKconfig20 bool "Enable imx8mm spi test"
24 Answer Y to enable imx8mm spi test.
/drivers/hdf_core/adapter/khdf/linux/
DREADME_zh.md40 │ ├── spi #spi接口
DREADME.md40 │ ├── spi # SPI APIs
/drivers/hdf_core/adapter/khdf/linux/platform/
DMakefile23 obj-$(CONFIG_DRIVERS_HDF_PLATFORM_SPI) += spi/
DKconfig84 bool "Enable HDF platform spi driver"
88 Answer Y to enable HDF platform spi driver.
Dplatform.mk29 -I$(srctree)/drivers/hdf/framework/support/platform/include/spi \
/drivers/hdf_core/adapter/platform/
DBUILD.gn16 "spi",
/drivers/hdf_core/adapter/uhdf2/platform/
DBUILD.gn30 "$hdf_framework_path/support/platform/include/spi",
45 "$HDF_FRAMEWORKS/support/platform/src/spi/spi_if_u.c",
/drivers/hdf_core/adapter/khdf/uniproton/platform/
DBUILD.gn97 "$HDF_FRAMEWORKS_PATH/support/platform/src/spi/spi_core.c",
98 "$HDF_FRAMEWORKS_PATH/support/platform/src/spi/spi_if.c",
149 include_dirs += [ "$HDF_FRAMEWORKS_PATH/support/platform/include/spi" ]
DKconfig122 bool "Enable HDF platform spi driver"
126 Answer Y to enable HDF platform spi driver.
/drivers/hdf_core/framework/model/input/driver/
Dinput_config_parser.c144 ret = parser->GetUint8(busNode, "busNum", &bus->spi.busNum, 0); in ParseBus()
146 ret = parser->GetUint16(busNode, "clkGpio", &bus->spi.clkGpio, 0); in ParseBus()
148 ret = parser->GetUint16(busNode, "csGpio", &bus->spi.csGpio, 0); in ParseBus()
150 ret = parser->GetUint16(busNode, "misoGpio", &bus->spi.misoGpio, 0); in ParseBus()
152 ret = parser->GetUint16(busNode, "mosiGpio", &bus->spi.mosiGpio, 0); in ParseBus()
Dinput_config.h48 BoardSpiCfg spi; member
/drivers/hdf_core/framework/model/sensor/driver/include/
Dsensor_platform_if.h75 struct SpiCfg spi; member
/drivers/hdf_core/adapter/uhdf/platform/
DBUILD.gn38 "$hdf_framework_path/support/platform/include/spi",
69 "$hdf_framework_path/support/platform/src/spi/spi_if_u.c",
/drivers/hdf_core/adapter/khdf/liteos_m/platform/
DBUILD.gn99 "$HDF_FRAMEWORKS_PATH/support/platform/src/spi/spi_core.c",
100 "$HDF_FRAMEWORKS_PATH/support/platform/src/spi/spi_if.c",
151 include_dirs += [ "$HDF_FRAMEWORKS_PATH/support/platform/include/spi" ]
/drivers/hdf_core/framework/model/sensor/driver/common/src/
Dsensor_config_parser.c221 ret = SpiSetCfg(busCfg->spiCfg.handle, &busCfg->spiCfg.spi); in GetSensorSpiHandle()
370 ret = parser->GetUint32(spiBusNode, "maxSpeedHz", &busConfig->spiCfg.spi.maxSpeedHz, 0); in ParseSensorSpiBus()
372 ret = parser->GetUint16(spiBusNode, "mode", &busConfig->spiCfg.spi.mode, 0); in ParseSensorSpiBus()
374 ret = parser->GetUint8(spiBusNode, "transferMode", &busConfig->spiCfg.spi.transferMode, 0); in ParseSensorSpiBus()
376 ret = parser->GetUint8(spiBusNode, "bitsPerWord", &busConfig->spiCfg.spi.bitsPerWord, 0); in ParseSensorSpiBus()
/drivers/peripheral/input/uinput/include/
Duinput_config_parser.h55 BoardSpiCfg spi; member
/drivers/hdf_core/adapter/khdf/liteos/platform/
DBUILD.gn120 "$HDF_FRAMEWORKS_PATH/support/platform/src/spi/spi_core.c",
121 "$HDF_FRAMEWORKS_PATH/support/platform/src/spi/spi_if.c",
257 "$HDF_FRAMEWORKS_PATH/support/platform/include/spi",
DMakefile99 LOCAL_SRCS += $(HDF_FRAMEWORKS)/support/platform/src/spi/spi_if.c \
100 $(HDF_FRAMEWORKS)/support/platform/src/spi/spi_core.c
/drivers/hdf_core/adapter/khdf/liteos_m/
DKconfig140 bool "Enable HDF platform spi driver"
144 Answer Y to enable HDF platform spi driver.

12