Go to the documentation of this file.
12 #ifndef __ARCH_ARM_DAVINCI_CLOCK_H
13 #define __ARCH_ARM_DAVINCI_CLOCK_H
15 #define DAVINCI_PLL1_BASE 0x01c40800
16 #define DAVINCI_PLL2_BASE 0x01c40c00
21 #define PLLCTL_PLLEN BIT(0)
22 #define PLLCTL_PLLPWRDN BIT(1)
23 #define PLLCTL_PLLRST BIT(3)
24 #define PLLCTL_PLLDIS BIT(4)
25 #define PLLCTL_PLLENSRC BIT(5)
26 #define PLLCTL_CLKMODE BIT(8)
29 #define PLLM_PLLM_MASK 0xff
39 #define PLLALNCTL 0x140
40 #define PLLDCHANGE 0x144
42 #define PLLCKSTAT 0x14c
43 #define PLLSYSTAT 0x150
50 #define PLLDIV_EN BIT(15)
51 #define PLLDIV_RATIO_MASK 0x1f
59 #define PLL_BYPASS_TIME 1
61 #define PLL_RESET_TIME 1
66 #define PLL_LOCK_TIME 20
70 #include <linux/list.h>
73 #define PLLSTAT_GOSTAT BIT(0)
74 #define PLLCMD_GOSET BIT(0)
84 #define PLL_HAS_PREDIV 0x01
85 #define PLL_HAS_POSTDIV 0x02
109 #define ALWAYS_ENABLED BIT(1)
110 #define CLK_PSC BIT(2)
111 #define CLK_PLL BIT(3)
112 #define PRE_PLL BIT(4)
113 #define PSC_SWRSTDISABLE BIT(5)
114 #define PSC_FORCE BIT(6)
116 #define CLK(dev, con, ck) \
125 unsigned int mult,
unsigned int postdiv);