summaryrefslogtreecommitdiffstats
path: root/firmware/keyspan/usa19qw.HEX
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2014-04-27 12:22:51 +0200
committerUlf Hansson <ulf.hansson@linaro.org>2014-07-09 11:26:07 +0200
commit889c9e04f14253e9267bf72aafc298c81468c508 (patch)
tree4f131698dc2db98948f7be0d2091ef60b4517981 /firmware/keyspan/usa19qw.HEX
parentmmc: sd: warn if card stays busy during init (diff)
downloadlinux-889c9e04f14253e9267bf72aafc298c81468c508.tar.xz
linux-889c9e04f14253e9267bf72aafc298c81468c508.zip
mmc: wmt-sdmmc: Fix settting BM_EIGHTBIT_MODE bit in wmt_mci_set_ios()
For MMC_BUS_WIDTH_8 case, current code missed setting BM_EIGHTBIT_MODE bit. Also has a small refactor to make the code looks better in readability. So the bit settings witch below logic: SDMMC_BUSMODE register: Set EIGHTBIT_MODE bit for 8 bit mode, Set FOURBIT_MODE bit for 4 bit mode. Clear both EIGHTBIT_MODE and FOURBIT_MODE bits for 1 bit mode. SDMMC_EXTCTRL register: Set EXT_EIGHTBIT bit for 8 bit mode, Clear EXT_EIGHTBIT bit for 1/4 bit mode. Add define for EXT_EIGHTBIT to avoid using magic number. BM_ONEBIT_MASK is no longer used, thus remove it. This patch is untested due to lack of platform with 8-bit hardware. However since the code is there, it's good to make the code match the document. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'firmware/keyspan/usa19qw.HEX')
0 files changed, 0 insertions, 0 deletions