diff options
author | Haijun Zhang <Haijun.Zhang@freescale.com> | 2013-12-19 02:22:15 (GMT) |
---|---|---|
committer | Jose Rivera <German.Rivera@freescale.com> | 2014-01-10 20:23:55 (GMT) |
commit | fa9e23049a60faffd165d772d784ca4ff3336148 (patch) | |
tree | c32c8c0faaa6c5bc82db298ffd7f4528993bd956 /crypto/lz4hc.c | |
parent | be8deebaf8a4472e204723ece841f43fabe7f98f (diff) | |
download | linux-fsl-qoriq-fa9e23049a60faffd165d772d784ca4ff3336148.tar.xz |
esdhc: Workaround for eSDHC clock glitch issue
A-003980: SDHC: Glitch is generated on the card clock with software reset or
clock divider change
Description: A glitch may occur on the SDHC card clock when the software sets
the RSTA bit (software reset) in the system control register. It can also be
generated by setting the clock divider value. The glitch produced can cause
the external card to switch to an unknown state. The occurrence is not
deterministic.
Workaround:
A simple workaround is to disable the SD card clock before the software reset,
and enable it when the module resumes normal operation.
The Host and the SD card are in a master-slave relationship. The Host provides
clock and control transfer across the interface. Therefore, any existing
operation is discarded when the Host controller is reset.
The recommended flow is as follows:
1. Software disable bit[3], SDCLKEN, of the System Control Register
2. Trigger software reset and/or set clock divider
3. Check bit[3], SDSTB, of the Present State Register for stable clock
4. Enable bit[3], SDCLKEN, of the System Control Register
Using the above method, the eSDHC cannot send command or transfer data when
there is a glitch in the clock line, and the glitch does not cause any issue.
Signed-off-by: Haijun Zhang <haijun.zhang@freescale.com>
Change-Id: I43a6ef8fdffeeeb13bfef215825d417778ce0bf3
Reviewed-on: http://git.am.freescale.net:8181/5916
Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
Reviewed-by: Xiaobo Xie <X.Xie@freescale.com>
Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
Diffstat (limited to 'crypto/lz4hc.c')
0 files changed, 0 insertions, 0 deletions