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/pm.h>
#include <asm/reboot.h>
#include <linux/export.h>
#include <lantiq_soc.h>

Go to the source code of this file.

Macros

#define SYS1_CPU0RS   0x0040
 
#define CPU0RS_MASK   0x0003
 
#define SYS1_BM   0x00a0
 
#define BM_MASK   0x0005
 
#define BOOT_REG_BASE   (KSEG1 | 0x1F200000)
 
#define BOOT_PW1_REG   (BOOT_REG_BASE | 0x20)
 
#define BOOT_PW2_REG   (BOOT_REG_BASE | 0x24)
 
#define BOOT_PW1   0x4C545100
 
#define BOOT_PW2   0x0051544C
 
#define WDT_REG_BASE   (KSEG1 | 0x1F8803F0)
 
#define WDT_PW1   0x00BE0000
 
#define WDT_PW2   0x00DC0000
 

Functions

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

Macro Definition Documentation

#define BM_MASK   0x0005

Definition at line 25 of file reset.c.

#define BOOT_PW1   0x4C545100

Definition at line 43 of file reset.c.

#define BOOT_PW1_REG   (BOOT_REG_BASE | 0x20)

Definition at line 41 of file reset.c.

#define BOOT_PW2   0x0051544C

Definition at line 44 of file reset.c.

#define BOOT_PW2_REG   (BOOT_REG_BASE | 0x24)

Definition at line 42 of file reset.c.

#define BOOT_REG_BASE   (KSEG1 | 0x1F200000)

Definition at line 40 of file reset.c.

#define CPU0RS_MASK   0x0003

Definition at line 21 of file reset.c.

#define SYS1_BM   0x00a0

Definition at line 23 of file reset.c.

#define SYS1_CPU0RS   0x0040

Definition at line 19 of file reset.c.

#define WDT_PW1   0x00BE0000

Definition at line 47 of file reset.c.

#define WDT_PW2   0x00DC0000

Definition at line 48 of file reset.c.

#define WDT_REG_BASE   (KSEG1 | 0x1F8803F0)

Definition at line 46 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 28 of file reset.c.

int ltq_reset_cause ( void  )

Definition at line 34 of file reset.c.