- Sep 30, 2011
-
-
Balaji T K authored
Config VMMC voltage to 3V for MMC/SD card slot and PBIAS settings needed for OMAP4 Fixes MMC/SD detection on boot from eMMC. Signed-off-by:
Balaji T K <balajitk@ti.com> Signed-off-by:
Aneesh V <aneesh@ti.com> Signed-off-by:
Sandeep Paulraj <s-paulraj@ti.com>
-
Balaji T K authored
Enable high capacity to host capability. Fixes eMMC detection on boot from MMC/SD card. Signed-off-by:
Balaji T K <balajitk@ti.com> Signed-off-by:
Aneesh V <aneesh@ti.com> Acked-by:
Simon Glass <sjg@chromium.org> Signed-off-by:
Sandeep Paulraj <s-paulraj@ti.com>
-
- Sep 04, 2011
-
-
Macpaul Lin authored
Faraday FTSDC010 controller is a SD/MMC controller for SoC chip. Signed-off-by:
Macpaul Lin <macpaul@andestech.com>
-
Marek Vasut authored
The mmc_send_status() function sets cmd.arg = 0. That's incorrect, so fix it. Signed-off-by:
Marek Vasut <marek.vasut@gmail.com> Acked-by:
Andy Fleming <afleming@freescale.com> Tested-by:
Lei Wen <adrian.wenl@gmail.com>
-
Tom Rini authored
Now that all platforms have been migrated to the new MMC driver, remove the old one. Signed-off-by:
Tom Rini <trini@ti.com> Signed-off-by:
Sandeep Paulraj <s-paulraj@ti.com>
-
- Sep 03, 2011
-
-
Anton Staaf authored
Currently if a DMA buffer straddles a buffer alignment boundary (512KiB) then the DMA engine will pause and generate a DMA interrupt. Since the DMA interrupt is not enabled it will hang the MMC driver. This patch adds support for restarting the DMA transfer. The SYSTEM_ADDRESS register contains the next address that would have been read/written when a boundary is hit. So we can read that and write it back. The write triggers the resumption of the transfer. Signed-off-by:
Anton Staaf <robotboy@chromium.org> Signed-off-by:
Minkyu Kang <mk7.kang@samsung.com> Tested-by : Jaehoon Chung <jh80.chung@samsung.com> Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
-
- Jul 29, 2011
-
-
Andy Fleming authored
This reverts commit c310fc84. The Atmel custodian had apparently rejected this patch's approach in another thread, so this patch reverts it for now. Signed-off-by:
Andy Fleming <afleming@freescale.com>
-
- Jul 26, 2011
-
-
Matthew McClintock authored
If we don't want to build support for any partition types we can now add #undef CONFIG_PARTITIONS in a board config file to keep this from being compiled in. Otherwise boards assume this is compiled in by default Signed-off-by:
Matthew McClintock <msm@freescale.com>
-
- Jul 16, 2011
-
-
elen.song authored
According to datasheet,set block count before multiple read/write. Signed-off-by:
elen.song <elen.song@atmel.com> Acked-by:
Andy Fleming <afleming@freescale.com>
-
Łukasz Majewski authored
This patch provides handling of the two way handshake when SEND_OP_COND (CMD1) is send to mmc card. It is necessary to inform eMMC card if the host can work with high capacity cards (Jedec JESD84-A441, point 7.4.3). The extra flag MMC_MODE_HC (high capacity) is added to indicate if the host is capable of handling the high capacity eMMC cards. Since this change is added to the generic mmc framework, then it requires other boards to indicate if their mmc controllers can handle high capacity cards. As it is now - the old behaviour of the framework is preserved. Signed-off-by:
Lukasz Majewski <l.majewski@samsung.com> Signed-off-by:
Andy Fleming <afleming@freescale.com>
-
Yoshihiro Shimoda authored
Some Renesas SuperH have MMCIF module. This driver supports it. Signed-off-by:
Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Acked-by:
Andy Fleming <afleming@freescale.com>
-
Yoshihiro Shimoda authored
Fix the problem that if we use the chip of MMC version 4 and the capacity is smaller than 2GB or equal, the mmc->capacity is invalid. According to the JEDEC Standard, the value of ext_csd's capacity is valid if the value is more than 2GB. Signed-off-by:
Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Acked-by:
Andy Fleming <afleming@freescale.com>
-
Lei Wen authored
This could support both armada100 and pantheon serial in the mainline, while this driver also be tested to support upcoming mg, mmp2 and mmp3 hardware. Signed-off-by:
Lei Wen <leiwen@marvell.com> Acked-by:
Andy Fleming <afleming@freescale.com>
-
Lei Wen authored
Nowdays, there are plenty of mmc driver in uboot adopt the sd standard host design, aka as sdhci. It is better to centralize the common logic together to better maintenance. Signed-off-by:
Lei Wen <leiwen@marvell.com> Acked-by:
Andy Fleming <afleming@freescale.com>
-
Lei Wen authored
Erase is a very basic function since the begin of sd specification is announced. Although we could write a bulk of full 0xff memory to the range to take place of erase, it is more convenient and safe to implement the erase function itself. Signed-off-by:
Lei Wen <leiwen@marvell.com> Signed-off-by:
Andy Fleming <afleming@freescale.com> Acked-by:
Mike Frysinger <vapier@gentoo.org>
-
Tom Warren authored
Signed-off-by:
Tom Warren <twarren@nvidia.com> Acked-by:
Andy Fleming <afleming@freescale.com>
-
- May 26, 2011
-
-
Jaehoon Chung authored
This patch added set_mmc_clk for external clock control. c210 didn't support host clock control. So We need external_clock_control function for c210. Signed-off-by:
Jaehoon Chung <jh80.chung@samsung.com> Signed-off-by:
Minkyu Kang <mk7.kang@samsung.com> Signed-off-by:
Kyungmin Park <kyungmin.park@samsung.com>
-
Dirk Behme authored
Fix typo resulting in the compilation error s5p_mmc.c: In function 's5p_mmc_initialize': s5p_mmc.c:469: error: 'struct mmc' has no member named 'm_bmax' introduced by commit "MMC: make b_max unconditional" (8feafcc4) Signed-off-by:
Dirk Behme <dirk.behme@googlemail.com> CC: John Rigby <john.rigby@linaro.org> CC: Andy Fleming <afleming@freescale.com> Signed-off-by:
Minkyu Kang <mk7.kang@samsung.com>
-
- May 19, 2011
-
-
Wolfgang Denk authored
Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- May 18, 2011
-
-
Dirk Behme authored
Add missing header file to fix compilation warning omap_hsmmc.c: In function 'omap_mmc_init': omap_hsmmc.c:474: warning: implicit declaration of function 'get_cpu_family' omap_hsmmc.c:474: warning: implicit declaration of function 'get_cpu_rev' introduced by commit "MMC: omap_hsmmc.c: disable multiblock rw on old rev omap34xx silicon" (4ca9244d) Signed-off-by:
Dirk Behme <dirk.behme@googlemail.com> CC: Andy Fleming <afleming@freescale.com> CC: John Rigby <john.rigby@linaro.org>
-
Fabio Estevam authored
commit 262951(MMC: make b_max unconditional) missed to update fsl_esdhc. Signed-off-by:
Fabio Estevam <fabio.estevam@freescale.com> Acked-by:
Stefano Babic <sbabic@denx.de>
-
Lei Wen authored
For emmc, it may have up to 7 partitions: two boot partitions, one user partition, one RPMB partition and four general purpose partitions. (Refer to JESD84-A44.pdf/page 154) As bootloader may need to read out or reflashing images on those different partitions, it is better to enable the partition switch with console command support. Also for partition would be restore to user partition(part 0) when CMD0 is used, so change mmc_init routine to perform normal initialization only once for each slot, unless use the rescan command to force init again. Signed-off-by:
Lei Wen <leiwen@marvell.com> Acked-by:
Andy Fleming <afleming@freescale.com>
-
Lei Wen authored
mmc command applied device, like ide and usb... Signed-off-by:
Lei Wen <leiwen@marvell.com> Acked-by:
Andy Fleming <afleming@freescale.com>
-
Thomas Chou authored
A "send status" command is added with the commit "mmc: checking status after commands with R1b response". But the status register returned from send status command of SPI protocol is different from that of MMC/SD protocol. We do a simple test and generate a response in stead of full bit-by-bit translation. Signed-off-by:
Thomas Chou <thomas@wytron.com.tw>
-
Reinhard Meyer authored
Signed-off-by:
Reinhard Meyer <u-boot@emk-elektronik.de>
-
Andreas Bießmann authored
Signed-off-by:
Andreas Bießmann <biessmann@corscience.de>
-
Andreas Bießmann authored
Signed-off-by:
Andreas Bießmann <biessmann@corscience.de>
-
- Apr 29, 2011
-
-
Jason Liu authored
For freescale i.MX53 eSDHCv2, when using CMD12, cmdtype need to be set to ABORT, otherwise, next read command will hang. This is a software Software Restrictions in i.MX53 reference manual: 29.7.8 Multi-block Read For pre-defined multi-block read operation, that is,the number of blocks to read has been defined by previous CMD23 for MMC, or pre-defined number of blocks in CMD53 for SDIO/SDCombo,or whatever multi-block read without abort command at card side, an abort command, either automatic or manual CMD12/CMD52, is still required by ESDHC after the pre-defined number of blocks are done, to drive the internal state machine to idle mode. In this case, the card may not respond to this extra abort command and ESDHC will get Response Timeout. It is recommended to manually send an abort command with RSPTYP[1:0] both bits cleared. Signed-off-by:
Jason Liu <jason.hui@linaro.org>
-
John Rigby authored
Signed-off-by:
John Rigby <john.rigby@linaro.org>
-
John Rigby authored
Make existing field b_max field in struct mmc unconditional and use it instead of CONFIG_SYS_MMC_MAX_BLK_COUNT in mmc_bread and mmc_bwrite. Initialize b_max to CONFIG_SYS_MMC_MAX_BLK_COUNT in mmc_register if it has not been initialized by the hw driver. Initialize b_max to 0 in all callers to mmc_register. Signed-off-by:
John Rigby <john.rigby@linaro.org> Signed-off-by:
Andy Fleming <afleming@freescale.com>
-
Matt Waddel authored
Add support for the ARM PrimeCell MultiMedia Interface - PL180. Ported from original device driver written by ST-Ericsson. Signed-off-by:
Matt Waddel <matt.waddel@linaro.org>
-
- Apr 13, 2011
-
-
Raffaele Recalcati authored
Hi Terry, > So I guess: > mmc_init calls mmc_send_op_cond that set high_capacity, > than it calls mmc_startup, that, with MMC_CMD_SEND_CSD command, set > the capacity, using values in CSD register. > So I guess that mmc_change_freq should not recalculate high_capacity. > > It seems better, isn't it? > > Regards, > Raffaele > Finally I think that it is enough to apply the following patch in order to fix the issue. Regards, Raffaele Signed-off-by:
Andy Fleming <afleming@freescale.com>
-
Raffaele Recalcati authored
Defining CONFIG_MMC_TRACE in the include board file it is possible to activate a tracing support. This code helps in case of eMMC hw failure or to investigate possible eMMC initialization issues. Signed-off-by:
Raffaele Recalcati <raffaele.recalcati@bticino.it> Signed-off-by:
Andy Fleming <afleming@freescale.com>
-
Raffaele Recalcati authored
The first SEND_OP_COND (CMD1) command added is used to ask card capabilities. After it an AND operation is done between card capabilities and host capabilities (at the moment only for the voltage field). Finally the correct value is sent to the MMC, waiting that the card exits from busy state. Signed-off-by:
Raffaele Recalcati <raffaele.recalcati@bticino.it> Signed-off-by:
Andy Fleming <afleming@freescale.com>
-
Raffaele Recalcati authored
It is recommended to check card status after these kind of commands. This is done using CMD13 (SEND_STATUS) JEDEC command until the card is ready. In case of error the card status field is displayed. Signed-off-by:
Raffaele Recalcati <raffaele.recalcati@bticino.it> Signed-off-by:
Andy Fleming <afleming@freescale.com>
-
Minkyu Kang authored
Signed-off-by:
Minkyu Kang <mk7.kang@samsung.com> Signed-off-by:
Andy Fleming <afleming@freescale.com>
-
Thomas Chou authored
This patch supports mmc/sd card with spi interface. It is based on the generic mmc framework. It works with SDHC and supports multi blocks read/write. The crc checksum on data packet is enabled with the def, There is a subcomamnd "mmc_spi" to setup spi bus and cs at run time. Signed-off-by:
Thomas Chou <thomas@wytron.com.tw> Signed-off-by:
Andy Fleming <afleming@freescale.com>
-
Mike Frysinger authored
These local vars need not be writable nor exported. Signed-off-by:
Mike Frysinger <vapier@gentoo.org> Signed-off-by:
Andy Fleming <afleming@freescale.com>
-
Frans Meulenbroeks authored
As DATA_ERROR includes the value IRQSTAT_DTOE, a timeout error would yield the first error return instead of TIMEOUT. By swapping the test TIMEOUTs are reported as such An alternate solution would be to remove the IRQSTAT_DTOE from the DATA_ERROR define but as that one might be less desired I've opted for the simplest solution Signed-off-by:
Frans Meulenbroeks <fransmeulenbroeks@gmail.com> Signed-off-by:
Andy Fleming <afleming@freescale.com>
-
Matt Waddel authored
The maximum blocks value was hardcoded to 65535 due to a 16 bit register length. The value can change for different platforms. This patch makes the default the current value of 65535, but it is configurable for other platforms. Signed-off-by:
Matt Waddel <matt.waddel@linaro.org> Signed-off-by:
Andy Fleming <afleming@freescale.com>
-