~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/amba/sp810.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/linux/amba/sp810.h (Architecture sparc64) and /include/linux/amba/sp810.h (Architecture ppc)


  1 /*                                                  1 /*
  2  * ARM PrimeXsys System Controller SP810 heade      2  * ARM PrimeXsys System Controller SP810 header file
  3  *                                                  3  *
  4  * Copyright (C) 2009 ST Microelectronics           4  * Copyright (C) 2009 ST Microelectronics
  5  * Viresh Kumar <vireshk@kernel.org>                5  * Viresh Kumar <vireshk@kernel.org>
  6  *                                                  6  *
  7  * This file is licensed under the terms of th      7  * This file is licensed under the terms of the GNU General Public
  8  * License version 2. This program is licensed      8  * License version 2. This program is licensed "as is" without any
  9  * warranty of any kind, whether express or im      9  * warranty of any kind, whether express or implied.
 10  */                                                10  */
 11                                                    11 
 12 #ifndef __AMBA_SP810_H                             12 #ifndef __AMBA_SP810_H
 13 #define __AMBA_SP810_H                             13 #define __AMBA_SP810_H
 14                                                    14 
 15 #include <linux/io.h>                              15 #include <linux/io.h>
 16                                                    16 
 17 /* sysctl registers offset */                      17 /* sysctl registers offset */
 18 #define SCCTRL                  0x000              18 #define SCCTRL                  0x000
 19 #define SCSYSSTAT               0x004              19 #define SCSYSSTAT               0x004
 20 #define SCIMCTRL                0x008              20 #define SCIMCTRL                0x008
 21 #define SCIMSTAT                0x00C              21 #define SCIMSTAT                0x00C
 22 #define SCXTALCTRL              0x010              22 #define SCXTALCTRL              0x010
 23 #define SCPLLCTRL               0x014              23 #define SCPLLCTRL               0x014
 24 #define SCPLLFCTRL              0x018              24 #define SCPLLFCTRL              0x018
 25 #define SCPERCTRL0              0x01C              25 #define SCPERCTRL0              0x01C
 26 #define SCPERCTRL1              0x020              26 #define SCPERCTRL1              0x020
 27 #define SCPEREN                 0x024              27 #define SCPEREN                 0x024
 28 #define SCPERDIS                0x028              28 #define SCPERDIS                0x028
 29 #define SCPERCLKEN              0x02C              29 #define SCPERCLKEN              0x02C
 30 #define SCPERSTAT               0x030              30 #define SCPERSTAT               0x030
 31 #define SCSYSID0                0xEE0              31 #define SCSYSID0                0xEE0
 32 #define SCSYSID1                0xEE4              32 #define SCSYSID1                0xEE4
 33 #define SCSYSID2                0xEE8              33 #define SCSYSID2                0xEE8
 34 #define SCSYSID3                0xEEC              34 #define SCSYSID3                0xEEC
 35 #define SCITCR                  0xF00              35 #define SCITCR                  0xF00
 36 #define SCITIR0                 0xF04              36 #define SCITIR0                 0xF04
 37 #define SCITIR1                 0xF08              37 #define SCITIR1                 0xF08
 38 #define SCITOR                  0xF0C              38 #define SCITOR                  0xF0C
 39 #define SCCNTCTRL               0xF10              39 #define SCCNTCTRL               0xF10
 40 #define SCCNTDATA               0xF14              40 #define SCCNTDATA               0xF14
 41 #define SCCNTSTEP               0xF18              41 #define SCCNTSTEP               0xF18
 42 #define SCPERIPHID0             0xFE0              42 #define SCPERIPHID0             0xFE0
 43 #define SCPERIPHID1             0xFE4              43 #define SCPERIPHID1             0xFE4
 44 #define SCPERIPHID2             0xFE8              44 #define SCPERIPHID2             0xFE8
 45 #define SCPERIPHID3             0xFEC              45 #define SCPERIPHID3             0xFEC
 46 #define SCPCELLID0              0xFF0              46 #define SCPCELLID0              0xFF0
 47 #define SCPCELLID1              0xFF4              47 #define SCPCELLID1              0xFF4
 48 #define SCPCELLID2              0xFF8              48 #define SCPCELLID2              0xFF8
 49 #define SCPCELLID3              0xFFC              49 #define SCPCELLID3              0xFFC
 50                                                    50 
 51 #define SCCTRL_TIMERENnSEL_SHIFT(n)     (15 +      51 #define SCCTRL_TIMERENnSEL_SHIFT(n)     (15 + ((n) * 2))
 52                                                    52 
 53 static inline void sysctl_soft_reset(void __io     53 static inline void sysctl_soft_reset(void __iomem *base)
 54 {                                                  54 {
 55         /* switch to slow mode */                  55         /* switch to slow mode */
 56         writel(0x2, base + SCCTRL);                56         writel(0x2, base + SCCTRL);
 57                                                    57 
 58         /* writing any value to SCSYSSTAT reg      58         /* writing any value to SCSYSSTAT reg will reset system */
 59         writel(0, base + SCSYSSTAT);               59         writel(0, base + SCSYSSTAT);
 60 }                                                  60 }
 61                                                    61 
 62 #endif /* __AMBA_SP810_H */                        62 #endif /* __AMBA_SP810_H */
 63                                                    63 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php