projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fea966f
)
sh: Read from CCN_PVR instead of ROM for delay.
author
Stuart Menefy
<stuart.menefy@st.com>
Mon, 24 Aug 2009 08:13:52 +0000
(17:13 +0900)
committer
Paul Mundt
<lethal@linux-sh.org>
Mon, 24 Aug 2009 08:13:52 +0000
(17:13 +0900)
Reading from the ROM is not a good idea as it could disturb some
flash operation that it is in progress.
Signed-off-by: Stuart Menefy <stuart.menefy@st.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/asm/io.h
patch
|
blob
|
history
diff --git
a/arch/sh/include/asm/io.h
b/arch/sh/include/asm/io.h
index
aeecf43
..
5be45ea
100644
(file)
--- a/
arch/sh/include/asm/io.h
+++ b/
arch/sh/include/asm/io.h
@@
-92,8
+92,12
@@
static inline void ctrl_delay(void)
{
-#ifdef P2SEG
+#ifdef CONFIG_CPU_SH4
+ __raw_readw(CCN_PVR);
+#elif defined(P2SEG)
__raw_readw(P2SEG);
+#else
+#error "Need a dummy address for delay"
#endif
}