blob: 6a83d87d13403e54d46c91043d5b48d68bde4fe9 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Vipin KUMAR7cb16352010-01-15 19:15:43 +05302/*
3 * (C) Copyright 2009
4 * Ryan CHEN, ST Micoelectronics, ryan.chen@st.com
Vipin KUMAR7cb16352010-01-15 19:15:43 +05305 */
6
Stefan Roesec6bc1db2012-01-03 16:49:01 +01007#ifndef __SYSCTRL_H
8#define __SYSCTRL_H
9
Vipin KUMAR7cb16352010-01-15 19:15:43 +053010struct 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 Roesec6bc1db2012-01-03 16:49:01 +010025
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