| /OK3568_Linux_fs/kernel/drivers/mmc/host/ |
| H A D | Kconfig | 1 # 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 "ARM AMBA Multimedia Card Interface support" 21 This selects the ARM(R) AMBA(R) PrimeCell Multimedia Card 23 platform with a Multimedia Card slot, say Y or M here. 28 bool "Qualcomm Data Mover for SD Card Controller" [all …]
|
| H A D | sdhci-bcm-kona.c | 19 #include <linux/mmc/host.h> 25 #include <linux/mmc/slot-gpio.h> 27 #include "sdhci-pltfm.h" 74 return -EFAULT; in sdhci_bcm_kona_sd_reset() 83 * Back-to-Back register write needs a delay of 1ms at bootup (min 10uS) in sdhci_bcm_kona_sd_reset() 84 * Back-to-Back writes to same register needs delay when SD bus clock in sdhci_bcm_kona_sd_reset() 85 * is very low w.r.t AHB clock, mainly during boot-time and during card in sdhci_bcm_kona_sd_reset() 86 * insert-removal. in sdhci_bcm_kona_sd_reset() 108 * Back-to-Back register write needs a delay of 1ms at bootup (min 10uS) in sdhci_bcm_kona_sd_init() 109 * Back-to-Back writes to same register needs delay when SD bus clock in sdhci_bcm_kona_sd_init() [all …]
|
| H A D | mmc_spi.c | 1 // 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) 18 #include <linux/dma-mapping.h> 20 #include <linux/crc-itu-t.h> 23 #include <linux/mmc/host.h> 24 #include <linux/mmc/mmc.h> /* for R1_SPI_* bit values */ 25 #include <linux/mmc/slot-gpio.h> 35 * - For now, we won't try to interoperate with a real mmc/sd/sdio [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/mmc/ |
| H A D | Kconfig | 1 menu "MMC Host controller Support" 3 config MMC config 4 bool "MMC/SD/SDIO card support" 10 If you want MMC/SD/SDIO support, you should say Y here and 14 bool "support for MMC/SD write operations" 15 depends on MMC 18 Enable write access to MMC and SD Cards 21 bool "Enable MMC controllers using Driver Model" 24 This enables the MultiMediaCard (MMC) uclass which supports MMC and 25 Secure Digital I/O (SDIO) cards. Both removable (SD, micro-SD, etc.) [all …]
|
| H A D | mmc.c | 7 * SPDX-License-Identifier: GPL-2.0+ 14 #include <dm/device-internal.h> 16 #include <mmc.h> 36 static struct mmc mmc_static; 37 struct mmc *find_mmc_device(int dev_num) in find_mmc_device() 44 struct mmc *m = &mmc_static; in mmc_do_preinit() 48 if (m->preinit) in mmc_do_preinit() 52 struct blk_desc *mmc_get_blk_desc(struct mmc *mmc) in mmc_get_blk_desc() argument 54 return &mmc->block_dev; in mmc_get_blk_desc() 59 __weak int board_mmc_getwp(struct mmc *mmc) in board_mmc_getwp() argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/mmc/core/ |
| H A D | bus.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * linux/drivers/mmc/core/bus.c 8 * MMC card bus driver model 19 #include <linux/mmc/card.h> 20 #include <linux/mmc/host.h> 23 #include "card.h" 33 struct mmc_card *card = mmc_dev_to_card(dev); in type_show() local 35 switch (card->type) { in type_show() 37 return sprintf(buf, "MMC\n"); in type_show() 45 return -EFAULT; in type_show() [all …]
|
| H A D | core.c | 1 // 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 …]
|
| H A D | queue.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright 2006-2007 Pierre Ossman 12 #include <linux/dma-mapping.h> 13 #include <linux/backing-dev.h> 15 #include <linux/mmc/card.h> 16 #include <linux/mmc/host.h> 21 #include "card.h" 30 return mq->in_flight[MMC_ISSUE_DCMD]; in mmc_cqe_dcmd_busy() 35 if ((mq->cqe_busy & MMC_CQE_DCMD_BUSY) && !mmc_cqe_dcmd_busy(mq)) in mmc_cqe_check_busy() 36 mq->cqe_busy &= ~MMC_CQE_DCMD_BUSY; in mmc_cqe_check_busy() [all …]
|
| H A D | core.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * linux/drivers/mmc/core/core.h 45 void mmc_init_erase(struct mmc_card *card); 58 int mmc_select_drive_strength(struct mmc_card *card, unsigned int max_dtr, 95 void mmc_add_card_debugfs(struct mmc_card *card); 96 void mmc_remove_card_debugfs(struct mmc_card *card); 98 int mmc_execute_tuning(struct mmc_card *card); 99 int mmc_hs200_to_hs400(struct mmc_card *card); 100 int mmc_hs400_to_hs200(struct mmc_card *card); 107 int mmc_erase(struct mmc_card *card, unsigned int from, unsigned int nr, [all …]
|
| H A D | card.h | 1 /* 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 …]
|
| 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> 21 int mmc_app_cmd(struct mmc_host *host, struct mmc_card *card) in mmc_app_cmd() argument 26 if (WARN_ON(card && card->host != host)) in mmc_app_cmd() 27 return -EINVAL; in mmc_app_cmd() [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 | debugfs.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 #include <linux/fault-inject.h> 16 #include <linux/mmc/card.h> 17 #include <linux/mmc/host.h> 20 #include "card.h" 54 struct mmc_host *host = s->private; in mmc_ios_show() 55 struct mmc_ios *ios = &host->ios; in mmc_ios_show() 58 seq_printf(s, "clock:\t\t%u Hz\n", ios->clock); in mmc_ios_show() 59 if (host->actual_clock) in mmc_ios_show() 60 seq_printf(s, "actual clock:\t%u Hz\n", host->actual_clock); in mmc_ios_show() [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 | 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" 42 Say Y here to enable the MMC block device driver support. 44 mount the filesystem. Almost everyone wishing MMC support 56 Number of total MMC minors available is 256, so your number 73 tristate "MMC host test driver" [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/mmc/ |
| H A D | mmc-controller.yaml | 1 # 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 Generic Binding 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 …]
|
| H A D | mmc-card.txt | 1 mmc-card / eMMC bindings 2 ------------------------ 4 This documents describes the devicetree bindings for a mmc-host controller 5 child node describing a mmc-card / an eMMC, see "Use of Function subnodes" 6 in mmc.txt 9 -compatible : Must be "mmc-card" 10 -reg : Must be <0> 13 -broken-hpi : Use this to indicate that the mmc-card has a broken hpi 19 pinctrl-names = "default"; 20 pinctrl-0 = <&mmc2_pins_a>; [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 binding 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 …]
|
| /OK3568_Linux_fs/u-boot/include/ |
| H A D | mmc.h | 7 * SPDX-License-Identifier: GPL-2.0+ 18 /* SD/MMC version bits; 8 flags, 8 major, 8 minor, 8 change */ 67 #define IS_SD(x) ((x)->version & SD_VERSION_SD) 68 #define IS_MMC(x) ((x)->version & MMC_VERSION_MMC) 142 #define MMC_VDD_165_195 0x00000080 /* VDD voltage 1.65 - 1.95 */ 212 #define EXT_CSD_CARD_TYPE_26 (1 << 0) /* Card can run at 26MHz */ 213 #define EXT_CSD_CARD_TYPE_52 (1 << 1) /* Card can run at 52MHz */ 216 #define EXT_CSD_CARD_TYPE_HS200_1_8V BIT(4) /* Card can run at 200MHz */ 217 #define EXT_CSD_CARD_TYPE_HS200_1_2V BIT(5) /* Card can run at 200MHz */ 220 #define EXT_CSD_CARD_TYPE_HS400_1_8V BIT(6) /* Card can run at 200MHz DDR, 1.8V */ [all …]
|
| /OK3568_Linux_fs/kernel/include/linux/mmc/ |
| H A D | host.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * linux/include/linux/mmc/host.h 12 #include <linux/fault-inject.h> 14 #include <linux/mmc/core.h> 15 #include <linux/mmc/card.h> 16 #include <linux/mmc/pm.h> 17 #include <linux/dma-direction.h> 18 #include <linux/keyslot-manager.h> 112 * ios->clock might be 0. For some controllers, setting 0Hz 121 * 0 for a read/write card [all …]
|
| 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. 123 u8 raw_sectors[4]; /* 212 - 4 bytes */ 185 #define SD_SET_CURRENT_NO_CHANGE (-1) 218 /* The number of MMC physical partitions. These consist of: 220 * RPMB partition (1) in MMC v4.4. 228 * MMC Physical partitions 245 * MMC device 251 unsigned int rca; /* relative card address of device */ [all …]
|
| /OK3568_Linux_fs/u-boot/include/configs/ |
| H A D | am335x_shc.h | 8 * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ 10 * SPDX-License-Identifier: GPL-2.0+ 37 * in case of SD Card or Network boot we want to have a possibility to 49 * ENV at MMC Boot0 Partition - 0/Undefined=user, 1=boot0, 2=boot1, 81 "fdtfile=am335x-shc.dtb\0" \ 84 "rootpath=/srv/nfs/shc-rootfs\0" \ 110 "loadbootenv=if fatload mmc ${mmcdev} ${loadaddr} ${bootenv}; then " \ 115 "env import -t $loadaddr $filesize\0" \ 116 "loaduimagefat=fatload mmc ${mmcdev} ${kloadaddr} ${bootfile}\0" \ 117 "loaduimage=ext2load mmc ${mmcdev}:${mmcpart} ${kloadaddr} /boot/${bootfile}\0" \ [all …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/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 */ 25 /* initialize board-specific MMC functionality, can be NULL if 44 * need to OR'd all capabilities (ref. linux/mmc/host.h) 46 u8 wires; /* Used for the MMC driver on omap1 and 2420 */ 47 u32 caps; /* Used for the MMC driver on 2430 and later */ 48 u32 pm_caps; /* PM capabilities of the mmc */ 52 * that board-specific code handled it before common init logic. [all …]
|