summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/arch-spear/spr_syscntl.h
blob: 95bd443da384a265cc77ccf57b67e7a8bf492e0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
 * (C) Copyright 2009
 * Ryan CHEN, ST Micoelectronics, ryan.chen@st.com
 *
 * SPDX-License-Identifier:	GPL-2.0+
 */

#ifndef __SYSCTRL_H
#define __SYSCTRL_H

struct syscntl_regs {
	u32 scctrl;
	u32 scsysstat;
	u32 scimctrl;
	u32 scimsysstat;
	u32 scxtalctrl;
	u32 scpllctrl;
	u32 scpllfctrl;
	u32 scperctrl0;
	u32 scperctrl1;
	u32 scperen;
	u32 scperdis;
	const u32 scperclken;
	const u32 scperstat;
};

#define MODE_SHIFT          0x00000003

#define NORMAL              0x00000004
#define SLOW                0x00000002
#define DOZE                0x00000001
#define SLEEP               0x00000000

#define PLL_TIM             0x01FFFFFF

#endif
OpenPOWER on IntegriCloud