#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.
#define JZ_REG_RTC_CTRL 0x00 |
#define JZ_REG_RTC_HIBERNATE 0x20 |
#define JZ_REG_RTC_RESET_COUNTER 0x28 |
#define JZ_REG_RTC_WAKEUP_FILTER 0x24 |
#define JZ_REG_WDT_COUNTER 0x08 |
#define JZ_REG_WDT_COUNTER_ENABLE 0x04 |
#define JZ_REG_WDT_CTRL 0x0c |
#define JZ_REG_WDT_DATA 0x00 |
#define JZ_RTC_CTRL_WRDY BIT(7) |
#define JZ_RTC_RESET_COUNTER_MASK 0x00000FE0 |
#define JZ_RTC_WAKEUP_FILTER_MASK 0x0000FFE0 |