1/* 2 * OMAP2 clock function prototypes and macros 3 * 4 * Copyright (C) 2005-2010 Texas Instruments, Inc. 5 * Copyright (C) 2004-2010 Nokia Corporation 6 */ 7 8#ifndef __ARCH_ARM_MACH_OMAP2_CLOCK2XXX_H 9#define __ARCH_ARM_MACH_OMAP2_CLOCK2XXX_H 10 11#include <linux/clk-provider.h> 12#include "clock.h" 13 14unsigned long omap2_table_mpu_recalc(struct clk_hw *clk, 15 unsigned long parent_rate); 16int omap2_select_table_rate(struct clk_hw *hw, unsigned long rate, 17 unsigned long parent_rate); 18long omap2_round_to_table_rate(struct clk_hw *hw, unsigned long rate, 19 unsigned long *parent_rate); 20unsigned long omap2xxx_sys_clk_recalc(struct clk_hw *clk, 21 unsigned long parent_rate); 22unsigned long omap2_osc_clk_recalc(struct clk_hw *clk, 23 unsigned long parent_rate); 24void omap2xxx_clkt_dpllcore_init(struct clk_hw *hw); 25unsigned long omap2xxx_clk_get_core_rate(void); 26u32 omap2xxx_get_sysclkdiv(void); 27void omap2xxx_clk_prepare_for_reboot(void); 28void omap2xxx_clkt_vps_check_bootloader_rates(void); 29void omap2xxx_clkt_vps_late_init(void); 30 31#ifdef CONFIG_SOC_OMAP2420 32int omap2420_clk_init(void); 33#else 34#define omap2420_clk_init() do { } while(0) 35#endif 36 37#ifdef CONFIG_SOC_OMAP2430 38int omap2430_clk_init(void); 39#else 40#define omap2430_clk_init() do { } while(0) 41#endif 42 43extern struct clk_hw *dclk_hw; 44 45#endif 46