2010-01-15 13:45:43 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2009
|
|
|
|
* Ryan CHEN, ST Micoelectronics, ryan.chen@st.com
|
|
|
|
*
|
2013-07-08 07:37:19 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2010-01-15 13:45:43 +00:00
|
|
|
*/
|
|
|
|
|
2012-01-03 15:49:01 +00:00
|
|
|
#ifndef __SYSCTRL_H
|
|
|
|
#define __SYSCTRL_H
|
|
|
|
|
2010-01-15 13:45:43 +00:00
|
|
|
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;
|
|
|
|
};
|
2012-01-03 15:49:01 +00:00
|
|
|
|
|
|
|
#define MODE_SHIFT 0x00000003
|
|
|
|
|
|
|
|
#define NORMAL 0x00000004
|
|
|
|
#define SLOW 0x00000002
|
|
|
|
#define DOZE 0x00000001
|
|
|
|
#define SLEEP 0x00000000
|
|
|
|
|
|
|
|
#define PLL_TIM 0x01FFFFFF
|
|
|
|
|
|
|
|
#endif
|