summaryrefslogtreecommitdiff
path: root/arch/arm/mach-cns3xxx/pm.c
diff options
context:
space:
mode:
authorMac Lin <mkl0301@gmail.com>2010-11-23 00:32:44 +0800
committerAnton Vorontsov <cbouatmailru@gmail.com>2010-11-26 21:10:51 +0300
commitcf36797f35676dafae9d44484391ac7f56b2485a (patch)
treecd2b6a20e50a0ffb96411ceb0d9b0906e2faf674 /arch/arm/mach-cns3xxx/pm.c
parent38e64ba0f13918d11e50bbd5bb775781ccd6439d (diff)
ARM: cns3xxx: Add architecture definition for EHCI/OHCI controller
This patch add plateform_device for EHCI and OHCI controller on CNS3XXX. Power reference count (usb_pwr_ref) is used to control enabling and disabling the single clock control for both EHCI and OHCI controller. It also removes EHCI/OHCI unused virtual address definitions. Signed-off-by: Mac Lin <mkl0301@gmail.com> Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
Diffstat (limited to 'arch/arm/mach-cns3xxx/pm.c')
-rw-r--r--arch/arm/mach-cns3xxx/pm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-cns3xxx/pm.c b/arch/arm/mach-cns3xxx/pm.c
index c047c1a2bc2a..5e579552aa54 100644
--- a/arch/arm/mach-cns3xxx/pm.c
+++ b/arch/arm/mach-cns3xxx/pm.c
@@ -10,6 +10,7 @@
#include <linux/module.h>
#include <linux/io.h>
#include <linux/delay.h>
+#include <asm/atomic.h>
#include <mach/system.h>
#include <mach/cns3xxx.h>
#include <mach/pm.h>
@@ -118,3 +119,6 @@ int cns3xxx_cpu_clock(void)
return cpu;
}
EXPORT_SYMBOL(cns3xxx_cpu_clock);
+
+atomic_t usb_pwr_ref = ATOMIC_INIT(0);
+EXPORT_SYMBOL(usb_pwr_ref);