Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
reset.c File Reference
#include <linux/init.h>
#include <linux/io.h>
#include <linux/ioport.h>
#include <linux/pm.h>
#include <linux/export.h>
#include <linux/delay.h>
#include <linux/of_address.h>
#include <linux/of_platform.h>
#include <asm/reboot.h>
#include <lantiq_soc.h>
#include "../prom.h"

Go to the source code of this file.

Macros

#define ltq_rcu_w32(x, y)   ltq_w32((x), ltq_rcu_membase + (y))
 
#define ltq_rcu_r32(x)   ltq_r32(ltq_rcu_membase + (x))
 
#define RCU_RST_REQ   0x0010
 
#define RCU_RST_STAT   0x0014
 
#define RCU_RD_SRST   BIT(30)
 
#define RCU_STAT_SHIFT   26
 
#define RCU_BOOT_SEL_SHIFT   26
 
#define RCU_BOOT_SEL_MASK   0x7
 

Functions

int ltq_reset_cause (void)
 
 EXPORT_SYMBOL_GPL (ltq_reset_cause)
 
unsigned char ltq_boot_select (void)
 
void ltq_reset_once (unsigned int module, ulong u)
 
 arch_initcall (mips_reboot_setup)
 

Macro Definition Documentation

#define ltq_rcu_r32 (   x)    ltq_r32(ltq_rcu_membase + (x))

Definition at line 25 of file reset.c.

#define ltq_rcu_w32 (   x,
  y 
)    ltq_w32((x), ltq_rcu_membase + (y))

Definition at line 24 of file reset.c.

#define RCU_BOOT_SEL_MASK   0x7

Definition at line 38 of file reset.c.

#define RCU_BOOT_SEL_SHIFT   26

Definition at line 37 of file reset.c.

#define RCU_RD_SRST   BIT(30)

Definition at line 33 of file reset.c.

#define RCU_RST_REQ   0x0010

Definition at line 28 of file reset.c.

#define RCU_RST_STAT   0x0014

Definition at line 30 of file reset.c.

#define RCU_STAT_SHIFT   26

Definition at line 35 of file reset.c.

Function Documentation

arch_initcall ( mips_reboot_setup  )
EXPORT_SYMBOL_GPL ( ltq_reset_cause  )
unsigned char ltq_boot_select ( void  )

Definition at line 52 of file reset.c.

int ltq_reset_cause ( void  )

Definition at line 44 of file reset.c.

void ltq_reset_once ( unsigned int  module,
ulong  u 
)

Definition at line 59 of file reset.c.