1 /* SPDX-License-Identifier: GPL-2.0+ */ 2 /* 3 * (C) Copyright 2009 4 * Ryan CHEN, ST Micoelectronics, ryan.chen@st.com 5 */ 6 7 #ifndef __SYSCTRL_H 8 #define __SYSCTRL_H 9 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 }; 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 36