Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/include/booke Add some more DDR register de...
details: https://anonhg.NetBSD.org/src/rev/b652d6232ca2
branches: trunk
changeset: 767859:b652d6232ca2
user: matt <matt%NetBSD.org@localhost>
date: Tue Aug 02 00:23:34 2011 +0000
description:
Add some more DDR register definitions
diffstat:
sys/arch/powerpc/include/booke/e500reg.h | 45 +++++++++++++++++++++++++++++++-
1 files changed, 44 insertions(+), 1 deletions(-)
diffs (59 lines):
diff -r 7940b31ccaf0 -r b652d6232ca2 sys/arch/powerpc/include/booke/e500reg.h
--- a/sys/arch/powerpc/include/booke/e500reg.h Tue Aug 02 00:22:02 2011 +0000
+++ b/sys/arch/powerpc/include/booke/e500reg.h Tue Aug 02 00:23:34 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: e500reg.h,v 1.9 2011/06/30 04:45:04 matt Exp $ */
+/* $NetBSD: e500reg.h,v 1.10 2011/08/02 00:23:34 matt Exp $ */
/*-
* Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -63,6 +63,49 @@
((((((n) & BNDS_EA) + __LOWEST_SET_BIT(BNDS_EA)) << 16) - (((n) & BNDS_SA))) << 8)
#define CS_CONFIG(n) (0x080 + 0x004 * (n))
#define CS_CONFIG_EN __PPCBIT(0)
+
+#define DDR_SDRAM_CFG 0x110
+#define SDRAM_CFG_MEM_EN __PPCBIT(0)
+#define SDRAM_CFG_SREN __PPCBIT(1)
+#define SDRAM_CFG_ECC_EN __PPCBIT(2)
+#define SDRAM_CFG_RDEN __PPCBIT(3)
+#define SDRAM_CFG_TYPE __PPCBITS(5,7)
+#define SDRAM_CFG_TYPE_DDR2 3
+#define SDRAM_CFG_TYPE_DDR3 7
+#define SDRAM_CFG_DYN_PWR __PPCBIT(10)
+#define SDRAM_CFG_DBW __PPCBITS(11,12)
+#define SDRAM_CFG_DBW_64BIT 0
+#define SDRAM_CFG_DBW_32BIT 1
+
+#define CAPTURE_DATA_HI 0xe20
+#define CAPTURE_DATA_LO 0xe24
+#define CAPTURE_ECC 0xe28
+
+#define ERR_DETECT 0xe40
+#define ERR_DISABLE 0xe44
+#define ERR_INT_EN 0xe48
+
+#define ERR_MMEE __PPCBIT(0)
+#define ERR_APEE __PPCBIT(23)
+#define ERR_ACEE __PPCBIT(24)
+#define ERR_MBEE __PPCBIT(28)
+#define ERR_SBEE __PPCBIT(29)
+#define ERR_MSEE __PPCBIT(31)
+
+#define CAPTURE_ATTRIBUTES 0xe4c
+#define CATTR_BNUM __PPCBITS(1,3)
+#define CATTR_TSIZ __PPCBITS(5,7)
+#define CATTR_TSRC __PPCBITS(11,15)
+#define CATTR_TTYP __PPCBITS(18,19)
+#define CATTR_VLD __PPCBIT(31)
+
+#define CAPTURE_ADDRESS 0xe50
+#define CAPTURE_EXT_ADDRESS 0xe54
+
+#define ERR_SBE 0xe58
+#define ERR_SBE_SBET __PPCBITS(8,15)
+#define ERR_SBE_SBEC __PPCBITS(24,31)
+
#endif /* DDRC_PRIVATE */
#define GPIO_BASE 0x0fc00
Home |
Main Index |
Thread Index |
Old Index