blob: 95bd443da384a265cc77ccf57b67e7a8bf492e0e [file] [log] [blame]
Vipin KUMAR7cb16352010-01-15 19:15:43 +05301/*
2 * (C) Copyright 2009
3 * Ryan CHEN, ST Micoelectronics, ryan.chen@st.com
4 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
Vipin KUMAR7cb16352010-01-15 19:15:43 +05306 */
7
Stefan Roesec6bc1db2012-01-03 16:49:01 +01008#ifndef __SYSCTRL_H
9#define __SYSCTRL_H
10
Vipin KUMAR7cb16352010-01-15 19:15:43 +053011struct 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 Roesec6bc1db2012-01-03 16:49:01 +010026
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