X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fflash%2Fnor%2Ffm3.c;h=6c619775ac149124454ab15722dd398dde0b23bc;hp=d4bd5b9c120cf8ccb9ca0f1ef27daee49541f4a0;hb=76ee93a81db72d16cc2e446f6f43411de5d6e8c2;hpb=565f8481c7b71614a05d79ab79af8610d2535a81 diff --git a/src/flash/nor/fm3.c b/src/flash/nor/fm3.c index d4bd5b9c12..6c619775ac 100644 --- a/src/flash/nor/fm3.c +++ b/src/flash/nor/fm3.c @@ -17,9 +17,7 @@ * 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., * - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * + * along with this program. If not, see . * ***************************************************************************/ #ifdef HAVE_CONFIG_H @@ -240,7 +238,7 @@ static int fm3_erase(struct flash_bank *bank, int first, int last) /* R0 keeps Flash Sequence address 1 (u32FlashSeq1) */ /* R1 keeps Flash Sequence address 2 (u32FlashSeq2) */ /* R2 keeps Flash Offset address (ofs) */ - const uint8_t fm3_flash_erase_sector_code[] = { + static const uint8_t fm3_flash_erase_sector_code[] = { /* *(uint16_t*)u32FlashSeq1 = 0xAA; */ 0xAA, 0x24, /* MOVS R4, #0xAA */ 0x04, 0x80, /* STRH R4, [R0, #0] */ @@ -849,7 +847,7 @@ static int fm3_chip_erase(struct flash_bank *bank) /* RAMCODE used for fm3 Flash chip erase: */ /* R0 keeps Flash Sequence address 1 (u32FlashSeq1) */ /* R1 keeps Flash Sequence address 2 (u32FlashSeq2) */ - const uint8_t fm3_flash_erase_chip_code[] = { + static const uint8_t fm3_flash_erase_chip_code[] = { /* *(uint16_t*)u32FlashSeq1 = 0xAA; */ 0xAA, 0x22, /* MOVS R2, #0xAA */ 0x02, 0x80, /* STRH R2, [R0, #0] */ @@ -999,4 +997,5 @@ struct flash_driver fm3_flash = { .probe = fm3_probe, .auto_probe = fm3_auto_probe, .erase_check = default_flash_blank_check, + .free_driver_priv = default_flash_free_driver_priv, };