- remove target specific variant and use target->variant member
[fw/openocd] / src / flash / s3c24xx_regs_nand.h
index d742205ac172673f57c96f99e93d4125b945e46e..31d9a856e80c186ccd49a1ee37ec1694ea176f41 100644 (file)
@@ -1,19 +1,30 @@
-/* linux/include/asm-arm/arch-s3c2410/regs-nand.h
- *
- * Copyright (c) 2004,2005 Simtec Electronics <linux@simtec.co.uk>
- *                   http://www.simtec.co.uk/products/SWLINUX/
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- *
+/***************************************************************************
+ *   Copyright (C) 2004, 2005 by Simtec Electronics                        *
+ *   linux@simtec.co.uk                                                    *
+ *   http://www.simtec.co.uk/products/SWLINUX/                             *
+ *                                                                         *
+ *   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; version 2 of the License.               *
+ *                                                                         *
+ *   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.,                                       *
+ *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
+ ***************************************************************************/
+
+/*
  * S3C2410 NAND register definitions
-*/
+ */
 
 #ifndef __ASM_ARM_REGS_NAND
 #define __ASM_ARM_REGS_NAND "$Id: nand.h,v 1.3 2003/12/09 11:36:29 ben Exp $"
 
-
 #define S3C2410_NFREG(x) (x)
 
 #define S3C2410_NFCONF  S3C2410_NFREG(0x00)
 #define S3C2440_NFCONT_SPARE_ECCLOCK   (1<<6)
 #define S3C2440_NFCONT_MAIN_ECCLOCK    (1<<5)
 #define S3C2440_NFCONT_INITECC         (1<<4)
-#define S3C2440_NFCONT_nFCE            (1<<1)
+#define S3C2440_NFCONT_nFCE                    (1<<1)
 #define S3C2440_NFCONT_ENABLE          (1<<0)
 
 #define S3C2440_NFSTAT_READY           (1<<0)
-#define S3C2440_NFSTAT_nCE             (1<<1)
+#define S3C2440_NFSTAT_nCE                     (1<<1)
 #define S3C2440_NFSTAT_RnB_CHANGE      (1<<2)
 #define S3C2440_NFSTAT_ILLEGAL_ACCESS  (1<<3)
 
 #define S3C2412_NFSTAT_RnB_CHANGE      (1<<4)
 #define S3C2412_NFSTAT_nFCE1           (1<<3)
 #define S3C2412_NFSTAT_nFCE0           (1<<2)
-#define S3C2412_NFSTAT_Res1            (1<<1)
+#define S3C2412_NFSTAT_Res1                    (1<<1)
 #define S3C2412_NFSTAT_READY           (1<<0)
 
 #define S3C2412_NFECCERR_SERRDATA(x)   (((x) >> 21) & 0xf)
-#define S3C2412_NFECCERR_SERRBIT(x)    (((x) >> 18) & 0x7)
+#define S3C2412_NFECCERR_SERRBIT(x)            (((x) >> 18) & 0x7)
 #define S3C2412_NFECCERR_MERRDATA(x)   (((x) >> 7) & 0x3ff)
-#define S3C2412_NFECCERR_MERRBIT(x)    (((x) >> 4) & 0x7)
+#define S3C2412_NFECCERR_MERRBIT(x)            (((x) >> 4) & 0x7)
 #define S3C2412_NFECCERR_SPARE_ERR(x)  (((x) >> 2) & 0x3)
 #define S3C2412_NFECCERR_MAIN_ERR(x)   (((x) >> 2) & 0x3)
 #define S3C2412_NFECCERR_NONE          (0)
 #define S3C2412_NFECCERR_MULTIBIT      (2)
 #define S3C2412_NFECCERR_ECCAREA       (3)
 
-
-
 #endif /* __ASM_ARM_REGS_NAND */