* 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;
STR9X_BUSY = 11
};
-/* Flash registers */
+/* Flash registers */
#define FLASH_BBSR 0x54000000 /* Boot Bank Size Register */
#define FLASH_NBBSR 0x54000004 /* Non-Boot Bank Size Register */
#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 */
-