Home
last modified time | relevance | path

Searched +full:mmc +full:- +full:card (Results 1 – 25 of 591) sorted by relevance

12345678910>>...24

/linux-6.12.1/drivers/mmc/host/
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
3 # MMC/SD host controller drivers
6 comment "MMC/SD/SDIO Host Controller Drivers"
9 bool "MMC host drivers debugging"
10 depends on MMC != n
13 say N here. This enables MMC host driver debugging. And further
18 tristate "Sunplus SP7021 MMC Controller"
27 tristate "ARM AMBA Multimedia Card Interface support"
30 This selects the ARM(R) AMBA(R) PrimeCell Multimedia Card
32 platform with a Multimedia Card slot, say Y or M here.
[all …]
Dsdhci-bcm-kona.c1 // 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 …]
Dmmc_spi.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Access SD/MMC cards through SPI master controllers
7 * (C) Copyright 2006-2007, David Brownell
9 * Hans-Peter Nilsson (hp@axis.com)
19 #include <linux/crc-itu-t.h>
22 #include <linux/mmc/host.h>
23 #include <linux/mmc/mmc.h> /* for R1_SPI_* bit values */
24 #include <linux/mmc/slot-gpio.h>
34 * - For now, we won't try to interoperate with a real mmc/sd/sdio
36 * SPI protocol. The main reason for such configs would be mmc-ish
[all …]
Dsdhci-sprd.c1 // SPDX-License-Identifier: GPL-2.0
9 #include <linux/dma-mapping.h>
12 #include <linux/mmc/host.h>
13 #include <linux/mmc/mmc.h>
22 #include "sdhci-pltfm.h"
105 { "sprd,phy-delay-legacy", MMC_TIMING_LEGACY, },
106 { "sprd,phy-delay-sd-highspeed", MMC_TIMING_SD_HS, },
107 { "sprd,phy-delay-sd-uhs-sdr50", MMC_TIMING_UHS_SDR50, },
108 { "sprd,phy-delay-sd-uhs-sdr104", MMC_TIMING_UHS_SDR104, },
109 { "sprd,phy-delay-mmc-highspeed", MMC_TIMING_MMC_HS, },
[all …]
Dtmio_mmc_core.c1 // SPDX-License-Identifier: GPL-2.0
3 * Driver for the MMC / SD / SDIO IP found in:
5 * TC6393XB, TC6391XB, TC6387XB, T7L66XB, ASIC3, SH-Mobile SoCs
7 * Copyright (C) 2015-19 Renesas Electronics Corporation
8 * Copyright (C) 2016-19 Sang Engineering, Wolfram Sang
22 * Handle MMC errors better
29 #include <linux/dma-mapping.h>
34 #include <linux/mmc/card.h>
35 #include <linux/mmc/host.h>
36 #include <linux/mmc/mmc.h>
[all …]
Dsdhci-esdhc-imx.c1 // SPDX-License-Identifier: GPL-2.0
5 * derived from the OF-version.
20 #include <linux/mmc/host.h>
21 #include <linux/mmc/mmc.h>
22 #include <linux/mmc/sdio.h>
23 #include <linux/mmc/slot-gpio.h>
28 #include "sdhci-cqhci.h"
29 #include "sdhci-pltfm.h"
30 #include "sdhci-esdhc.h"
82 #define ESDHC_TUNE_CTRL_MAX ((1 << 7) - 1)
[all …]
/linux-6.12.1/drivers/mmc/core/
Dbus.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * linux/drivers/mmc/core/bus.c
8 * MMC card bus driver model
20 #include <linux/mmc/card.h>
21 #include <linux/mmc/host.h>
24 #include "card.h"
34 struct mmc_card *card = mmc_dev_to_card(dev); in type_show() local
36 switch (card->type) { in type_show()
38 return sysfs_emit(buf, "MMC\n"); in type_show()
46 return -EFAULT; in type_show()
[all …]
Dcore.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * linux/drivers/mmc/core/core.c
5 * Copyright (C) 2003-2004 Russell King, All Rights Reserved.
7 * Copyright (C) 2005-2008 Pierre Ossman, All Rights Reserved.
24 #include <linux/fault-inject.h>
29 #include <linux/mmc/card.h>
30 #include <linux/mmc/host.h>
31 #include <linux/mmc/mmc.h>
32 #include <linux/mmc/sd.h>
33 #include <linux/mmc/slot-gpio.h>
[all …]
Dcore.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * linux/drivers/mmc/core/core.h
42 void mmc_init_erase(struct mmc_card *card);
55 int mmc_select_drive_strength(struct mmc_card *card, unsigned int max_dtr,
93 void mmc_add_card_debugfs(struct mmc_card *card);
94 void mmc_remove_card_debugfs(struct mmc_card *card);
102 static inline void mmc_add_card_debugfs(struct mmc_card *card) in mmc_add_card_debugfs() argument
105 static inline void mmc_remove_card_debugfs(struct mmc_card *card) in mmc_remove_card_debugfs() argument
110 int mmc_execute_tuning(struct mmc_card *card);
111 int mmc_hs200_to_hs400(struct mmc_card *card);
[all …]
Ddebugfs.c1 // 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 …]
Dcard.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Private header for the mmc subsystem
13 #include <linux/mmc/card.h>
15 #define mmc_card_name(c) ((c)->cid.prod_name)
16 #define mmc_card_id(c) (dev_name(&(c)->dev))
19 /* Card states */
21 #define MMC_STATE_READONLY (1<<1) /* card is read-only */
22 #define MMC_STATE_BLOCKADDR (1<<2) /* card uses block-addressing */
23 #define MMC_CARD_SDXC (1<<3) /* card is SDXC */
24 #define MMC_CARD_REMOVED (1<<4) /* card has been removed */
[all …]
Dsdio_ops.c1 // 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 …]
DKconfig1 # 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 …]
Dsdio_irq.c1 // 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 …]
Dsd_ops.c1 // 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>
36 int mmc_app_cmd(struct mmc_host *host, struct mmc_card *card) in mmc_app_cmd() argument
41 if (WARN_ON(card && card->host != host)) in mmc_app_cmd()
42 return -EINVAL; in mmc_app_cmd()
[all …]
/linux-6.12.1/Documentation/devicetree/bindings/mmc/
Dmmc-controller.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/mmc/mmc-controller.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: MMC Controller Common Properties
10 - Ulf Hansson <ulf.hansson@linaro.org>
13 These properties are common to multiple MMC host controllers. Any host
17 It is possible to assign a fixed index mmcN to an MMC host controller
23 pattern: "^mmc(@.*)?$"
25 "#address-cells":
[all …]
Dmmc-card.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/mmc/mmc-card.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: MMC Card / eMMC Generic
10 - Ulf Hansson <ulf.hansson@linaro.org>
13 This documents describes the devicetree bindings for a mmc-host controller
14 child node describing a mmc-card / an eMMC.
18 const: mmc-card
23 broken-hpi:
[all …]
Dmmc-pwrseq-emmc.yaml1 # 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 …]
Dmmc-pwrseq-simple.yaml1 # 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 …]
/linux-6.12.1/include/linux/mmc/
Dhost.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * linux/include/linux/mmc/host.h
12 #include <linux/fault-inject.h>
15 #include <linux/mmc/core.h>
16 #include <linux/mmc/card.h>
17 #include <linux/mmc/pm.h>
18 #include <linux/dma-direction.h>
19 #include <linux/blk-crypto-profile.h>
142 * ios->clock might be 0. For some controllers, setting 0Hz
151 * 0 for a read/write card
[all …]
/linux-6.12.1/include/linux/platform_data/
Dmmc-omap.h1 /* 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 …]
Dmmc-sdhci-s3c.h1 /* 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-6.12.1/Documentation/driver-api/mmc/
Dmmc-dev-attrs.rst2 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 …]
Dmmc-test.rst1 .. 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 …]
/linux-6.12.1/include/linux/spi/
Dmmc_spi.h1 /* 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 */

12345678910>>...24