#include <linux/list.h>
#include <linux/clkdev.h>
Go to the source code of this file.
#define ALWAYS_ENABLED BIT(1) |
#define CLK |
( |
|
dev, |
|
|
|
con, |
|
|
|
ck |
|
) |
| |
#define DAVINCI_PLL1_BASE 0x01c40800 |
#define DAVINCI_PLL2_BASE 0x01c40c00 |
#define PLL_BYPASS_TIME 1 |
#define PLL_HAS_POSTDIV 0x02 |
#define PLL_HAS_PREDIV 0x01 |
#define PLLCMD_GOSET BIT(0) |
#define PLLCTL_CLKMODE BIT(8) |
#define PLLCTL_PLLDIS BIT(4) |
#define PLLCTL_PLLEN BIT(0) |
#define PLLCTL_PLLENSRC BIT(5) |
#define PLLCTL_PLLPWRDN BIT(1) |
#define PLLCTL_PLLRST BIT(3) |
#define PLLDIV_EN BIT(15) |
#define PLLDIV_RATIO_MASK 0x1f |
#define PLLM_PLLM_MASK 0xff |
#define PLLSTAT_GOSTAT BIT(0) |
#define PSC_SWRSTDISABLE BIT(5) /* Disable state is SwRstDisable */ |
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.