Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

235 lines (226 sloc) 5.941 kb
/*
*
* @Component OMAPCONF
* @Filename clock44xx.h
* @Description OMAP4 Clocks Definitions & Functions
* @Author Patrick Titiano (p-titiano@ti.com)
* @Date 2011
* @Copyright Texas Instruments Incorporated
*
*
* Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
*
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the
* distribution.
*
* Neither the name of Texas Instruments Incorporated nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
#ifndef __CLOCK44XX_H__
#define __CLOCK44XX_H__
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CLK,
OMAP4_HSMMC2_FCLK,
OMAP4_MMC2_FCLK,
OMAP4_PER_MCBSP4_FCLK,
OMAP4_PER_MCBSP4_INT_FCLK,
OMAP4_HDMI_PHY_48M_FCLK,
OMAP4_INIT_48MC_FCLK,
OMAP4_GFX_FCLK,
OMAP4_C2C_L3X2_ICLK,
OMAP4_PER_96M_FCLK,
OMAP4_USIM_FCLK,
OMAP4_SECURE_32K_CLK,
OMAP4_L3_SECURE_GICLK,
OMAP4_L4_SECURE_GICLK,
OMAP4_L3_INSTR_GICLK,
OMAP4_SLIMBUS_CORE_UCLKS,
OMAP4_CORE_BB2D_FCLK,
OMAP4_PER_BB2D_FCLK,
OMAP4_BB2D_FCLK,
OMAP4_UNDEF_CLK,
OMAP4_CLOCK_ID_MAX
} clock44xx_id;
double clk44xx_get_system_clock_speed(void);
char *clk44xx_get_name(clock44xx_id id, char name[CLOCK44XX_MAX_NAME_LENGTH]);
double clk44xx_get_clock_speed(clock44xx_id clk,
unsigned short ignore_stop_status);
#endif
Jump to Line
Something went wrong with that request. Please try again.