summaryrefslogtreecommitdiff
path: root/include/common.h
diff options
context:
space:
mode:
authorJuhyun \(Justin\) Oh <Juhyun_Oh@sigmadesigns.com>2013-09-13 18:06:00 +0000
committerPantelis Antoniou <panto@antoniou-consulting.com>2013-09-20 19:02:29 +0300
commit2c011847c129491084a19c753a039a3441b7dce4 (patch)
tree4d322d8528690691506217f44942c8506a89e8a3 /include/common.h
parente8232fea41be712bfe894abbff08c39015d8d5d2 (diff)
downloadu-boot-imx-2c011847c129491084a19c753a039a3441b7dce4.zip
u-boot-imx-2c011847c129491084a19c753a039a3441b7dce4.tar.gz
u-boot-imx-2c011847c129491084a19c753a039a3441b7dce4.tar.bz2
Fix wrong sdhci host control register read and write
The patch fixes the improper read and write of sdhci host control register for sdma transfer. The problem comes when reading and writing 1 byte long host control register with the sdhci_readl() and sdhci_writel(). The misuse of these functions overwrite the value of the next registers which are in 4 bytes boundary. This patch replaces four byte register read/write functions with one byte read/write ones. Beside, it eliminates unnecessary bit operation. i.e. or-ing zero against a variable. Signed-off-by: Juhyun (Justin) Oh <Juhyun_Oh@sigmadesigns.com>
Diffstat (limited to 'include/common.h')
0 files changed, 0 insertions, 0 deletions