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/ibm4xx Add bit-field definitions fo...



details:   https://anonhg.NetBSD.org/src/rev/a3ebb15a0aa1
branches:  trunk
changeset: 1020158:a3ebb15a0aa1
user:      rin <rin%NetBSD.org@localhost>
date:      Fri Apr 02 03:20:53 2021 +0000

description:
Add bit-field definitions for DCR_SDRAM0_B[0-3]CR registers.

diffstat:

 sys/arch/powerpc/include/ibm4xx/dcr4xx.h |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 5d00d375c331 -r a3ebb15a0aa1 sys/arch/powerpc/include/ibm4xx/dcr4xx.h
--- a/sys/arch/powerpc/include/ibm4xx/dcr4xx.h  Fri Apr 02 03:07:54 2021 +0000
+++ b/sys/arch/powerpc/include/ibm4xx/dcr4xx.h  Fri Apr 02 03:20:53 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dcr4xx.h,v 1.3 2013/11/21 13:33:15 kiyohara Exp $      */
+/*     $NetBSD: dcr4xx.h,v 1.4 2021/04/02 03:20:53 rin Exp $   */
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -303,6 +303,8 @@
 #define DCR_SDRAM0_B1CR                0x44
 #define DCR_SDRAM0_B2CR                0x48
 #define DCR_SDRAM0_B3CR                0x4c
+#define   SDRAM0_BnCR_EN         0x00000001
+#define   SDRAM0_BnCR_SZ(n)      (1 << ((((n) >> 17) & 7) + 22))
 #define DCR_SDRAM0_TR          0x80
 #define DCR_SDRAM0_ECCCFG      0x94
 #define DCR_SDRAM0_ECCESR      0x98



Home | Main Index | Thread Index | Old Index