Vipin KUMAR | 7cb1635 | 2010-01-15 19:15:43 +0530 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2009 |
| 3 | * Ryan CHEN, ST Micoelectronics, ryan.chen@st.com |
| 4 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
Vipin KUMAR | 7cb1635 | 2010-01-15 19:15:43 +0530 | [diff] [blame] | 6 | */ |
| 7 | |
Stefan Roese | c6bc1db | 2012-01-03 16:49:01 +0100 | [diff] [blame] | 8 | #ifndef __SYSCTRL_H |
| 9 | #define __SYSCTRL_H |
| 10 | |
Vipin KUMAR | 7cb1635 | 2010-01-15 19:15:43 +0530 | [diff] [blame] | 11 | struct syscntl_regs { |
| 12 | u32 scctrl; |
| 13 | u32 scsysstat; |
| 14 | u32 scimctrl; |
| 15 | u32 scimsysstat; |
| 16 | u32 scxtalctrl; |
| 17 | u32 scpllctrl; |
| 18 | u32 scpllfctrl; |
| 19 | u32 scperctrl0; |
| 20 | u32 scperctrl1; |
| 21 | u32 scperen; |
| 22 | u32 scperdis; |
| 23 | const u32 scperclken; |
| 24 | const u32 scperstat; |
| 25 | }; |
Stefan Roese | c6bc1db | 2012-01-03 16:49:01 +0100 | [diff] [blame] | 26 | |
| 27 | #define MODE_SHIFT 0x00000003 |
| 28 | |
| 29 | #define NORMAL 0x00000004 |
| 30 | #define SLOW 0x00000002 |
| 31 | #define DOZE 0x00000001 |
| 32 | #define SLEEP 0x00000000 |
| 33 | |
| 34 | #define PLL_TIM 0x01FFFFFF |
| 35 | |
| 36 | #endif |