arch/arm/src/tiva: Remove TIVA_CCFG_BASE_DEFAULT which appears to be an odd mechanism to overrid the ROM DriverLib with an in-FLASH DriverLib.

This commit is contained in:
Gregory Nutt 2019-01-17 17:47:37 -06:00
parent 9a25e86416
commit da582e4ef6
5 changed files with 2 additions and 47 deletions

View File

@ -155,13 +155,8 @@ static void trim_wakeup_fromshutdown(uint32_t fcfg1_revision)
* -Configure XOSC.
*/
#if TIVA_CCFG_BASE == TIVA_CCFG_BASE_DEFAULT
SetupAfterColdResetWakeupFromShutDownCfg2(fcfg1_revision,
ccfg_modeconf);
#else
NOROM_SetupAfterColdResetWakeupFromShutDownCfg2(fcfg1_revision,
ccfg_modeconf);
#endif
/* Increased margin between digital supply voltage and VDD BOD during
* standby. VTRIM_UDIG: signed 4 bits value to be incremented by 2 (max = 7)
@ -216,11 +211,7 @@ static void trim_wakeup_fromshutdown(uint32_t fcfg1_revision)
* -Configure HPOSC. -Setup the LF clock.
*/
#if TIVA_CCFG_BASE == TIVA_CCFG_BASE_DEFAULT
SetupAfterColdResetWakeupFromShutDownCfg3(ccfg_modeconf);
#else
NOROM_SetupAfterColdResetWakeupFromShutDownCfg3(ccfg_modeconf);
#endif
/* Allow AUX to power down */
@ -316,11 +307,7 @@ void cc13xx_trim_device(void)
/* Select correct CACHE mode and set correct CACHE configuration */
#if TIVA_CCFG_BASE == TIVA_CCFG_BASE_DEFAULT
SetupSetCacheModeAccordingToCcfgSetting();
#else
NOROM_SetupSetCacheModeAccordingToCcfgSetting();
#endif
/* 1. Check for powerdown 2. Check for shutdown 3. Assume cold reset if none
* of the above. It is always assumed that the application will freeze the

View File

@ -264,13 +264,8 @@ static void trim_wakeup_fromshutdown(uint32_t fcfg1_revision)
* -Configure XOSC.
*/
#if TIVA_CCFG_BASE == TIVA_CCFG_BASE_DEFAULT
SetupAfterColdResetWakeupFromShutDownCfg2(fcfg1_revision,
ccfg_modeconf);
#else
NOROM_SetupAfterColdResetWakeupFromShutDownCfg2(fcfg1_revision,
ccfg_modeconf);
#endif
/* Special shadow register trim propagation on first batch of devices */
@ -460,11 +455,7 @@ static void trim_wakeup_fromshutdown(uint32_t fcfg1_revision)
* -Configure HPOSC. -Setup the LF clock.
*/
#if TIVA_CCFG_BASE == TIVA_CCFG_BASE_DEFAULT
SetupAfterColdResetWakeupFromShutDownCfg3(ccfg_modeconf);
#else
NOROM_SetupAfterColdResetWakeupFromShutDownCfg3(ccfg_modeconf);
#endif
/* Set AUX into power down active mode */
@ -537,11 +528,7 @@ void cc13xx_trim_device(void)
/* Select correct CACHE mode and set correct CACHE configuration */
#if TIVA_CCFG_BASE == TIVA_CCFG_BASE_DEFAULT
SetupSetCacheModeAccordingToCcfgSetting();
#else
NOROM_SetupSetCacheModeAccordingToCcfgSetting();
#endif
/* 1. Check for powerdown 2. Check for shutdown 3. Assume cold reset if none
* of the above. It is always assumed that the application will freeze the

View File

@ -144,13 +144,8 @@ static void trim_wakeup_fromshutdown(uint32_t fcfg1_revision)
* -Configure XOSC.
*/
#if TIVA_CCFG_BASE == TIVA_CCFG_BASE_DEFAULT
SetupAfterColdResetWakeupFromShutDownCfg2(fcfg1_revision,
ccfg_modeconf);
#else
NOROM_SetupAfterColdResetWakeupFromShutDownCfg2(fcfg1_revision,
ccfg_modeconf);
#endif
{
uint32_t trimreg;
@ -204,11 +199,7 @@ static void trim_wakeup_fromshutdown(uint32_t fcfg1_revision)
* -Configure HPOSC. -Setup the LF clock.
*/
#if TIVA_CCFG_BASE == TIVA_CCFG_BASE_DEFAULT
SetupAfterColdResetWakeupFromShutDownCfg3(ccfg_modeconf);
#else
NOROM_SetupAfterColdResetWakeupFromShutDownCfg3(ccfg_modeconf);
#endif
/* Set AUX into power down active mode */
@ -283,11 +274,7 @@ void cc13xx_trim_device(void)
/* Select correct CACHE mode and set correct CACHE configuration */
#if TIVA_CCFG_BASE == TIVA_CCFG_BASE_DEFAULT
SetupSetCacheModeAccordingToCcfgSetting();
#else
NOROM_SetupSetCacheModeAccordingToCcfgSetting();
#endif
/* 1. Check for powerdown 2. Check for shutdown 3. Assume cold reset if none
* of the above. It is always assumed that the application will freeze the

View File

@ -103,10 +103,7 @@
#define TIVA_FLASH_CFG_BASE 0x50000000 /* CC26_DUMMY_COMP */
#define TIVA_FCFG1_BASE 0x50001000 /* FCFG1 */
#define TIVA_FCFG2_BASE 0x50002000 /* FCFG2 */
#ifndef TIVA_CCFG_BASE
# define TIVA_CCFG_BASE 0x50003000 /* CCFG */
#endif
#define TIVA_CCFG_BASE_DEFAULT 0x50003000 /* CCFG */
#define TIVA_CCFG_BASE 0x50003000 /* CCFG */
#define TIVA_SSI0_NONBUF_BASE 0x60000000 /* SSI CPU nonbuf base */
#define TIVA_UART0_NONBUF_BASE 0x60001000 /* UART CPU nonbuf base */
#define TIVA_I2C0_NONBUF_BASE 0x60002000 /* I2C CPU nonbuf base */

View File

@ -113,10 +113,7 @@
#define TIVA_FLASH_CFG_BASE 0x50000000 /* CC26_DUMMY_COMP */
#define TIVA_FCFG1_BASE 0x50001000 /* FCFG1 */
#define TIVA_FCFG2_BASE 0x50002000 /* FCFG2 */
#ifndef TIVA_CCFG_BASE
# define TIVA_CCFG_BASE 0x50003000 /* CCFG */
#endif
#define TIVA_CCFG_BASE_DEFAULT 0x50003000 /* CCFG */
#define TIVA_CCFG_BASE 0x50003000 /* CCFG */
#define TIVA_SSI0_NONBUF_BASE 0x60000000 /* SSI CPU nonbuf base */
#define TIVA_UART0_NONBUF_BASE 0x60001000 /* UART CPU nonbuf base */
#define TIVA_I2C0_NONBUF_BASE 0x60002000 /* I2C CPU nonbuf base */