]> git.sur5r.net Git - openocd/commitdiff
FLASH/NOR: Remove useless file str9xpec.h
authorAntonio Borneo <borneo.antonio@gmail.com>
Wed, 17 Nov 2010 13:25:57 +0000 (21:25 +0800)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Wed, 17 Nov 2010 16:02:39 +0000 (17:02 +0100)
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
src/flash/nor/Makefile.am
src/flash/nor/str9xpec.c
src/flash/nor/str9xpec.h [deleted file]

index 097609902a22145fddc5ed0be92e0aa41af8a592..d8e6e81f1d4878dbb58c31426c3879264630bb5f 100644 (file)
@@ -39,7 +39,6 @@ noinst_HEADERS = \
        imp.h \
        non_cfi.h \
        ocl.h \
-       str9xpec.h \
        tms470.h
 
 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
index f8b705e080c6c5aa057102e2cb9107a953be106b..18761c2f616045103349d4a9ff236634aa609d11 100644 (file)
 #endif
 
 #include "imp.h"
-#include "str9xpec.h"
 #include <target/arm7_9_common.h>
 
 
+/* ISC commands */
+
+#define ISC_IDCODE                             0xFE
+#define ISC_MFG_READ                   0x4C
+#define ISC_CONFIGURATION              0x07
+#define ISC_ENABLE                             0x0C
+#define ISC_DISABLE                            0x0F
+#define ISC_NOOP                               0x10
+#define ISC_ADDRESS_SHIFT              0x11
+#define ISC_CLR_STATUS                 0x13
+#define ISC_PROGRAM                            0x20
+#define ISC_PROGRAM_SECURITY   0x22
+#define ISC_PROGRAM_UC                 0x23
+#define ISC_ERASE                              0x30
+#define ISC_READ                               0x50
+#define ISC_BLANK_CHECK                        0x60
+
+/* ISC_DEFAULT bit definitions */
+
+#define ISC_STATUS_SECURITY            0x40
+#define ISC_STATUS_INT_ERROR   0x30
+#define ISC_STATUS_MODE                        0x08
+#define ISC_STATUS_BUSY                        0x04
+#define ISC_STATUS_ERROR               0x03
+
+/* Option bytes definitions */
+
+#define STR9XPEC_OPT_CSMAPBIT          48
+#define STR9XPEC_OPT_LVDTHRESBIT       49
+#define STR9XPEC_OPT_LVDSELBIT         50
+#define STR9XPEC_OPT_LVDWARNBIT                51
+#define STR9XPEC_OPT_OTPBIT                    63
+
+enum str9xpec_status_codes
+{
+       STR9XPEC_INVALID_COMMAND = 1,
+       STR9XPEC_ISC_SUCCESS = 2,
+       STR9XPEC_ISC_DISABLED = 3,
+       STR9XPEC_ISC_INTFAIL = 32,
+};
+
+struct str9xpec_flash_controller
+{
+       struct jtag_tap *tap;
+       uint32_t *sector_bits;
+       int chain_pos;
+       int isc_enable;
+       uint8_t options[8];
+};
+
 static int str9xpec_erase_area(struct flash_bank *bank, int first, int last);
 static int str9xpec_set_address(struct flash_bank *bank, uint8_t sector);
 static int str9xpec_write_options(struct flash_bank *bank);
diff --git a/src/flash/nor/str9xpec.h b/src/flash/nor/str9xpec.h
deleted file mode 100644 (file)
index 6eecd8a..0000000
+++ /dev/null
@@ -1,77 +0,0 @@
-/***************************************************************************
- *   Copyright (C) 2005 by Dominic Rath                                    *
- *   Dominic.Rath@gmx.de                                                   *
- *                                                                         *
- *   Copyright (C) 2008 by Spencer Oliver                                  *
- *   spen@spen-soft.co.uk                                                  *
- *                                                                         *
- *   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.,                                       *
- *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
- ***************************************************************************/
-#ifndef STR9XPEC_H
-#define STR9XPEC_H
-
-
-struct str9xpec_flash_controller
-{
-       struct jtag_tap *tap;
-       uint32_t *sector_bits;
-       int chain_pos;
-       int isc_enable;
-       uint8_t options[8];
-};
-
-enum str9xpec_status_codes
-{
-       STR9XPEC_INVALID_COMMAND = 1,
-       STR9XPEC_ISC_SUCCESS = 2,
-       STR9XPEC_ISC_DISABLED = 3,
-       STR9XPEC_ISC_INTFAIL = 32,
-};
-
-/* ISC commands */
-
-#define ISC_IDCODE                             0xFE
-#define ISC_MFG_READ                   0x4C
-#define ISC_CONFIGURATION              0x07
-#define ISC_ENABLE                             0x0C
-#define ISC_DISABLE                            0x0F
-#define ISC_NOOP                               0x10
-#define ISC_ADDRESS_SHIFT              0x11
-#define ISC_CLR_STATUS                 0x13
-#define ISC_PROGRAM                            0x20
-#define ISC_PROGRAM_SECURITY   0x22
-#define ISC_PROGRAM_UC                 0x23
-#define ISC_ERASE                              0x30
-#define ISC_READ                               0x50
-#define ISC_BLANK_CHECK                        0x60
-
-/* ISC_DEFAULT bit definitions */
-
-#define ISC_STATUS_SECURITY            0x40
-#define ISC_STATUS_INT_ERROR   0x30
-#define ISC_STATUS_MODE                        0x08
-#define ISC_STATUS_BUSY                        0x04
-#define ISC_STATUS_ERROR               0x03
-
-/* Option bytes definitions */
-
-#define STR9XPEC_OPT_CSMAPBIT          48
-#define STR9XPEC_OPT_LVDTHRESBIT       49
-#define STR9XPEC_OPT_LVDSELBIT         50
-#define STR9XPEC_OPT_LVDWARNBIT                51
-#define STR9XPEC_OPT_OTPBIT                    63
-
-#endif /* STR9XPEC_H */