16 #include <mach/misc_regs.h>
21 #define PLL1_CTR (MISC_BASE + 0x008)
22 #define PLL1_FRQ (MISC_BASE + 0x00C)
23 #define PLL2_CTR (MISC_BASE + 0x014)
24 #define PLL2_FRQ (MISC_BASE + 0x018)
25 #define PLL_CLK_CFG (MISC_BASE + 0x020)
27 #define MCTR_CLK_SHIFT 28
28 #define MCTR_CLK_MASK 3
30 #define CORE_CLK_CFG (MISC_BASE + 0x024)
32 #define HCLK_RATIO_SHIFT 10
33 #define HCLK_RATIO_MASK 2
34 #define PCLK_RATIO_SHIFT 8
35 #define PCLK_RATIO_MASK 2
37 #define PERIP_CLK_CFG (MISC_BASE + 0x028)
39 #define CLCD_CLK_SHIFT 2
40 #define CLCD_CLK_MASK 2
41 #define UART_CLK_SHIFT 4
42 #define UART_CLK_MASK 1
43 #define FIRDA_CLK_SHIFT 5
44 #define FIRDA_CLK_MASK 2
45 #define GPT0_CLK_SHIFT 8
46 #define GPT1_CLK_SHIFT 10
47 #define GPT2_CLK_SHIFT 11
48 #define GPT3_CLK_SHIFT 12
49 #define GPT_CLK_MASK 1
51 #define PERIP1_CLK_ENB (MISC_BASE + 0x02C)
53 #define UART0_CLK_ENB 3
54 #define UART1_CLK_ENB 4
55 #define SSP0_CLK_ENB 5
56 #define SSP1_CLK_ENB 6
58 #define JPEG_CLK_ENB 8
59 #define FSMC_CLK_ENB 9
60 #define FIRDA_CLK_ENB 10
61 #define GPT2_CLK_ENB 11
62 #define GPT3_CLK_ENB 12
63 #define GPIO2_CLK_ENB 13
64 #define SSP2_CLK_ENB 14
65 #define ADC_CLK_ENB 15
66 #define GPT1_CLK_ENB 11
67 #define RTC_CLK_ENB 17
68 #define GPIO1_CLK_ENB 18
69 #define DMA_CLK_ENB 19
70 #define SMI_CLK_ENB 21
71 #define CLCD_CLK_ENB 22
72 #define GMAC_CLK_ENB 23
73 #define USBD_CLK_ENB 24
74 #define USBH0_CLK_ENB 25
75 #define USBH1_CLK_ENB 26
77 #define PRSC0_CLK_CFG (MISC_BASE + 0x044)
78 #define PRSC1_CLK_CFG (MISC_BASE + 0x048)
79 #define PRSC2_CLK_CFG (MISC_BASE + 0x04C)
81 #define CLCD_CLK_SYNT (MISC_BASE + 0x05C)
82 #define FIRDA_CLK_SYNT (MISC_BASE + 0x060)
83 #define UART_CLK_SYNT (MISC_BASE + 0x064)
87 {.mode = 0, .m = 0x53, .n = 0x0F, .p = 0x1},
88 {.mode = 0, .m = 0x85, .n = 0x0F, .p = 0x1},
89 {.mode = 0, .m = 0xA6, .n = 0x0F, .p = 0x1},
95 {.xscale = 2, .yscale = 8, .eq = 0},
96 {.xscale = 2, .yscale = 4, .eq = 0},
97 {.xscale = 1, .yscale = 2, .eq = 1},
100 static const char *clcd_parents[] = {
"pll3_clk",
"clcd_syn_gclk", };
101 static const char *firda_parents[] = {
"pll3_clk",
"firda_syn_gclk", };
102 static const char *uart_parents[] = {
"pll3_clk",
"uart_syn_gclk", };
103 static const char *gpt0_1_parents[] = {
"pll3_clk",
"gpt0_1_syn_clk", };
104 static const char *gpt2_parents[] = {
"pll3_clk",
"gpt2_syn_clk", };
105 static const char *gpt3_parents[] = {
"pll3_clk",
"gpt3_syn_clk", };
106 static const char *ddr_parents[] = {
"ahb_clk",
"ahbmult2_clk",
"none",
112 {.mscale = 4, .nscale = 0},
113 {.mscale = 2, .nscale = 0},
114 {.mscale = 1, .nscale = 0},
144 &_lock, &clk1,
NULL);
150 &_lock, &clk1,
NULL);