X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fflash%2Fstellaris.h;h=949a346de47222434e43e79256bcca8c3b2c162d;hp=bf07c70e6fe07979b525cc3aa2e81474c01a776e;hb=9059f9f28e4d88c9608ef92723bbd493e106ba67;hpb=fb1a9b2cb2f844a17d26dfeb3d26849364d93e26 diff --git a/src/flash/stellaris.h b/src/flash/stellaris.h index bf07c70e6f..949a346de4 100644 --- a/src/flash/stellaris.h +++ b/src/flash/stellaris.h @@ -22,7 +22,7 @@ #include "flash.h" -typedef struct stellaris_flash_bank_s +struct stellaris_flash_bank { /* chip id register */ uint32_t did0; @@ -45,9 +45,14 @@ typedef struct stellaris_flash_bank_s /* main clock status */ uint32_t rcc; + uint32_t rcc2; uint8_t mck_valid; + uint8_t xtal_mask; + uint32_t iosc_freq; uint32_t mck_freq; -} stellaris_flash_bank_t; + const char *iosc_desc; + const char *mck_desc; +}; /* STELLARIS control registers */ #define SCB_BASE 0x400FE000 @@ -62,6 +67,7 @@ typedef struct stellaris_flash_bank_s #define RIS 0x050 #define RCC 0x060 #define PLLCFG 0x064 +#define RCC2 0x070 #define FMPRE 0x130 #define FMPPE 0x134