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