aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/r8a66597-udc.h
diff options
context:
space:
mode:
authorMagnus Damm <damm@igel.co.jp>2009-08-19 05:50:49 -0400
committerPaul Mundt <lethal@linux-sh.org>2009-08-19 21:30:11 -0400
commitd2e27bdf2870e507dd4abba1f56ca84ee6ae7232 (patch)
tree9452f67c644907bdaab59d663b3e91dc74c611b1 /drivers/usb/gadget/r8a66597-udc.h
parentc41442474a26984abaa094e96e42182868eab658 (diff)
usb: add clock support to r8a66597 gadget driver
Add support for the clock framework to the r8a66597 gadget driver. This is needed to control the clock driving the USB block. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/usb/gadget/r8a66597-udc.h')
-rw-r--r--drivers/usb/gadget/r8a66597-udc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/usb/gadget/r8a66597-udc.h b/drivers/usb/gadget/r8a66597-udc.h
index a2464bf337c8..7d9a325e7b6d 100644
--- a/drivers/usb/gadget/r8a66597-udc.h
+++ b/drivers/usb/gadget/r8a66597-udc.h
@@ -23,6 +23,10 @@
23#ifndef __R8A66597_H__ 23#ifndef __R8A66597_H__
24#define __R8A66597_H__ 24#define __R8A66597_H__
25 25
26#ifdef CONFIG_HAVE_CLK
27#include <linux/clk.h>
28#endif
29
26#include <linux/usb/r8a66597.h> 30#include <linux/usb/r8a66597.h>
27 31
28#define R8A66597_MAX_SAMPLING 10 32#define R8A66597_MAX_SAMPLING 10
@@ -88,6 +92,9 @@ struct r8a66597 {
88 spinlock_t lock; 92 spinlock_t lock;
89 unsigned long reg; 93 unsigned long reg;
90 94
95#ifdef CONFIG_HAVE_CLK
96 struct clk *clk;
97#endif
91 struct r8a66597_platdata *pdata; 98 struct r8a66597_platdata *pdata;
92 99
93 struct usb_gadget gadget; 100 struct usb_gadget gadget;