usb: chipidea: otg: add otg file used to access otgsc
This file is mainly used to access otgsc currently, it may add otg related things in the future. Tested-by: Marek Vasut <marex@denx.de> Signed-off-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
d66895f9df
commit
c10b4f033e
35
drivers/usb/chipidea/otg.c
Normal file
35
drivers/usb/chipidea/otg.c
Normal file
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* otg.c - ChipIdea USB IP core OTG driver
|
||||
*
|
||||
* Copyright (C) 2013 Freescale Semiconductor, Inc.
|
||||
*
|
||||
* Author: Peter Chen
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* published by the Free Software Foundation.
|
||||
*/
|
||||
|
||||
/*
|
||||
* This file mainly handles otgsc register, it may include OTG operation
|
||||
* in the future.
|
||||
*/
|
||||
|
||||
#include <linux/usb/otg.h>
|
||||
#include <linux/usb/gadget.h>
|
||||
#include <linux/usb/chipidea.h>
|
||||
|
||||
#include "ci.h"
|
||||
#include "bits.h"
|
||||
#include "otg.h"
|
||||
|
||||
/**
|
||||
* ci_hdrc_otg_init - initialize otgsc bits
|
||||
* ci: the controller
|
||||
*/
|
||||
int ci_hdrc_otg_init(struct ci_hdrc *ci)
|
||||
{
|
||||
ci_enable_otg_interrupt(ci, OTGSC_IDIE);
|
||||
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user