1 #ifndef _PLLLOC_H
2 #define _PLLLOC_H
3 /**************************************************************************************
4 * FILE PURPOSE: Local pll definitions
5 **************************************************************************************
6 * FILE NAME: pllloc.h
7 *
8 * DESCRIPTION: Local definitions for the pll driver
9 **************************************************************************************/
11 /* Register offsets */
12 #define PLL_REG_RSTYPE 0x00e4
13 #define PLL_REG_CTL 0x0100
14 #define PLL_REG_PLLM 0x0110
15 #define PLL_REG_PREDIV 0x0114
16 #define PLL_REG_POSTDIV 0x0128
17 #define PLL_REG_PLLSTAT 0x013c
20 /* Bit fields */
21 /* Reset type register */
22 #define PLL_REG_RSTYPE_FIELD_POWER_ON_RESET (1<<0)
24 /* Ctl register */
25 #define PLL_REG_CTL_FIELD_PLLEN (1<<0)
26 #define PLL_REG_CTL_FIELD_PLLRST (1<<3)
27 #define PLL_REG_CTL_FIELD_PLLENSRC (1<<5)
30 /* Pll multiplier register */
31 #define PLL_REG_PLLM_FIELD_MULTm1 (0x3f<<0)
33 /* Prediv register */
34 #define PLL_REG_PREDIV_FIELD_RATIOm1 (0x1f<<0)
35 #define PLL_REG_PREDIV_FIELD_ENABLE (1<<15)
37 /* Postdiv register */
38 #define PLL_REG_POSTDIV_FIELD_RATIO (0x3f <<0)
39 #define PLL_REG_POSTDIV_FIELD_ENABLE (1<<15)
40 #define PLL_REG_POSTDIV_VALUE_DISABLED 0
42 /* Status register */
43 #define PLL_REG_STATUS_FIELD_LOCK (1<<1)
47 #endif /* _PLLLOC_H */