summaryrefslogtreecommitdiff
path: root/board/st-ericsson
diff options
context:
space:
mode:
authorƁukasz Majewski <l.majewski@samsung.com>2013-01-11 05:08:54 +0000
committerMinkyu Kang <mk7.kang@samsung.com>2013-03-12 19:50:49 +0900
commitce0c1bc13556fbf1bdfa2a4a27ca6744e7beb32a (patch)
treea89e86d1ba98b260055ae5d708dd2805f2ad2d8d /board/st-ericsson
parentd4ea072ca633d3acb9b74281f05fc30a7e6cda73 (diff)
downloadu-boot-imx-ce0c1bc13556fbf1bdfa2a4a27ca6744e7beb32a.zip
u-boot-imx-ce0c1bc13556fbf1bdfa2a4a27ca6744e7beb32a.tar.gz
u-boot-imx-ce0c1bc13556fbf1bdfa2a4a27ca6744e7beb32a.tar.bz2
mmc:sdhci:fix: Change default interrupts enabled at SDHCI initialization
This patch changes sdhci_init()'s behavior to NOT enable all interrupt sources by default. Moreover interrupt signaling has been disabled. This patch do not enable interrupts which aren't served in u-boot (they are defined at sdhci.h but NOT used elsewhere): - SDHCI_INT_CARD_INSERT, SDHCI_INT_CARD_REMOVE, SDHCI_BUS_POWER, SDHCI_INT_CARD_REMOVE, SDHCI_INT_CARD_INT Special care shall be put on SDHCI_INT_CARD_INT, which indicates interrupt generated by SD card. According to "SD Host Controller Simplified Spec. ver 3.00" when bit 8 (Card Interrupt Status Enable) at "Normal Interrupt Status Enable Register" (offset 0x34) is set, the card interrupt detection is started. Then eMMC card may cause the SD controller to set this bit and then this interrupt is passed to booted OS and might cause kernel crash. To sum up: - Only enable interrupts, which are served at u-boot - This cleanup as a side effect fixes SDHCI's CARD INTERRUPT problem at Linux kernel (versions 3.6+, sdhci controller) - Keep masked bits at "Normal Interrupt Signal Enable Register" (0x38h) Signed-off-by: Lukasz Majewski <l.majewski@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Cc: Lei Wen <leiwen@marvell.com> Cc: Andy Fleming <afleming@freescale.com> Acked-by: Jaehoon Chung <jh80.chung@samsung.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'board/st-ericsson')
0 files changed, 0 insertions, 0 deletions