999a085491d7ee979942fb2baf2e1235dceff14a
[firefly-linux-kernel-4.4.55.git] / drivers / usb / chipidea / otg.c
1 /*
2  * otg.c - ChipIdea USB IP core OTG driver
3  *
4  * Copyright (C) 2013 Freescale Semiconductor, Inc.
5  *
6  * Author: Peter Chen
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License version 2 as
10  * published by the Free Software Foundation.
11  */
12
13 /*
14  * This file mainly handles otgsc register, it may include OTG operation
15  * in the future.
16  */
17
18 #include <linux/usb/otg.h>
19 #include <linux/usb/gadget.h>
20 #include <linux/usb/chipidea.h>
21
22 #include "ci.h"
23 #include "bits.h"
24 #include "otg.h"
25
26 /**
27  * ci_hdrc_otg_init - initialize otgsc bits
28  * ci: the controller
29  */
30 int ci_hdrc_otg_init(struct ci_hdrc *ci)
31 {
32         ci_enable_otg_interrupt(ci, OTGSC_IDIE);
33
34         return 0;
35 }