#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/errno.h>
#include <linux/clk.h>
#include <linux/err.h>
#include <linux/mutex.h>
#include <linux/io.h>
#include <linux/delay.h>
#include <mach/hardware.h>
#include <mach/clock.h>
#include <mach/psc.h>
#include <mach/cputype.h>
#include "clock.h"
Go to the source code of this file.
davinci_set_pllrate - set the output rate of a given PLL.
Note: Currently tested to work with OMAP-L138 only.
: pll whose rate needs to be changed. : The pre divider value. Passing 0 disables the pre-divider. : The multiplier value. Passing 0 leads to multiply-by-one. : The post divider value. Passing 0 disables the post-divider.
Definition at line 438 of file clock.c.
int davinci_set_refclk_rate |
( |
unsigned long |
rate | ) |
|
davinci_set_refclk_rate() - Set the reference clock rate : The new rate.
Sets the reference clock rate to a given value. This will most likely result in the entire clock tree getting updated.
This is used to support boards which use a reference clock different than that used by default in <soc>.c file. The reference clock rate should be updated early in the boot process; ideally soon after the clock tree has been initialized once with the default reference clock rate (davinci_common_init()).
Returns 0 on success, error otherwise.
Definition at line 520 of file clock.c.