4 * DSP-BIOS Bridge driver support functions for TI OMAP processors.
6 * Provides Clock functions.
8 * Copyright (C) 2005-2006 Texas Instruments, Inc.
10 * This package 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.
14 * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
15 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
16 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
39 * ======== dsp_clk_exit ========
41 * Discontinue usage of module; free resources when reference count
48 * Resources used by module are freed when cRef reaches zero.
50 extern void dsp_clk_exit(void);
53 * ======== dsp_clk_init ========
55 * Initializes private state of CLK module.
58 * TRUE if initialized; FALSE if error occured.
63 extern void dsp_clk_init(void);
65 void dsp_gpt_wait_overflow(short int clk_id, unsigned int load);
68 * ======== dsp_clk_enable ========
70 * Enables the clock requested.
74 * -EPERM: Error occured while enabling the clock.
78 extern int dsp_clk_enable(enum dsp_clk_id clk_id);
80 u32 dsp_clock_enable_all(u32 dsp_per_clocks);
83 * ======== dsp_clk_disable ========
85 * Disables the clock requested.
89 * -EPERM: Error occured while disabling the clock.
93 extern int dsp_clk_disable(enum dsp_clk_id clk_id);
95 extern u32 dsp_clk_get_iva2_rate(void);
97 u32 dsp_clock_disable_all(u32 dsp_per_clocks);
99 extern void ssi_clk_prepare(bool FLAG);