| #
0158126e |
| 14-Oct-2010 |
Lei Wen <leiwen@marvell.com> |
mmc: seperate block number into small parts for multi-write cmd
Constraint the mmc framework to only send no more than 65535 blocks in one go during the multi-write command. This constraint comes du
mmc: seperate block number into small parts for multi-write cmd
Constraint the mmc framework to only send no more than 65535 blocks in one go during the multi-write command. This constraint comes due to the limitation of 16bit width block counter register at some hardware.
Signed-off-by: Lei Wen <leiwen@marvell.com> Cc: Reinhard Meyer <u-boot@emk-elektronik.de>
show more ...
|
| #
cacc342d |
| 17-Oct-2010 |
Wolfgang Denk <wd@denx.de> |
Merge branch 'master' of git://git.denx.de/u-boot-arm
|
| #
d23e2c09 |
| 20-Sep-2010 |
Sukumar Ghorai <s-ghorai@ti.com> |
MMC: Fix for capacity calculation on eMMC
The current mmc driver returns erroneous capacity information for eMMC. The capacity of eMMC devices is available only in the ext-CSD register. This
MMC: Fix for capacity calculation on eMMC
The current mmc driver returns erroneous capacity information for eMMC. The capacity of eMMC devices is available only in the ext-CSD register. This patch add code to read the ext-CDSD register and correctly calculate eMMC capacity.
Signed-off-by: Sukumar Ghorai <s-ghorai@ti.com> Acked-by: Steve Sakoman <steve@sakoman.com>
show more ...
|
| #
0cc89de8 |
| 21-Sep-2010 |
Wolfgang Denk <wd@denx.de> |
Merge branch 'master' of /home/wd/git/u-boot/master
|
| #
fe64fd42 |
| 18-Sep-2010 |
Wolfgang Denk <wd@denx.de> |
mmc: fix compiler warnings
Commit d2bf29e3 caused a number of compiler warnings:
mmc.c: In function 'mmc_bwrite': mmc.c:97: warning: format '%x' expects type 'unsigned int', but argument 2 has type
mmc: fix compiler warnings
Commit d2bf29e3 caused a number of compiler warnings:
mmc.c: In function 'mmc_bwrite': mmc.c:97: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'long unsigned int' mmc.c:97: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'lbaint_t' mmc.c: In function 'mmc_bread': mmc.c:229: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'long unsigned int' mmc.c:229: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'lbaint_t'
Fix these.
Signed-off-by: Wolfgang Denk <wd@denx.de> Cc: Lei Wen <leiwen@marvell.com>
show more ...
|
| #
d2bf29e3 |
| 13-Sep-2010 |
Lei Wen <leiwen@marvell.com> |
mmc: add boundary check for mmc operation
Signed-off-by: Lei Wen <leiwen@marvell.com>
|
| #
45e56533 |
| 23-Mar-2010 |
Minkyu Kang <mk7.kang@samsung.com> |
Merge branch 'master' of git://git.denx.de/u-boot-arm
Conflicts:
cpu/arm920t/ep93xx/timer.c
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
|
| #
995a4b1d |
| 15-Mar-2010 |
Minkyu Kang <mk7.kang@samsung.com> |
Merge branch 'master' of git://git.denx.de/u-boot-arm
Conflicts:
board/davinci/da830evm/da830evm.c board/edb93xx/sdram_cfg.c board/esd/otc570/otc570.c board/netstar/eeprom.c board/netstar/eepr
Merge branch 'master' of git://git.denx.de/u-boot-arm
Conflicts:
board/davinci/da830evm/da830evm.c board/edb93xx/sdram_cfg.c board/esd/otc570/otc570.c board/netstar/eeprom.c board/netstar/eeprom_start.S cpu/arm920t/ep93xx/timer.c include/configs/netstar.h include/configs/otc570.h
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
show more ...
|
| #
8c4444ff |
| 11-Mar-2010 |
Wolfgang Denk <wd@denx.de> |
Fix memory leak in mmc_read()
There is be a path through mmc_read in drivers/mmc/mmc.c where malloc'd memory is not freed before exiting mmc_read: it occurs if mmc_set_blocklen() returns a non-zero
Fix memory leak in mmc_read()
There is be a path through mmc_read in drivers/mmc/mmc.c where malloc'd memory is not freed before exiting mmc_read: it occurs if mmc_set_blocklen() returns a non-zero value.
Reported-by: Quentin Armitage <Quentin@Armitage.org.uk> Signed-off-by: Wolfgang Denk <wd@denx.de>
show more ...
|
| #
11fdade2 |
| 05-Feb-2010 |
Stefano Babic <sbabic@denx.de> |
MMC: add weak function to detect MMC/SD card
Most controllers can check if there is a card in the slot. However, they require pins that could be not available because required by other functions and
MMC: add weak function to detect MMC/SD card
Most controllers can check if there is a card in the slot. However, they require pins that could be not available because required by other functions and the detection of a card must be performed in another way. This patch adds a weak function that a board can implement to add its internal custom way to check the presence of a MMC/SD card.
Signed-off-by: Stefano Babic <sbabic@denx.de>
show more ...
|
| #
250de12b |
| 20-Jan-2010 |
Stefano Babic <sbabic@denx.de> |
mmc: check correctness of the voltage mask in ocr
Most cards do not answer if some reserved bits in the ocr are set. However, some controllers can set bit 7 (reserved for low voltages), but how to m
mmc: check correctness of the voltage mask in ocr
Most cards do not answer if some reserved bits in the ocr are set. However, some controllers can set bit 7 (reserved for low voltages), but how to manage low voltages SD card is not yet specified.
Signed-off-by: Stefano Babic <sbabic@denx.de>
show more ...
|
| #
b86b85e2 |
| 29-Jun-2009 |
Ilya Yanok <yanok@emcraft.com> |
mmc: set bus width to 1 and clock to minimum early during initialization
We need to switch back to 1-bit before initialization or SD 2.0 cards will fail to send SCR if we've switched to 4-bit alread
mmc: set bus width to 1 and clock to minimum early during initialization
We need to switch back to 1-bit before initialization or SD 2.0 cards will fail to send SCR if we've switched to 4-bit already.
Signed-off-by: Ilya Yanok <yanok@emcraft.com>
show more ...
|
| #
3bc8556f |
| 04-Jun-2009 |
Wolfgang Denk <wd@denx.de> |
Merge branch 'master' of git://git.denx.de/u-boot-mmc
|
| #
b81830f6 |
| 14-May-2009 |
Ilya Yanok <yanok@emcraft.com> |
mmc: it's safe to ignore mmc_send_if_cond() return value
Return value of mmc_send_if_cond() can be safely ignored (as it is done in Linux). This makes older cards work with MXC MCI controller.
Sign
mmc: it's safe to ignore mmc_send_if_cond() return value
Return value of mmc_send_if_cond() can be safely ignored (as it is done in Linux). This makes older cards work with MXC MCI controller.
Signed-off-by: Ilya Yanok <yanok@emcraft.com>
show more ...
|
| #
4e3d89ba |
| 06-May-2009 |
Yauhen Kharuzhy <jekhor@gmail.com> |
mmc: Fix decoding of SCR & function switch data on little-endian machines
SCR & switch data are read from card as big-endian words and should be converted to CPU byte order.
Signed-off-by: Yauhen K
mmc: Fix decoding of SCR & function switch data on little-endian machines
SCR & switch data are read from card as big-endian words and should be converted to CPU byte order.
Signed-off-by: Yauhen Kharuzhy <jekhor@gmail.com> Signed-off-by: Andy Fleming <afleming@freescale.com>
show more ...
|
| #
f33cb34b |
| 07-May-2009 |
Yauhen Kharuzhy <jekhor@gmail.com> |
mmc: Remove return from mmc_init for non SD 2.0 compatible cards.
Cards which are not compatible with SD 2.0 standard, may return response for CMD8 command, but it will be invalid in terms of SD 2.0
mmc: Remove return from mmc_init for non SD 2.0 compatible cards.
Cards which are not compatible with SD 2.0 standard, may return response for CMD8 command, but it will be invalid in terms of SD 2.0. We should accept this case as admissible, just like Linux does.
Signed-off-by: Yauhen Kharuzhy <jekhor@gmail.com> Signed-off-by: Andy Fleming <afleming@freescale.com>
show more ...
|
| #
998be3dd |
| 05-Apr-2009 |
Rabin Vincent <rabin@rab.in> |
mmc: drop unnecessary casts
Now that response is a uint, we can drop all the casts.
Signed-off-by: Rabin Vincent <rabin@rab.in>
|
| #
0b453ffe |
| 05-Apr-2009 |
Rabin Vincent <rabin@rab.in> |
mmc: fix response decoding on little endian
The mmc code defines the response as an array of chars. However, it access the response bytes both as (i) an array of four uints (with casts) and (ii) as
mmc: fix response decoding on little endian
The mmc code defines the response as an array of chars. However, it access the response bytes both as (i) an array of four uints (with casts) and (ii) as individual chars. The former case is used more often, including by the driver when it assigns the response.
The char-wise accesses are broken on little endian systems because they assume that the bytes in the uints are in big endian byte order.
This patch fixes this by changing the response to be an array of four uints and replacing the char-wise accesses with equivalent uint-wise accesses.
Signed-off-by: Rabin Vincent <rabin@rab.in>
show more ...
|
| #
9b1f942c |
| 05-Apr-2009 |
Rabin Vincent <rabin@rab.in> |
mmc: use lldiv to fix arm eabi build
The generic MMC core uses direct long long divisions, which do not build with ARM EABI toolchains. Use lldiv() instead, which works everywhere.
Signed-off-by:
mmc: use lldiv to fix arm eabi build
The generic MMC core uses direct long long divisions, which do not build with ARM EABI toolchains. Use lldiv() instead, which works everywhere.
Signed-off-by: Rabin Vincent <rabin@rab.in>
show more ...
|
| #
e85649c7 |
| 05-Apr-2009 |
Rabin Vincent <rabin@rab.in> |
mmc: check find_mmc_device return value
find_mmc_device returns NULL if an invalid device number is specified. Check for this to avoid dereferencing NULL pointers.
Signed-off-by: Rabin Vincent <rab
mmc: check find_mmc_device return value
find_mmc_device returns NULL if an invalid device number is specified. Check for this to avoid dereferencing NULL pointers.
Signed-off-by: Rabin Vincent <rabin@rab.in>
show more ...
|
| #
f9a109b3 |
| 20-Apr-2009 |
Peter Tyser <ptyser@xes-inc.com> |
Replace __attribute references with __attribute__
__attribute__ follows gcc's documented syntax and is generally more common than __attribute. This change is only asthetic and should not affect fun
Replace __attribute references with __attribute__
__attribute__ follows gcc's documented syntax and is generally more common than __attribute. This change is only asthetic and should not affect functionality.
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
show more ...
|
| #
272cc70b |
| 30-Oct-2008 |
Andy Fleming <afleming@freescale.com> |
Add MMC Framework
Here's a new framework (based roughly off the linux one) for managing MMC controllers. It handles all of the standard SD/MMC transactions, leaving the host drivers to implement on
Add MMC Framework
Here's a new framework (based roughly off the linux one) for managing MMC controllers. It handles all of the standard SD/MMC transactions, leaving the host drivers to implement only what is necessary to deal with their specific hardware.
This also hooks the infrastructure into the PowerPC board code (similar to how the ethernet infrastructure now hooks in)
Some of this code was contributed by Dave Liu <daveliu@freescale.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
show more ...
|