2 * TI DaVinci clock definitions
4 * Copyright (C) 2006-2007 Texas Instruments.
5 * Copyright (C) 2008-2009 Deep Root Systems, LLC
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
12 #ifndef __ARCH_ARM_DAVINCI_CLOCK_H
13 #define __ARCH_ARM_DAVINCI_CLOCK_H
15 #include <linux/list.h>
16 #include <asm/clkdev.h>
18 #define DAVINCI_PLL1_BASE 0x01c40800
19 #define DAVINCI_PLL2_BASE 0x01c40c00
22 /* PLL/Reset register offsets */
24 #define PLLCTL_PLLEN BIT(0)
25 #define PLLCTL_CLKMODE BIT(8)
28 #define PLLM_PLLM_MASK 0xff
38 #define PLLALNCTL 0x140
39 #define PLLDCHANGE 0x144
41 #define PLLCKSTAT 0x14c
42 #define PLLSYSTAT 0x150
49 #define PLLDIV_EN BIT(15)
50 #define PLLDIV_RATIO_MASK 0x1f
59 #define PLL_HAS_PREDIV 0x01
60 #define PLL_HAS_POSTDIV 0x02
63 struct list_head node
;
72 struct pll_data
*pll_data
;
77 #define ALWAYS_ENABLED BIT(1)
78 #define CLK_PSC BIT(2)
79 #define PSC_DSP BIT(3) /* PSC uses DSP domain, not ARM */
80 #define CLK_PLL BIT(4) /* PLL-derived clock */
81 #define PRE_PLL BIT(5) /* source is before PLL mult/div */
87 #define CLK(dev, con, ck) \
96 int davinci_clk_init(struct davinci_clk
*clocks
);
98 extern struct platform_device davinci_wdt_device
;