Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
sysctrl.c File Reference
#include <linux/ioport.h>
#include <linux/export.h>
#include <linux/clkdev.h>
#include <linux/of_address.h>
#include <asm/delay.h>
#include <lantiq_soc.h>
#include "../clk.h"

Go to the source code of this file.

Macros

#define SYS1_INFRAC   0x00bc
 
#define STATUS_CONFIG   0x0040
 
#define GPPC_OFFSET   24
 
#define GPEFREQ_MASK   0x00000C0
 
#define GPEFREQ_OFFSET   10
 
#define SYSCTL_CLKS   0x0000
 
#define SYSCTL_CLKEN   0x0004
 
#define SYSCTL_CLKCLR   0x0008
 
#define SYSCTL_ACTS   0x0020
 
#define SYSCTL_ACT   0x0024
 
#define SYSCTL_DEACT   0x0028
 
#define SYSCTL_RBT   0x002c
 
#define SYS1_CPU0CC   0x0040
 
#define SYS1_HRSTOUTC   0x00c0
 
#define CPU0CC_CPUDIV   0x0001
 
#define ACTS_ASC1_ACT   0x00000800
 
#define ACTS_I2C_ACT   0x00004000
 
#define ACTS_P0   0x00010000
 
#define ACTS_P1   0x00010000
 
#define ACTS_P2   0x00020000
 
#define ACTS_P3   0x00020000
 
#define ACTS_P4   0x00040000
 
#define ACTS_PADCTRL0   0x00100000
 
#define ACTS_PADCTRL1   0x00100000
 
#define ACTS_PADCTRL2   0x00200000
 
#define ACTS_PADCTRL3   0x00200000
 
#define ACTS_PADCTRL4   0x00400000
 
#define sysctl_w32(m, x, y)   ltq_w32((x), sysctl_membase[m] + (y))
 
#define sysctl_r32(m, x)   ltq_r32(sysctl_membase[m] + (x))
 
#define sysctl_w32_mask(m, clear, set, reg)   sysctl_w32(m, (sysctl_r32(m, reg) & ~(clear)) | (set), reg)
 
#define status_w32(x, y)   ltq_w32((x), status_membase + (y))
 
#define status_r32(x)   ltq_r32(status_membase + (x))
 

Functions

void falcon_trigger_hrst (int level)
 
void __init ltq_soc_init (void)
 

Variables

void __iomemltq_sys1_membase
 
void __iomemltq_ebu_membase
 

Macro Definition Documentation

#define ACTS_ASC1_ACT   0x00000800

Definition at line 51 of file sysctrl.c.

#define ACTS_I2C_ACT   0x00004000

Definition at line 52 of file sysctrl.c.

#define ACTS_P0   0x00010000

Definition at line 53 of file sysctrl.c.

#define ACTS_P1   0x00010000

Definition at line 54 of file sysctrl.c.

#define ACTS_P2   0x00020000

Definition at line 55 of file sysctrl.c.

#define ACTS_P3   0x00020000

Definition at line 56 of file sysctrl.c.

#define ACTS_P4   0x00040000

Definition at line 57 of file sysctrl.c.

#define ACTS_PADCTRL0   0x00100000

Definition at line 58 of file sysctrl.c.

#define ACTS_PADCTRL1   0x00100000

Definition at line 59 of file sysctrl.c.

#define ACTS_PADCTRL2   0x00200000

Definition at line 60 of file sysctrl.c.

#define ACTS_PADCTRL3   0x00200000

Definition at line 61 of file sysctrl.c.

#define ACTS_PADCTRL4   0x00400000

Definition at line 62 of file sysctrl.c.

#define CPU0CC_CPUDIV   0x0001

Definition at line 48 of file sysctrl.c.

#define GPEFREQ_MASK   0x00000C0

Definition at line 27 of file sysctrl.c.

#define GPEFREQ_OFFSET   10

Definition at line 28 of file sysctrl.c.

#define GPPC_OFFSET   24

Definition at line 26 of file sysctrl.c.

#define STATUS_CONFIG   0x0040

Definition at line 23 of file sysctrl.c.

#define status_r32 (   x)    ltq_r32(status_membase + (x))

Definition at line 70 of file sysctrl.c.

#define status_w32 (   x,
  y 
)    ltq_w32((x), status_membase + (y))

Definition at line 69 of file sysctrl.c.

#define SYS1_CPU0CC   0x0040

Definition at line 44 of file sysctrl.c.

#define SYS1_HRSTOUTC   0x00c0

Definition at line 46 of file sysctrl.c.

#define SYS1_INFRAC   0x00bc

Definition at line 21 of file sysctrl.c.

#define SYSCTL_ACT   0x0024

Definition at line 38 of file sysctrl.c.

#define SYSCTL_ACTS   0x0020

Definition at line 36 of file sysctrl.c.

#define SYSCTL_CLKCLR   0x0008

Definition at line 34 of file sysctrl.c.

#define SYSCTL_CLKEN   0x0004

Definition at line 32 of file sysctrl.c.

#define SYSCTL_CLKS   0x0000

Definition at line 30 of file sysctrl.c.

#define SYSCTL_DEACT   0x0028

Definition at line 40 of file sysctrl.c.

#define sysctl_r32 (   m,
  x 
)    ltq_r32(sysctl_membase[m] + (x))

Definition at line 65 of file sysctrl.c.

#define SYSCTL_RBT   0x002c

Definition at line 42 of file sysctrl.c.

#define sysctl_w32 (   m,
  x,
  y 
)    ltq_w32((x), sysctl_membase[m] + (y))

Definition at line 64 of file sysctrl.c.

#define sysctl_w32_mask (   m,
  clear,
  set,
  reg 
)    sysctl_w32(m, (sysctl_r32(m, reg) & ~(clear)) | (set), reg)

Definition at line 66 of file sysctrl.c.

Function Documentation

void falcon_trigger_hrst ( int  level)

Definition at line 75 of file sysctrl.c.

void __init ltq_soc_init ( void  )

Definition at line 183 of file sysctrl.c.

Variable Documentation

void __iomem * ltq_ebu_membase

Definition at line 73 of file sysctrl.c.

void __iomem* ltq_sys1_membase

Definition at line 73 of file sysctrl.c.