summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorEric Miao <eric.miao@marvell.com>2008-10-04 12:45:39 +0800
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-10-07 19:12:58 +0100
commit0cb0b0d3c6ebb8215500685a1f70a45bbbdc8e47 (patch)
treecd19d09b768377f0db57fa52bb70fa9b03431520 /arch
parent84bab7393b0da5086e133b7f333b800d26f7166b (diff)
downloadblackbird-op-linux-0cb0b0d3c6ebb8215500685a1f70a45bbbdc8e47.tar.gz
blackbird-op-linux-0cb0b0d3c6ebb8215500685a1f70a45bbbdc8e47.zip
[ARM] ohci-pxa27x: introduce pxa27x_clear_otgph()
Direct access to pxa27x specific register PSSR in a generic ohci driver is no good, introduce pxa27x_clear_otgph() and move the implementation into processor specific code. Signed-off-by: Eric Miao <eric.miao@marvell.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-pxa/pxa27x.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/pxa27x.c b/arch/arm/mach-pxa/pxa27x.c
index bf01e14098f5..3e4ab2279c99 100644
--- a/arch/arm/mach-pxa/pxa27x.c
+++ b/arch/arm/mach-pxa/pxa27x.c
@@ -34,6 +34,13 @@
#include "devices.h"
#include "clock.h"
+void pxa27x_clear_otgph(void)
+{
+ if (cpu_is_pxa27x() && (PSSR & PSSR_OTGPH))
+ PSSR |= PSSR_OTGPH;
+}
+EXPORT_SYMBOL(pxa27x_clear_otgph);
+
/* Crystal clock: 13MHz */
#define BASE_CLK 13000000
OpenPOWER on IntegriCloud