diff options
author | Magnus Damm <damm@igel.co.jp> | 2009-08-19 13:50:49 +0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-08-20 05:30:11 +0400 |
commit | d2e27bdf2870e507dd4abba1f56ca84ee6ae7232 (patch) | |
tree | 9452f67c644907bdaab59d663b3e91dc74c611b1 /drivers/usb/gadget/r8a66597-udc.h | |
parent | c41442474a26984abaa094e96e42182868eab658 (diff) | |
download | linux-d2e27bdf2870e507dd4abba1f56ca84ee6ae7232.tar.xz |
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.h | 7 |
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 @@ #ifndef __R8A66597_H__ #define __R8A66597_H__ +#ifdef CONFIG_HAVE_CLK +#include <linux/clk.h> +#endif + #include <linux/usb/r8a66597.h> #define R8A66597_MAX_SAMPLING 10 @@ -88,6 +92,9 @@ struct r8a66597 { spinlock_t lock; unsigned long reg; +#ifdef CONFIG_HAVE_CLK + struct clk *clk; +#endif struct r8a66597_platdata *pdata; struct usb_gadget gadget; |