| /linux/Documentation/devicetree/bindings/mmc/ |
| H A D | mmc-controller-common.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/mmc/mmc-controller-common.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: MMC Controller & Slots Common Properties 10 - Ulf Hansson <ulf.hansson@linaro.org> 13 These properties are common to multiple MMC host controllers and the 14 possible slots or ports for multi-slot controllers. 17 "#address-cells": 22 "#size-cells": [all …]
|
| H A D | mmc-pwrseq-emmc.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/mmc/mmc-pwrseq-emmc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Ulf Hansson <ulf.hansson@linaro.org> 15 performed just after MMC core enabled power to the given mmc host (to 16 fix possible issues if bootloader has left eMMC card in initialized or 19 doesn't have hardware reset logic connected to emmc card and (limited or 21 card if the card is left in unknown or already initialized state. 25 const: mmc-pwrseq-emmc [all …]
|
| H A D | mmc-pwrseq-simple.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/mmc/mmc-pwrseq-simple.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Simple MMC power sequence provider 10 - Ulf Hansson <ulf.hansson@linaro.org> 13 The purpose of the simple MMC power sequence provider is to supports a set 19 const: mmc-pwrseq-simple 21 reset-gpios: 27 at initialization and prior we start the power up procedure of the card. [all …]
|
| H A D | hisilicon,hi3798cv200-dw-mshc.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/mmc/hisilicon,hi3798cv200-dw-mshc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Yang Xiwen <forbidden405@outlook.com> 15 - hisilicon,hi3798cv200-dw-mshc 16 - hisilicon,hi3798mv200-dw-mshc 26 - description: bus interface unit clock 27 - description: card interface unit clock 28 - description: card input sample phase clock [all …]
|
| /linux/drivers/mmc/host/ |
| H A D | sdhci-bcm-kona.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 #include <linux/mmc/host.h> 14 #include <linux/mmc/slot-gpio.h> 16 #include "sdhci-pltfm.h" 63 return -EFAULT; in sdhci_bcm_kona_sd_reset() 72 * Back-to-Back register write needs a delay of 1ms at bootup (min 10uS) in sdhci_bcm_kona_sd_reset() 73 * Back-to-Back writes to same register needs delay when SD bus clock in sdhci_bcm_kona_sd_reset() 74 * is very low w.r.t AHB clock, mainly during boot-time and during card in sdhci_bcm_kona_sd_reset() 75 * insert-removal. in sdhci_bcm_kona_sd_reset() 97 * Back-to-Back register write needs a delay of 1ms at bootup (min 10uS) in sdhci_bcm_kona_sd_init() [all …]
|
| H A D | rtsx_pci_sdmmc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* Realtek PCI-Express SD/MMC Card Interface driver 4 * Copyright(c) 2009-2013 Realtek Semiconductor Corp. All rights reserved. 17 #include <linux/mmc/host.h> 18 #include <linux/mmc/mmc.h> 19 #include <linux/mmc/sd.h> 20 #include <linux/mmc/sdio.h> 21 #include <linux/mmc/card.h> 29 struct mmc_host *mmc; member 49 static int sdmmc_init_sd_express(struct mmc_host *mmc, struct mmc_ios *ios); [all …]
|
| H A D | litex_mmc.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2019-2020 Antmicro <contact@antmicro.com> 6 * Copyright (C) 2019-2020 Kamil Rakoczy <krakoczy@antmicro.com> 7 * Copyright (C) 2019-2020 Maciej Dudek <mdudek@internships.antmicro.com> 9 * Copyright (C) 2020-2022 Gabriel Somlo <gsomlo@gmail.com> 15 #include <linux/dma-mapping.h> 23 #include <linux/mmc/host.h> 24 #include <linux/mmc/mmc.h> 25 #include <linux/mmc/sd.h> 77 struct mmc_host *mmc; member [all …]
|
| H A D | wbsd.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * linux/drivers/mmc/host/wbsd.c - Winbond W83L51xD SD/MMC driver 5 * Copyright (C) 2004-2007 Pierre Ossman, All Rights Reserved. 12 * - FIFO size field in FSR is always zero. 14 * - FIFO interrupts tend not to work as they should. Interrupts are 17 * - On APIC systems the FIFO empty interrupt is sometimes lost. 26 #include <linux/dma-mapping.h> 30 #include <linux/mmc/host.h> 31 #include <linux/mmc/mmc.h> 32 #include <linux/mmc/sd.h> [all …]
|
| /linux/include/linux/platform_data/ |
| H A D | mmc-omap.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * MMC definitions for OMAP2 13 /* back-link to device */ 20 * maximum frequency on the MMC bus */ 23 /* initialize board-specific MMC functionality, can be NULL if 42 * need to OR'd all capabilities (ref. linux/mmc/host.h) 44 u8 wires; /* Used for the MMC driver on omap1 and 2420 */ 45 u32 caps; /* Used for the MMC driver on 2430 and later */ 46 u32 pm_caps; /* PM capabilities of the mmc */ 50 * that board-specific code handled it before common init logic. [all …]
|
| H A D | mmc-sdhci-s3c.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 8 S3C_SDHCI_CD_INTERNAL, /* use mmc internal CD line */ 11 S3C_SDHCI_CD_NONE, /* no CD line, use polling to detect card */ 12 S3C_SDHCI_CD_PERMANENT, /* no CD line, card permanently wired to host */ 16 * struct s3c_sdhci_platdata() - Platform device data for Samsung SDHCI 18 * @host_caps: Standard MMC host capabilities bit field. 19 * @host_caps2: The second standard MMC host capabilities bit field. 20 * @cd_type: Type of Card Detection method (see cd_types enum above) 21 * @ext_cd_init: Initialize external card detect subsystem. Called on 22 * sdhci-s3c driver probe when cd_type == S3C_SDHCI_CD_EXTERNAL. [all …]
|
| /linux/Documentation/driver-api/mmc/ |
| H A D | mmc-dev-attrs.rst | 2 SD and MMC Block Device Attributes 6 SD or MMC device. 11 force_ro Enforce read-only access even if write protect switch is off. 14 SD and MMC Device Attributes 17 All attributes are read-only. 20 cid Card Identification Register 21 csd Card Specific Data Register 22 scr SD Card Configuration Register (SD only) 48 operation. For MMC, "erase_size" is the erase group size 49 reported by the card. Note that "erase_size" does not apply [all …]
|
| H A D | mmc-test.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 MMC Test Framework 10 … host controller drivers and all devices handled by the MMC subsystem. This includes not only MMC … 16 - Verifying the functionality and performance of MMC and SD host controller drivers. 17 - Ensuring compatibility and reliability of MMC and SD devices. 18 - Identifying and diagnosing issues in the MMC subsystem. 22 Note: whatever is on your card will be overwritten by these tests. 29 1. **Enable the MMC Test Framework**: 33 .. code-block:: none 39 Device Drivers ---> [all …]
|
| H A D | mmc-dev-parts.rst | 2 SD and MMC Device Partitions 6 SD/MMC device. 8 As of this writing, MMC boot partitions as supported and exposed as 12 MMC Boot Partitions 15 Read and write access is provided to the two MMC boot partitions. Due to 21 To enable write access to /dev/mmcblkXbootY, disable the forced read-only 26 To re-enable read-only access:: 35 This is a feature of the card and not of the kernel. If the card does 37 feature has been disabled on the card, the file will be read-only.
|
| /linux/drivers/mmc/core/ |
| H A D | debugfs.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 #include <linux/fault-inject.h> 17 #include <linux/mmc/card.h> 18 #include <linux/mmc/host.h> 19 #include <linux/mmc/mmc.h> 20 #include <linux/mmc/sd.h> 23 #include "card.h" 58 struct mmc_host *host = s->private; in mmc_ios_show() 59 struct mmc_ios *ios = &host->ios; in mmc_ios_show() 62 seq_printf(s, "clock:\t\t%u Hz\n", ios->clock); in mmc_ios_show() [all …]
|
| H A D | sdio_ops.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * linux/drivers/mmc/sdio_ops.c 5 * Copyright 2006-2007 Pierre Ossman 10 #include <linux/mmc/host.h> 11 #include <linux/mmc/card.h> 12 #include <linux/mmc/mmc.h> 13 #include <linux/mmc/sdio.h> 27 for (i = 100; i; i--) { in mmc_send_io_op_cond() 40 * an initialized card under SPI, but some cards in mmc_send_io_op_cond() 51 err = -ETIMEDOUT; in mmc_send_io_op_cond() [all …]
|
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 3 # MMC core configuration 10 This selects Hardware reset support aka pwrseq-emmc for eMMC 27 tristate "Simple HW reset support for MMC" 31 This selects simple hardware reset support aka pwrseq-simple for MMC 38 tristate "MMC block device driver" 44 Say Y here to enable the MMC block device driver support. 46 mount the filesystem. Almost everyone wishing MMC support 58 Number of total MMC minors available is 256, so your number 75 tristate "MMC host test driver" [all …]
|
| H A D | sdio_irq.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * linux/drivers/mmc/core/sdio_irq.c 20 #include <linux/mmc/core.h> 21 #include <linux/mmc/host.h> 22 #include <linux/mmc/card.h> 23 #include <linux/mmc/sdio.h> 24 #include <linux/mmc/sdio_func.h> 28 #include "card.h" 32 struct mmc_card *card = host->card; in sdio_get_pending_irqs() local 35 WARN_ON(!host->claimed); in sdio_get_pending_irqs() [all …]
|
| H A D | sd_ops.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * linux/drivers/mmc/core/sd_ops.h 5 * Copyright 2006-2007 Pierre Ossman 13 #include <linux/mmc/host.h> 14 #include <linux/mmc/card.h> 15 #include <linux/mmc/mmc.h> 16 #include <linux/mmc/sd.h> 19 #include "card.h" 37 int mmc_app_cmd(struct mmc_host *host, struct mmc_card *card) in mmc_app_cmd() argument 42 if (WARN_ON(card && card->host != host)) in mmc_app_cmd() [all …]
|
| H A D | queue.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright 2006-2007 Pierre Ossman 11 #include <linux/dma-mapping.h> 12 #include <linux/backing-dev.h> 14 #include <linux/mmc/card.h> 15 #include <linux/mmc/host.h> 20 #include "card.h" 29 return mq->in_flight[MMC_ISSUE_DCMD]; in mmc_cqe_dcmd_busy() 34 if ((mq->cqe_busy & MMC_CQE_DCMD_BUSY) && !mmc_cqe_dcmd_busy(mq)) in mmc_cqe_check_busy() 35 mq->cqe_busy &= ~MMC_CQE_DCMD_BUSY; in mmc_cqe_check_busy() [all …]
|
| H A D | sdio_cis.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * linux/drivers/mmc/core/sdio_cis.c 15 #include <linux/mmc/host.h> 16 #include <linux/mmc/card.h> 17 #include <linux/mmc/sdio.h> 18 #include <linux/mmc/sdio_func.h> 25 static int cistpl_vers_1(struct mmc_card *card, struct sdio_func *func, in cistpl_vers_1() argument 38 /* Find all null-terminated (including zero length) strings in in cistpl_vers_1() 41 size -= 2; in cistpl_vers_1() 57 return -ENOMEM; in cistpl_vers_1() [all …]
|
| H A D | quirks.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * This file contains work-arounds for many known SD/MMC 14 #include <linux/mmc/sdio_ids.h> 16 #include "card.h" 25 0, -1ull, SDIO_ANY_ID, SDIO_ANY_ID, add_quirk_sd, 33 0, -1ull, SDIO_ANY_ID, SDIO_ANY_ID, add_quirk_sd, 38 * Swissbit series S46-u cards throw I/O errors during tuning requests 44 0, -1ull, SDIO_ANY_ID, SDIO_ANY_ID, add_quirk_sd, 76 * Some MMC cards experience performance degradation with CMD23 77 * instead of CMD12-bounded multiblock transfers. For now we'll [all …]
|
| /linux/include/linux/spi/ |
| H A D | mmc_spi.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 11 /* Put this in platform_data of a device being used to manage an MMC/SD 12 * card slot. (Modeled after PXA mmc glue; see that for usage examples.) 14 * REVISIT This is not a spi-specific notion. Any card slot should be 15 * able to handle it. If the MMC core doesn't adopt this kind of notion, 19 /* driver activation and (optional) card detect irq hookup */ 25 /* Capabilities to pass into mmc core (e.g. MMC_CAP_NEEDS_POLL). */ 29 /* how long to debounce card detect, in msecs */
|
| /linux/include/linux/mmc/ |
| H A D | card.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * linux/include/linux/mmc/card.h 5 * Card driver specific definitions. 121 u8 raw_sectors[4]; /* 212 - 4 bytes */ 185 #define SD_SET_CURRENT_NO_CHANGE (-1) 272 /* The number of MMC physical partitions. These consist of: 274 * RPMB partition (1) in MMC v4.4. 282 * MMC Physical partitions 297 * MMC device 303 unsigned int rca; /* relative card address of device */ [all …]
|
| /linux/drivers/net/wireless/marvell/mwifiex/ |
| H A D | sdio.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Copyright 2011-2020 NXP 13 #include <linux/mmc/sdio.h> 14 #include <linux/mmc/sdio_ids.h> 15 #include <linux/mmc/sdio_func.h> 16 #include <linux/mmc/card.h> 17 #include <linux/mmc/host.h> 65 /* Misc. Config Register : Auto Re-enable interrupts */ 86 /* Card Control Registers : Card I/O ready */ 88 /* Card Control Registers : Download card ready */ [all …]
|
| /linux/arch/mips/boot/dts/ingenic/ |
| H A D | qi_lb60.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 6 #include <dt-bindings/gpio/gpio.h> 7 #include <dt-bindings/iio/adc/ingenic,adc.h> 8 #include <dt-bindings/clock/ingenic,tcu.h> 9 #include <dt-bindings/input/input.h> 27 stdout-path = &uart0; 30 vcc: regulator-0 { 31 compatible = "regulator-fixed"; 32 regulator-name = "vcc"; [all …]
|