projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfe96f7
)
i.MX28: Shut down the LCD controller before reset
author
Marek Vasut
<
[email protected]
>
Tue, 1 May 2012 11:09:47 +0000
(11:09 +0000)
committer
Albert ARIBAUD
<
[email protected]
>
Tue, 15 May 2012 06:31:36 +0000
(08:31 +0200)
If the LCD controller is on before the CPU goes into reset, the traffic on LCDIF
data pins interferes with the BootROM's boot mode sampling. So shut the
controller down.
Signed-off-by: Marek Vasut <
[email protected]
>
Cc: Detlev Zundel <
[email protected]
>
Cc: Fabio Estevam <
[email protected]
>
Cc: Stefano Babic <
[email protected]
>
Cc: Wolfgang Denk <
[email protected]
>
arch/arm/cpu/arm926ejs/mx28/mx28.c
patch
|
blob
|
history
diff --git
a/arch/arm/cpu/arm926ejs/mx28/mx28.c
b/arch/arm/cpu/arm926ejs/mx28/mx28.c
index 865dbb3ffd6dfea9c1f52d72b8e80c205a7d104e..a82ff2564bdbf6c81002e63604daa5741626b02e 100644
(file)
--- a/
arch/arm/cpu/arm926ejs/mx28/mx28.c
+++ b/
arch/arm/cpu/arm926ejs/mx28/mx28.c
@@
-51,9
+51,16
@@
void reset_cpu(ulong ignored) __attribute__((noreturn));
void reset_cpu(ulong ignored)
{
-
struct mx28_rtc_regs *rtc_regs =
(struct mx28_rtc_regs *)MXS_RTC_BASE;
+ struct mx28_lcdif_regs *lcdif_regs =
+ (struct mx28_lcdif_regs *)MXS_LCDIF_BASE;
+
+ /*
+ * Shut down the LCD controller as it interferes with BootROM boot mode
+ * pads sampling.
+ */
+ writel(LCDIF_CTRL_RUN, &lcdif_regs->hw_lcdif_ctrl_clr);
/* Wait 1 uS before doing the actual watchdog reset */
writel(1, &rtc_regs->hw_rtc_watchdog);