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/io.h>
#include <linux/kernel.h>
#include <linux/pm.h>
#include <asm/reboot.h>
#include <asm/mach-jz4740/base.h>
#include <asm/mach-jz4740/timer.h>
#include "reset.h"
#include "clock.h"

Go to the source code of this file.

Macros

#define JZ_REG_WDT_DATA   0x00
 
#define JZ_REG_WDT_COUNTER_ENABLE   0x04
 
#define JZ_REG_WDT_COUNTER   0x08
 
#define JZ_REG_WDT_CTRL   0x0c
 
#define JZ_REG_RTC_CTRL   0x00
 
#define JZ_REG_RTC_HIBERNATE   0x20
 
#define JZ_REG_RTC_WAKEUP_FILTER   0x24
 
#define JZ_REG_RTC_RESET_COUNTER   0x28
 
#define JZ_RTC_CTRL_WRDY   BIT(7)
 
#define JZ_RTC_WAKEUP_FILTER_MASK   0x0000FFE0
 
#define JZ_RTC_RESET_COUNTER_MASK   0x00000FE0
 

Functions

void jz4740_reset_init (void)
 

Macro Definition Documentation

#define JZ_REG_RTC_CTRL   0x00

Definition at line 59 of file reset.c.

#define JZ_REG_RTC_HIBERNATE   0x20

Definition at line 60 of file reset.c.

#define JZ_REG_RTC_RESET_COUNTER   0x28

Definition at line 62 of file reset.c.

#define JZ_REG_RTC_WAKEUP_FILTER   0x24

Definition at line 61 of file reset.c.

#define JZ_REG_WDT_COUNTER   0x08

Definition at line 40 of file reset.c.

#define JZ_REG_WDT_COUNTER_ENABLE   0x04

Definition at line 39 of file reset.c.

#define JZ_REG_WDT_CTRL   0x0c

Definition at line 41 of file reset.c.

#define JZ_REG_WDT_DATA   0x00

Definition at line 38 of file reset.c.

#define JZ_RTC_CTRL_WRDY   BIT(7)

Definition at line 64 of file reset.c.

#define JZ_RTC_RESET_COUNTER_MASK   0x00000FE0

Definition at line 66 of file reset.c.

#define JZ_RTC_WAKEUP_FILTER_MASK   0x0000FFE0

Definition at line 65 of file reset.c.

Function Documentation

void jz4740_reset_init ( void  )

Definition at line 113 of file reset.c.