Author: Raúl Sánchez Siles <rsanchezs@infoglobal.es>
[fw/openocd] / src / flash / str9x.h
index 6e589c0c845225448134224dbc12a486f950ed0f..b5e569d0ede3f5a15cec3049992da692bcd72a3a 100644 (file)
@@ -2,6 +2,9 @@
  *   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     *
 #define STR9X_H
 
 #include "flash.h"
-#include "target.h"
 
 typedef struct str9x_flash_bank_s
 {
        u32 *sector_bits;
+       int variant;
+       int bank1;
        working_area_t *write_algorithm;
 } str9x_flash_bank_t;
 
@@ -45,7 +49,7 @@ enum str9x_status_codes
        STR9X_BUSY = 11
 };
 
-/*  Flash registers */
+/* Flash registers */
 
 #define FLASH_BBSR             0x54000000              /* Boot Bank Size Register                */
 #define FLASH_NBBSR            0x54000004              /* Non-Boot Bank Size Register            */
@@ -55,11 +59,4 @@ enum str9x_status_codes
 #define FLASH_SR               0x5400001C              /* Status Register                        */
 #define FLASH_BCE5ADDR 0x54000020              /* BC Fifth Entry Target Address Register */
 
-typedef struct str9x_mem_layout_s {
-       u32 sector_start;
-       u32 sector_size;
-       u32 sector_bit;
-} str9x_mem_layout_t;
-
 #endif /* STR9X_H */
-