Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * OMAP2 clock function prototypes and macros
0004  *
0005  * Copyright (C) 2005-2010 Texas Instruments, Inc.
0006  * Copyright (C) 2004-2010 Nokia Corporation
0007  */
0008 
0009 #ifndef __ARCH_ARM_MACH_OMAP2_CLOCK2XXX_H
0010 #define __ARCH_ARM_MACH_OMAP2_CLOCK2XXX_H
0011 
0012 #include <linux/clk-provider.h>
0013 #include "clock.h"
0014 
0015 unsigned long omap2_table_mpu_recalc(struct clk_hw *clk,
0016                      unsigned long parent_rate);
0017 int omap2_select_table_rate(struct clk_hw *hw, unsigned long rate,
0018                 unsigned long parent_rate);
0019 long omap2_round_to_table_rate(struct clk_hw *hw, unsigned long rate,
0020                    unsigned long *parent_rate);
0021 unsigned long omap2xxx_sys_clk_recalc(struct clk_hw *clk,
0022                       unsigned long parent_rate);
0023 unsigned long omap2_osc_clk_recalc(struct clk_hw *clk,
0024                    unsigned long parent_rate);
0025 void omap2xxx_clkt_dpllcore_init(struct clk_hw *hw);
0026 unsigned long omap2xxx_clk_get_core_rate(void);
0027 u32 omap2xxx_get_sysclkdiv(void);
0028 void omap2xxx_clk_prepare_for_reboot(void);
0029 void omap2xxx_clkt_vps_check_bootloader_rates(void);
0030 void omap2xxx_clkt_vps_late_init(void);
0031 
0032 #ifdef CONFIG_SOC_OMAP2420
0033 int omap2420_clk_init(void);
0034 #else
0035 #define omap2420_clk_init() do { } while(0)
0036 #endif
0037 
0038 #ifdef CONFIG_SOC_OMAP2430
0039 int omap2430_clk_init(void);
0040 #else
0041 #define omap2430_clk_init() do { } while(0)
0042 #endif
0043 
0044 extern struct clk_hw *dclk_hw;
0045 
0046 #endif