/*
* ARM PrimeXsys System Controller SP810 header file
*
* Copyright ( C ) 2009 ST Microelectronics
* Viresh Kumar < vireshk @ kernel . org >
*
* This file is licensed under the terms of the GNU General Public
* License version 2 . This program is licensed " as is " without any
* warranty of any kind , whether express or implied .
*/
#ifndef __AMBA_SP810_H
#define __AMBA_SP810_H
#include <linux/io.h>
/* sysctl registers offset */
#define SCCTRL 0 x000
#define SCSYSSTAT 0 x004
#define SCIMCTRL 0 x008
#define SCIMSTAT 0 x00C
#define SCXTALCTRL 0 x010
#define SCPLLCTRL 0 x014
#define SCPLLFCTRL 0 x018
#define SCPERCTRL0 0 x01C
#define SCPERCTRL1 0 x020
#define SCPEREN 0 x024
#define SCPERDIS 0 x028
#define SCPERCLKEN 0 x02C
#define SCPERSTAT 0 x030
#define SCSYSID0 0 xEE0
#define SCSYSID1 0 xEE4
#define SCSYSID2 0 xEE8
#define SCSYSID3 0 xEEC
#define SCITCR 0 xF00
#define SCITIR0 0 xF04
#define SCITIR1 0 xF08
#define SCITOR 0 xF0C
#define SCCNTCTRL 0 xF10
#define SCCNTDATA 0 xF14
#define SCCNTSTEP 0 xF18
#define SCPERIPHID0 0 xFE0
#define SCPERIPHID1 0 xFE4
#define SCPERIPHID2 0 xFE8
#define SCPERIPHID3 0 xFEC
#define SCPCELLID0 0 xFF0
#define SCPCELLID1 0 xFF4
#define SCPCELLID2 0 xFF8
#define SCPCELLID3 0 xFFC
#define SCCTRL_TIMERENnSEL_SHIFT(n) (15 + ((n) * 2 ))
static inline void sysctl_soft_reset(void __iomem *base)
{
/* switch to slow mode */
writel(0 x2, base + SCCTRL);
/* writing any value to SCSYSSTAT reg will reset system */
writel(0 , base + SCSYSSTAT);
}
#endif /* __AMBA_SP810_H */
Messung V0.5 in Prozent C=91 H=93 G=91
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet am 2026-09-29)
¤
*© Formatika GbR, Deutschland