]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/arm/include/asm/arch-spear/spr_syscntl.h
Merge branch 'master' of git://git.denx.de/u-boot-microblaze
[karo-tx-uboot.git] / arch / arm / include / asm / arch-spear / spr_syscntl.h
1 /*
2  * (C) Copyright 2009
3  * Ryan CHEN, ST Micoelectronics, ryan.chen@st.com
4  *
5  * See file CREDITS for list of people who contributed to this
6  * project.
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License as
10  * published by the Free Software Foundation; either version 2 of
11  * the License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21  * MA 02111-1307 USA
22  */
23
24 #ifndef __SYSCTRL_H
25 #define __SYSCTRL_H
26
27 struct syscntl_regs {
28         u32 scctrl;
29         u32 scsysstat;
30         u32 scimctrl;
31         u32 scimsysstat;
32         u32 scxtalctrl;
33         u32 scpllctrl;
34         u32 scpllfctrl;
35         u32 scperctrl0;
36         u32 scperctrl1;
37         u32 scperen;
38         u32 scperdis;
39         const u32 scperclken;
40         const u32 scperstat;
41 };
42
43 #define MODE_SHIFT          0x00000003
44
45 #define NORMAL              0x00000004
46 #define SLOW                0x00000002
47 #define DOZE                0x00000001
48 #define SLEEP               0x00000000
49
50 #define PLL_TIM             0x01FFFFFF
51
52 #endif