summaryrefslogtreecommitdiff
path: root/cleopatre/u-boot-1.1.6/include/asm-arm/arch-spc300/wdt.h
diff options
context:
space:
mode:
Diffstat (limited to 'cleopatre/u-boot-1.1.6/include/asm-arm/arch-spc300/wdt.h')
-rw-r--r--cleopatre/u-boot-1.1.6/include/asm-arm/arch-spc300/wdt.h66
1 files changed, 0 insertions, 66 deletions
diff --git a/cleopatre/u-boot-1.1.6/include/asm-arm/arch-spc300/wdt.h b/cleopatre/u-boot-1.1.6/include/asm-arm/arch-spc300/wdt.h
deleted file mode 100644
index 82d38d2d1a..0000000000
--- a/cleopatre/u-boot-1.1.6/include/asm-arm/arch-spc300/wdt.h
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- * Copyright (C) 2009 SPiDCOM Technologies
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- */
-#ifndef _ARCH_ARM_SPC300_WDT_H
-#define _ARCH_ARM_SPC300_WDT_H
-
-#define WDT_DEFAULT_TIME 5 //seconds
-#define WDT_MAX_TIME 21 //seconds
-
-// Bitfields in Control Register
-#define WDT_EN_SHIFT 0
-#define WDT_EN_SIZE 1
-#define WDT_RMOD_SHIFT 1
-#define WDT_RMOD_SIZE 1
-#define WDT_RPL_SHIFT 2
-#define WDT_RPL_SIZE 3
-
-// Bitfields in Timeout Range Register
-#define WDT_TOP_SHIFT 0
-#define WDT_TOP_SIZE 4
-#define WDT_TOP_INIT_SHIFT 4
-#define WDT_TOP_INIT_SIZE 4
-
-// Bitfields in Current Counter Register
-#define WDT_CCV_SHIFT 0
-#define WDT_CCV_SIZE 32
-
-// Bitfields in Counter Restart Register
-#define WDT_CR_SHIFT 0
-#define WDT_CR_SIZE 8
-#define WDT_CR_VAL 0x76
-
-// Bitfields in Interrupt Status Register
-#define WDT_IT_STAT_SHIFT 0
-#define WDT_IT_STAT_SIZE 1
-
-// Bitfields in Clear Interrupt Register
-#define WDT_IT_CLEAR_SHIFT 0
-#define WDT_IT_CLEAR_SIZE 1
-
-// Bit manipulation macros
-#define WDT_BIT(name) \
- (1 << WDT_##name##_SHIFT)
-#define WDT_BF(name,value) \
- (((value) & ((1 << WDT_##name##_SIZE) - 1)) << WDT_##name##_SHIFT)
-#define WDT_BFEXT(name,value) \
- (((value) >> WDT_##name##_SHIFT) & ((1 << WDT_##name##_SIZE) - 1))
-#define WDT_BFINS(name,value,old) \
- ( ((old) & ~(((1 << WDT_##name##_SIZE) - 1) << WDT_##name##_SHIFT)) \
- | WDT_BF(name,value))
-
-#endif /* _ARCH_ARM_SPC300_WDT_H */