Home
last modified time | relevance | path

Searched refs:buswidth (Results 1 – 25 of 34) sorted by relevance

12

/external/u-boot/include/
Dspi-mem.h21 .buswidth = __buswidth, \
29 .buswidth = __buswidth, \
37 .buswidth = __buswidth, \
47 .buswidth = __buswidth, \
55 .buswidth = __buswidth, \
92 u8 buswidth; member
98 u8 buswidth; member
104 u8 buswidth; member
108 u8 buswidth; member
/external/arm-trusted-firmware/drivers/mtd/spi-mem/
Dspi_mem.c33 static bool spi_mem_check_buswidth_req(uint8_t buswidth, bool tx) in spi_mem_check_buswidth_req() argument
35 switch (buswidth) { in spi_mem_check_buswidth_req()
64 if (!spi_mem_check_buswidth_req(op->cmd.buswidth, true)) { in spi_mem_supports_op()
69 !spi_mem_check_buswidth_req(op->addr.buswidth, true)) { in spi_mem_supports_op()
74 !spi_mem_check_buswidth_req(op->dummy.buswidth, true)) { in spi_mem_supports_op()
79 !spi_mem_check_buswidth_req(op->data.buswidth, in spi_mem_supports_op()
154 __func__, op->cmd.opcode, op->cmd.buswidth, op->addr.buswidth, in spi_mem_exec_op()
155 op->dummy.buswidth, op->data.buswidth, in spi_mem_exec_op()
/external/arm-trusted-firmware/drivers/mtd/nand/
Dspi_nand.c42 op.cmd.buswidth = SPI_MEM_BUSWIDTH_1_LINE; in spi_nand_reg()
45 op.addr.buswidth = SPI_MEM_BUSWIDTH_1_LINE; in spi_nand_reg()
46 op.data.buswidth = SPI_MEM_BUSWIDTH_1_LINE; in spi_nand_reg()
98 if (spinand_dev.spi_read_cache_op.data.buswidth == in spi_nand_quad_enable()
135 op.cmd.buswidth = SPI_MEM_BUSWIDTH_1_LINE; in spi_nand_reset()
151 op.cmd.buswidth = SPI_MEM_BUSWIDTH_1_LINE; in spi_nand_read_id()
155 op.data.buswidth = SPI_MEM_BUSWIDTH_1_LINE; in spi_nand_read_id()
171 op.cmd.buswidth = SPI_MEM_BUSWIDTH_1_LINE; in spi_nand_load_page()
174 op.addr.buswidth = SPI_MEM_BUSWIDTH_1_LINE; in spi_nand_load_page()
278 spinand_dev.spi_read_cache_op.cmd.buswidth = SPI_MEM_BUSWIDTH_1_LINE; in spi_nand_init()
[all …]
Draw_nand.c102 if (rawnand_dev.nand_dev->buswidth == NAND_BUS_WIDTH_16) { in nand_change_read_column_cmd()
135 if (rawnand_dev.nand_dev->buswidth == NAND_BUS_WIDTH_16) { in nand_read_page_cmd()
321 rawnand_dev.nand_dev->buswidth = NAND_BUS_WIDTH_16; in nand_read_param_page()
323 rawnand_dev.nand_dev->buswidth = NAND_BUS_WIDTH_8; in nand_read_param_page()
342 rawnand_dev.nand_dev->buswidth); in nand_read_param_page()
/external/arm-trusted-firmware/drivers/st/spi/
Dstm32_qspi.c225 static unsigned int stm32_qspi_get_mode(uint8_t buswidth) in stm32_qspi_get_mode() argument
227 if (buswidth == 4U) { in stm32_qspi_get_mode()
231 return buswidth; in stm32_qspi_get_mode()
243 __func__, op->cmd.opcode, op->cmd.buswidth, op->addr.buswidth, in stm32_qspi_exec_op()
244 op->dummy.buswidth, op->data.buswidth, in stm32_qspi_exec_op()
256 (op->addr.buswidth != 0U)) { in stm32_qspi_exec_op()
269 ccr |= stm32_qspi_get_mode(op->cmd.buswidth) << QSPI_CCR_IMODE_SHIFT; in stm32_qspi_exec_op()
273 ccr |= stm32_qspi_get_mode(op->addr.buswidth) << in stm32_qspi_exec_op()
277 if ((op->dummy.buswidth != 0U) && (op->dummy.nbytes != 0U)) { in stm32_qspi_exec_op()
278 ccr |= (op->dummy.nbytes * 8U / op->dummy.buswidth) << in stm32_qspi_exec_op()
[all …]
/external/arm-trusted-firmware/include/drivers/
Dspi_mem.h51 uint8_t buswidth; member
57 uint8_t buswidth; member
63 uint8_t buswidth; member
67 uint8_t buswidth; member
Dnand.h29 unsigned int buswidth; member
/external/u-boot/drivers/spi/
Dstm32_qspi.c227 static int _stm32_qspi_get_mode(u8 buswidth) in _stm32_qspi_get_mode() argument
229 if (buswidth == 4) in _stm32_qspi_get_mode()
232 return buswidth; in _stm32_qspi_get_mode()
244 __func__, op->cmd.opcode, op->cmd.buswidth, op->addr.buswidth, in stm32_qspi_exec_op()
245 op->dummy.buswidth, op->data.buswidth, in stm32_qspi_exec_op()
255 if (addr_max < priv->mm_size && op->addr.buswidth) in stm32_qspi_exec_op()
266 ccr |= (_stm32_qspi_get_mode(op->cmd.buswidth) in stm32_qspi_exec_op()
271 ccr |= (_stm32_qspi_get_mode(op->addr.buswidth) in stm32_qspi_exec_op()
275 if (op->dummy.buswidth && op->dummy.nbytes) in stm32_qspi_exec_op()
276 ccr |= (op->dummy.nbytes * 8 / op->dummy.buswidth in stm32_qspi_exec_op()
[all …]
Dspi-mem.c105 static int spi_check_buswidth_req(struct spi_slave *slave, u8 buswidth, bool tx) in spi_check_buswidth_req() argument
109 switch (buswidth) { in spi_check_buswidth_req()
137 if (spi_check_buswidth_req(slave, op->cmd.buswidth, true)) in spi_mem_default_supports_op()
141 spi_check_buswidth_req(slave, op->addr.buswidth, true)) in spi_mem_default_supports_op()
145 spi_check_buswidth_req(slave, op->dummy.buswidth, true)) in spi_mem_default_supports_op()
149 spi_check_buswidth_req(slave, op->data.buswidth, in spi_mem_default_supports_op()
276 xfers[xferpos].tx_nbits = op->cmd.buswidth; in spi_mem_exec_op()
290 xfers[xferpos].tx_nbits = op->addr.buswidth; in spi_mem_exec_op()
300 xfers[xferpos].tx_nbits = op->dummy.buswidth; in spi_mem_exec_op()
309 xfers[xferpos].rx_nbits = op->data.buswidth; in spi_mem_exec_op()
[all …]
Datmel-quadspi.c171 if (op->cmd.buswidth != mode->cmd_buswidth) in atmel_qspi_is_compatible()
174 if (op->addr.nbytes && op->addr.buswidth != mode->addr_buswidth) in atmel_qspi_is_compatible()
177 if (op->data.nbytes && op->data.buswidth != mode->data_buswidth) in atmel_qspi_is_compatible()
201 if (op->addr.nbytes == 2 && op->cmd.buswidth != op->addr.buswidth && in atmel_qspi_supports_op()
224 if (op->dummy.buswidth && op->dummy.nbytes) in atmel_qspi_set_cfg()
225 dummy_cycles = op->dummy.nbytes * 8 / op->dummy.buswidth; in atmel_qspi_set_cfg()
239 if (op->addr.buswidth) { in atmel_qspi_set_cfg()
248 if (dummy_cycles < 8 / op->addr.buswidth) { in atmel_qspi_set_cfg()
256 dummy_cycles -= 8 / op->addr.buswidth; in atmel_qspi_set_cfg()
Dmtk_snfi_spi.c84 if (op->cmd.buswidth > 1 || op->addr.buswidth > 1 || in mtk_snfi_supports_op()
85 op->dummy.buswidth > 1 || op->data.buswidth > 1) in mtk_snfi_supports_op()
/external/u-boot/drivers/mmc/
Dmxsmmc.c44 uint32_t buswidth; member
66 int buswidth; member
74 u32 buswidth; member
105 priv->buswidth = SSP_CTRL0_BUS_WIDTH_ONE_BIT; in mxsmmc_set_ios()
108 priv->buswidth = SSP_CTRL0_BUS_WIDTH_FOUR_BIT; in mxsmmc_set_ios()
111 priv->buswidth = SSP_CTRL0_BUS_WIDTH_EIGHT_BIT; in mxsmmc_set_ios()
117 SSP_CTRL0_BUS_WIDTH_MASK, priv->buswidth); in mxsmmc_set_ios()
355 ctrl0 = priv->buswidth;
518 priv->buswidth = SSP_CTRL0_BUS_WIDTH_ONE_BIT;
521 priv->buswidth = SSP_CTRL0_BUS_WIDTH_FOUR_BIT;
[all …]
Dsnps_dw_mmc.c101 host->buswidth = dev_read_u32_default(dev, "bus-width", 4); in snps_dwmmc_ofdata_to_platdata()
102 if (host->buswidth != 1 && host->buswidth != 4 && host->buswidth != 8) in snps_dwmmc_ofdata_to_platdata()
Dftsdc010_mci.c371 static void ftsdc_setup_cfg(struct mmc_config *cfg, const char *name, int buswidth, in ftsdc_setup_cfg() argument
379 if (buswidth == 8) { in ftsdc_setup_cfg()
397 chip->buswidth = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), in ftsdc010_mmc_ofdata_to_platdata()
436 chip->buswidth = dtplat->bus_width; in ftsdc010_mmc_probe()
449 ftsdc_setup_cfg(&plat->cfg, dev->name, chip->buswidth, chip->caps, in ftsdc010_mmc_probe()
Darm_pl180_mmci.c318 u32 buswidth = 0; in host_set_ios() local
322 buswidth |= SDI_CLKCR_WIDBUS_1; in host_set_ios()
325 buswidth |= SDI_CLKCR_WIDBUS_4; in host_set_ios()
328 buswidth |= SDI_CLKCR_WIDBUS_8; in host_set_ios()
335 sdi_clkcr |= buswidth; in host_set_ios()
Dftsdc010_mci.h30 int buswidth; member
Drockchip_dw_mmc.c59 host->buswidth = dev_read_u32_default(dev, "bus-width", 4); in rockchip_dwmmc_ofdata_to_platdata()
114 host->buswidth = dtplat->bus_width; in rockchip_dwmmc_probe()
Dexynos_dw_mmc.c142 flag = host->buswidth == 8 ? PINMUX_FLAG_8BIT_MODE : PINMUX_FLAG_NONE; in do_dwmci_init()
172 host->buswidth = fdtdec_get_int(blob, node, "samsung,bus-width", 4); in exynos_dwmci_get_config()
Dhi6220_dw_mmc.c37 host->buswidth = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), in hi6220_dwmmc_ofdata_to_platdata()
/external/stressapptest/src/
Dpattern.cc286 int buswidth, in Initialize() argument
302 if (buswidth == 32) { in Initialize()
305 } else if (buswidth == 64) { in Initialize()
308 } else if (buswidth == 128) { in Initialize()
311 } else if (buswidth == 256) { in Initialize()
316 buswidth); in Initialize()
Dpattern.h55 int buswidth,
/external/arm-trusted-firmware/drivers/mtd/nor/
Dspi_nor.c45 op.cmd.buswidth = SPI_MEM_BUSWIDTH_1_LINE; in spi_nor_reg()
46 op.data.buswidth = SPI_MEM_BUSWIDTH_1_LINE; in spi_nor_reg()
332 nor_dev.read_op.cmd.buswidth = SPI_MEM_BUSWIDTH_1_LINE; in spi_nor_init()
334 nor_dev.read_op.addr.buswidth = SPI_MEM_BUSWIDTH_1_LINE; in spi_nor_init()
335 nor_dev.read_op.data.buswidth = SPI_MEM_BUSWIDTH_1_LINE; in spi_nor_init()
368 if (nor_dev.read_op.data.buswidth == 4U) { in spi_nor_init()
/external/u-boot/drivers/mtd/spi/
Dspi-nor-tiny.c85 op.cmd.buswidth = spi_nor_get_protocol_inst_nbits(nor->read_proto); in spi_nor_read_data()
86 op.addr.buswidth = spi_nor_get_protocol_addr_nbits(nor->read_proto); in spi_nor_read_data()
87 op.dummy.buswidth = op.addr.buswidth; in spi_nor_read_data()
88 op.data.buswidth = spi_nor_get_protocol_data_nbits(nor->read_proto); in spi_nor_read_data()
91 op.dummy.nbytes = (nor->read_dummy * op.dummy.buswidth) / 8; in spi_nor_read_data()
/external/u-boot/arch/arm/mach-keystone/
Dddr3_spd.c137 u8 buswidth; member
186 spd->buswidth = 8 << (buf->bus_width & 0x7); in ddrtimingcalculation()
187 if ((spd->buswidth < 16) || (spd->buswidth > 64)) in ddrtimingcalculation()
372 (spd->buswidth & 3) << 12 | (spd->pagesize & 3); in init_ddr3param()
/external/arm-trusted-firmware/drivers/st/fmc/
Dstm32_fmc2_nand.c572 if (use_bus8 && (nand->buswidth == NAND_BUS_WIDTH_16)) { in stm32_fmc2_read_data()
607 if (use_bus8 && (nand->buswidth == NAND_BUS_WIDTH_16)) { in stm32_fmc2_read_data()
619 if (use_bus8 && (nand->buswidth == NAND_BUS_WIDTH_16)) { in stm32_fmc2_write_data()
655 if (use_bus8 && (nand->buswidth == NAND_BUS_WIDTH_16)) { in stm32_fmc2_write_data()
745 if (nand->buswidth == NAND_BUS_WIDTH_16) { in stm32_fmc2_setup()
774 if ((nand->buswidth & NAND_BUS_WIDTH_16) != 0) { in stm32_fmc2_setup()

12