OpenOCD
cc3220sf.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 /***************************************************************************
4  * Copyright (C) 2017 by Texas Instruments, Inc. *
5  ***************************************************************************/
6 
7 #ifndef OPENOCD_FLASH_NOR_CC3220SF_H
8 #define OPENOCD_FLASH_NOR_CC3220SF_H
9 
10 /* CC3220SF device types */
11 #define CC3220_NO_TYPE 0 /* Device type not determined yet */
12 #define CC3220_OTHER 1 /* CC3220 variant without flash */
13 #define CC3220SF 2 /* CC3220SF variant with flash */
14 
15 /* Flash parameters */
16 #define FLASH_BASE_ADDR 0x01000000
17 #define FLASH_SECTOR_SIZE 2048
18 #define FLASH_NUM_SECTORS 512
19 
20 /* CC2200SF flash registers */
21 #define FMA_REGISTER_ADDR 0x400FD000
22 #define FMC_REGISTER_ADDR 0x400FD008
23 #define FMC_DEFAULT_VALUE 0xA4420000
24 #define FMC_ERASE_BIT 0x00000002
25 #define FMC_MERASE_BIT 0x00000004
26 #define FMC_ERASE_VALUE (FMC_DEFAULT_VALUE | FMC_ERASE_BIT)
27 #define FMC_MERASE_VALUE (FMC_DEFAULT_VALUE | FMC_MERASE_BIT)
28 
29 #endif /* OPENOCD_FLASH_NOR_CC3220SF_H */