/openbmc/linux/drivers/mmc/core/ |
H A D | regulator.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Helper functions for MMC regulators. 11 #include <linux/mmc/host.h> 19 * mmc_ocrbitnum_to_vdd - Convert a OCR bit number to its voltage 32 return -EINVAL; in mmc_ocrbitnum_to_vdd() 40 tmp = vdd_bit - ilog2(MMC_VDD_165_195); in mmc_ocrbitnum_to_vdd() 53 * mmc_regulator_get_ocrmask - return mask of supported voltages 57 * can be provided to MMC/SD/SDIO devices using the specified voltage 59 * MMC host adapter. 95 * mmc_regulator_set_ocr - set regulator to match host->ios voltage [all …]
|
H A D | host.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * linux/drivers/mmc/core/host.c 6 * Copyright (C) 2007-2008 Pierre Ossman 9 * MMC host class device management 23 #include <linux/mmc/host.h> 24 #include <linux/mmc/card.h> 25 #include <linux/mmc/slot-gpio.h> 30 #include "slot-gpio.h" 47 if (!host->bus_ops) in mmc_host_class_prepare() 51 if (host->bus_ops->pre_suspend) in mmc_host_class_prepare() [all …]
|
/openbmc/linux/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 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 …]
|
H A D | sunplus,mmc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 4 --- 5 $id: http://devicetree.org/schemas/mmc/sunplus,mmc.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: Sunplus MMC Controller 11 - Tony Huang <tonyhuang.sunplus@gmail.com> 12 - Li-hao Kuo <lhjeff911@gmail.com> 15 - $ref: mmc-controller.yaml 20 - sunplus,sp7021-mmc 35 - compatible [all …]
|
H A D | sdhci-sprd.txt | 1 * Spreadtrum SDHCI controller (sdhci-sprd) 4 for MMC, SD and SDIO types of cards. 6 This file documents differences between the core properties in mmc.txt 7 and the properties used by the sdhci-sprd driver. 10 - compatible: Should contain "sprd,sdhci-r11". 11 - reg: physical base address of the controller and length. 12 - interrupts: Interrupts used by the SDHCI controller. 13 - clocks: Should contain phandle for the clock feeding the SDHCI controller 14 - clock-names: Should contain the following: 15 "sdio" - SDIO source clock (required) [all …]
|
H A D | mtk-sd.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/mmc/mtk-sd.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Chaotian Jing <chaotian.jing@mediatek.com> 11 - Wenbin Mei <wenbin.mei@mediatek.com> 16 - enum: 17 - mediatek,mt2701-mmc 18 - mediatek,mt2712-mmc 19 - mediatek,mt6779-mmc [all …]
|
H A D | marvell,xenon-sdhci.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/mmc/marvell,xenon-sdhci.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 This file documents differences between the core MMC properties described by 11 mmc-controller.yaml and the properties used by the Xenon implementation. 20 - Ulf Hansson <ulf.hansson@linaro.org> 25 - enum: 26 - marvell,armada-cp110-sdhci 27 - marvell,armada-ap806-sdhci [all …]
|
/openbmc/linux/Documentation/driver-api/mmc/ |
H A D | mmc-async-req.rst | 2 MMC Asynchronous Request 11 pre-fetch makes the cache overhead relatively significant. If the DMA 13 transfer, the DMA preparation overhead would not affect the MMC performance. 15 The intention of non-blocking (asynchronous) MMC requests is to minimize the 16 time between when an MMC request ends and another MMC request begins. 18 Using mmc_wait_for_req(), the MMC controller is idle while dma_map_sg and 19 dma_unmap_sg are processing. Using non-blocking MMC requests makes it 21 MMC request. 23 MMC block driver 26 The mmc_blk_issue_rw_rq() in the MMC block driver is made non-blocking. [all …]
|
/openbmc/u-boot/cmd/ |
H A D | mmc.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * Kyle Harris, kharris@nexus-tech.net 10 #include <mmc.h> 12 #include <image-sparse.h> 14 static int curr_device = -1; 16 static void print_mmcinfo(struct mmc *mmc) in print_mmcinfo() argument 20 printf("Device: %s\n", mmc->cfg->name); in print_mmcinfo() 21 printf("Manufacturer ID: %x\n", mmc->cid[0] >> 24); in print_mmcinfo() 22 printf("OEM: %x\n", (mmc->cid[0] >> 8) & 0xffff); in print_mmcinfo() 23 printf("Name: %c%c%c%c%c \n", mmc->cid[0] & 0xff, in print_mmcinfo() [all …]
|
/openbmc/u-boot/drivers/mmc/ |
H A D | omap_hsmmc.c | 4 * Sukumar Ghorai <s-ghorai@ti.com> 22 * MA 02111-1307 USA 29 #include <mmc.h> 163 static inline struct omap_hsmmc_data *omap_hsmmc_get_data(struct mmc *mmc) in omap_hsmmc_get_data() argument 166 return dev_get_priv(mmc->dev); in omap_hsmmc_get_data() 168 return (struct omap_hsmmc_data *)mmc->priv; in omap_hsmmc_get_data() 171 static inline struct mmc_config *omap_hsmmc_get_cfg(struct mmc *mmc) in omap_hsmmc_get_cfg() argument 174 struct omap_hsmmc_plat *plat = dev_get_platdata(mmc->dev); in omap_hsmmc_get_cfg() 175 return &plat->cfg; in omap_hsmmc_get_cfg() 177 return &((struct omap_hsmmc_data *)mmc->priv)->cfg; in omap_hsmmc_get_cfg() [all …]
|
/openbmc/u-boot/env/ |
H A D | mmc.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * (C) Copyright 2008-2011 Freescale Semiconductor, Inc. 16 #include <mmc.h> 42 ret = blk_get_device_by_str("mmc", STR(CONFIG_SYS_MMC_ENV_DEV), &desc); in mmc_offset_try_partition() 56 len = (CONFIG_ENV_SIZE + info.blksz - 1) & ~(info.blksz - 1); in mmc_offset_try_partition() 59 *val = (info.start + info.size - 1) - len / info.blksz; in mmc_offset_try_partition() 71 .offset_redund = "u-boot,mmc-env-offset-redundant", in mmc_offset() 72 .partition = "u-boot,mmc-env-partition", in mmc_offset() 73 .offset = "u-boot,mmc-env-offset", in mmc_offset() 80 /* look for the partition in mmc CONFIG_SYS_MMC_ENV_DEV */ in mmc_offset() [all …]
|
H A D | Kconfig | 20 while U-Boot is running, but once U-Boot exits it will not be 21 stored. U-Boot will therefore always start up with a default 31 - CONFIG_ENV_OFFSET: 32 - CONFIG_ENV_SIZE: 41 - CONFIG_ENV_EEPROM_IS_ON_I2C 45 - CONFIG_I2C_ENV_EEPROM_BUS 59 default y if ARCH_SUNXI && MMC 88 "embedded" in the text segment with the U-Boot code. This 94 4 kB sectors - with U-Boot code before and after it. With 97 between U-Boot and the environment. [all …]
|
/openbmc/u-boot/include/configs/ |
H A D | cm_t54.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * Config file for Compulab CM-T54 board 5 * Copyright (C) 2014, Compulab Ltd - http://compulab.co.il/ 25 /* Enable SD/MMC CD and WP GPIOs */ 31 /* MMC ENV related defines */ 79 #define CONFIG_SYS_AUTOLOAD "no" 85 "autoload=no\0" \ 87 "fdtfile=omap5-sbc-t54.dtb\0" \ 88 "kernel=zImage-cm-t54\0" \ 89 "ramdisk=ramdisk-cm-t54.img\0" \ [all …]
|
H A D | rut.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 8 * U-Boot file:/include/configs/am335x_evm.h 10 * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ 18 #include "siemens-am33x-common.h" 51 "optargs=fixrtc --no-log consoleblank=0 \0" \ 58 "mmc rescan; " \ 60 "fatload mmc ${mmc_dev} ${kloadaddr} ${bootfile}\0" \ 61 "loadbootenv=fatload mmc ${mmc_dev} ${loadaddr} ${bootenv}\0" \ 62 "importbootenv=echo Importing environment from mmc ...; " \ 63 "env import -t $loadaddr $filesize\0" \ [all …]
|
H A D | opos6uldev.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 32 (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE) 36 /* MMC */ 80 #define CONFIG_SYS_AUTOLOAD "no" 81 #define CONFIG_ROOTPATH "/tftpboot/" __stringify(CONFIG_BOARD_NAME) "-root" 101 "kernelimg=" __stringify(CONFIG_BOARD_NAME) "-linux.bin\0" \ 103 "check_env=if test -n ${flash_env_version}; " \ 108 "echo \"*** Warning - Environment version" \ 112 "flash_reset_env=env default -f -a && saveenv && " \ 114 "download_uboot_spl=tftpboot ${loadaddr} ${board_name}-u-boot.spl\0" \ [all …]
|
H A D | pxm2.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 8 * U-Boot file:/include/configs/am335x_evm.h 10 * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ 18 #include "siemens-am33x-common.h" 62 "mmc rescan; " \ 64 "fatload mmc ${mmc_dev} ${kloadaddr} ${bootfile}\0" \ 65 "loadbootenv=fatload mmc ${mmc_dev} ${loadaddr} ${bootenv}\0" \ 66 "importbootenv=echo Importing environment from mmc ...; " \ 67 "env import -t $loadaddr $filesize\0" \ 81 /* set to negative value for no autoboot */ [all …]
|
H A D | am335x_shc.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 9 * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ 45 * ENV at MMC Boot0 Partition - 0/Undefined=user, 1=boot0, 2=boot1, 74 "fdtfile=am335x-shc.dtb\0" \ 75 "verify=no\0" \ 77 "rootpath=/srv/nfs/shc-rootfs\0" \ 103 "loadbootenv=if fatload mmc ${mmcdev} ${loadaddr} ${bootenv}; then " \ 108 "env import -t $loadaddr $filesize\0" \ 109 "loaduimagefat=fatload mmc ${mmcdev} ${kloadaddr} ${bootfile}\0" \ 110 "loaduimage=ext2load mmc ${mmcdev}:${mmcpart} ${kloadaddr} /boot/${bootfile}\0" \ [all …]
|
/openbmc/u-boot/test/py/tests/ |
H A D | test_mmc_rd.py | 1 # SPDX-License-Identifier: GPL-2.0 4 # Test U-Boot's "mmc read" command. The test reads data from the eMMC or SD 5 # card, and validates the no errors occurred, and that the expected data was 13 which MMC devices should be tested. For example: 17 'fixture_id': 'emmc-boot0', 25 'fixture_id': 'emmc-boot1', 33 'fixture_id': 'emmc-data', 41 'fixture_id': 'sd-mbr', 50 'fixture_id': 'sd-large', 62 """Test the "mmc read" command. [all …]
|
/openbmc/linux/drivers/mmc/host/ |
H A D | mmc_hsq.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * MMC software queue support based on command queue interfaces 10 #include <linux/mmc/card.h> 11 #include <linux/mmc/host.h> 19 struct mmc_host *mmc = hsq->mmc; in mmc_hsq_retry_handler() local 21 mmc->ops->request(mmc, hsq->mrq); in mmc_hsq_retry_handler() 26 struct mmc_host *mmc = hsq->mmc; in mmc_hsq_pump_requests() local 31 spin_lock_irqsave(&hsq->lock, flags); in mmc_hsq_pump_requests() 34 if (hsq->mrq || hsq->recovery_halt) { in mmc_hsq_pump_requests() 35 spin_unlock_irqrestore(&hsq->lock, flags); in mmc_hsq_pump_requests() [all …]
|
H A D | alcor.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright (C) 2018 Oleksij Rempel <linux@rempel-privat.de> 10 * As soon as some one with documentation or more experience in SD/MMC, or 12 * thing what I did. 2018 Oleksij Rempel <linux@rempel-privat.de> 24 #include <linux/mmc/host.h> 25 #include <linux/mmc/mmc.h> 75 struct alcor_pci_priv *priv = host->alcor_pci; in alcor_rmw8() 89 struct alcor_pci_priv *priv = host->alcor_pci; in alcor_mask_sd_irqs() 96 struct alcor_pci_priv *priv = host->alcor_pci; in alcor_unmask_sd_irqs() 106 struct alcor_pci_priv *priv = host->alcor_pci; in alcor_reset() [all …]
|
H A D | davinci_mmc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * davinci_mmc.c - TI DaVinci MMC/SD/SDIO driver 16 #include <linux/mmc/host.h> 21 #include <linux/dma-mapping.h> 22 #include <linux/mmc/mmc.h> 24 #include <linux/mmc/slot-gpio.h> 27 #include <linux/platform_data/mmc-davinci.h> 37 #define DAVINCI_MMCTOR 0x14 /* Response Time-Out Register */ 38 #define DAVINCI_MMCTOD 0x18 /* Data Read Time-Out Register */ 144 #define MAX_CCNT ((1 << 16) - 1) [all …]
|
/openbmc/linux/arch/arm64/boot/dts/mediatek/ |
H A D | mt7986a-bananapi-bpi-r3-emmc.dtso | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 7 /dts-v1/; 11 compatible = "bananapi,bpi-r3", "mediatek,mt7986a"; 14 target-path = "/soc/mmc@11230000"; 16 bus-width = <8>; 17 max-frequency = <200000000>; 18 cap-mmc-highspeed; 19 mmc-hs200-1_8v; 20 mmc-hs400-1_8v; 21 hs400-ds-delay = <0x14014>; [all …]
|
/openbmc/u-boot/include/ |
H A D | mmc.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 24 /* SD/MMC version bits; 8 flags, 8 major, 8 minor, 8 change */ 77 #define IS_SD(x) ((x)->version & SD_VERSION_SD) 78 #define IS_MMC(x) ((x)->version & MMC_VERSION_MMC) 173 #define MMC_VDD_165_195 0x00000080 /* VDD voltage 1.65 - 1.95 */ 264 #define EXT_CSD_TIMING_LEGACY 0 /* no high speed */ 336 /* Maximum block size for MMC */ 339 /* The number of MMC physical partitions. These consist of: 340 * boot partitions (2), general purpose partitions (4) in MMC v4.4. 348 * struct mmc_uclass_priv - Holds information about a device used by the uclass [all …]
|
/openbmc/u-boot/board/ti/dra7xx/ |
H A D | README | 13 example we load MLO and u-boot.img from the build into DDR and then use 14 'mmc bootbus' to set the required rate (see TRM) and 'mmc partconfig' to 16 U-Boot # setenv autoload no 17 U-Boot # usb start 18 U-Boot # dhcp 19 U-Boot # mmc dev 1 1 20 U-Boot # tftp ${loadaddr} dra7xx/MLO 21 U-Boot # mmc write ${loadaddr} 0 100 22 U-Boot # tftp ${loadaddr} dra7xx/u-boot.img 23 U-Boot # mmc write ${loadaddr} 300 400 [all …]
|
/openbmc/u-boot/board/ti/omap5_uevm/ |
H A D | README | 13 example we load MLO and u-boot.img from the build into DDR and then use 14 'mmc bootbus' to set the required rate (see TRM) and 'mmc partconfig' to 16 U-Boot # setenv autoload no 17 U-Boot # usb start 18 U-Boot # dhcp 19 U-Boot # mmc dev 1 1 20 U-Boot # tftp ${loadaddr} omap5uevm/MLO 21 U-Boot # mmc write ${loadaddr} 0 100 22 U-Boot # tftp ${loadaddr} omap5uevm/u-boot.img 23 U-Boot # mmc write ${loadaddr} 300 400 [all …]
|