[xburst] Cleanup clock module a bit and replace last users of __cpm_*
[openwrt/svn-archive/archive.git] / target / linux / xburst / files-2.6.32 / arch / mips / include / asm / mach-jz4740 / clock.h
1 /*
2 * linux/include/asm-mips/mach-jz4740/clock.h
3 *
4 * JZ4740 clocks definition.
5 *
6 * Copyright (C) 2006 - 2007 Ingenic Semiconductor Inc.
7 *
8 * Author: <lhhuang@ingenic.cn>
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2 as
12 * published by the Free Software Foundation.
13 */
14
15 #ifndef __ASM_JZ4740_CLOCK_H__
16 #define __ASM_JZ4740_CLOCK_H__
17
18 #include <asm/mach-jz4740/regs.h>
19
20 enum jz4740_wait_mode
21 {
22 JZ4740_WAIT_MODE_IDLE,
23 JZ4740_WAIT_MODE_SLEEP,
24 };
25
26 int jz_init_clocks(unsigned long ext_rate);
27 void jz4740_clock_set_wait_mode(enum jz4740_wait_mode mode);
28
29 void jz4740_clock_udc_enable_auto_suspend(void);
30 void jz4740_clock_udc_disable_auto_suspend(void);
31
32 #endif /* __ASM_JZ4740_CLOCK_H__ */