Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7d9c0351 authored by Stuart Menefy's avatar Stuart Menefy Committed by Paul Mundt
Browse files

sh: Read from CCN_PVR instead of ROM for delay.



Reading from the ROM is not a good idea as it could disturb some
flash operation that it is in progress.

Signed-off-by: default avatarStuart Menefy <stuart.menefy@st.com>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent fea966f7
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line Diff line number Diff line
@@ -92,8 +92,12 @@


static inline void ctrl_delay(void)
static inline void ctrl_delay(void)
{
{
#ifdef P2SEG
#ifdef CONFIG_CPU_SH4
	__raw_readw(CCN_PVR);
#elif defined(P2SEG)
	__raw_readw(P2SEG);
	__raw_readw(P2SEG);
#else
#error "Need a dummy address for delay"
#endif
#endif
}
}