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