TMS570: Correct a few problems introduced in previous commits

This commit is contained in:
Gregory Nutt 2015-12-17 12:52:15 -06:00
parent 6baccab3ae
commit 0f7f364865
2 changed files with 6 additions and 3 deletions

View File

@ -86,7 +86,7 @@
#define TMS570_ESM_IECR1 (TMS570_ESM_BASE+TMS570_ESM_IECR1_OFFSET)
#define TMS570_ESM_ILSR1 (TMS570_ESM_BASE+TMS570_ESM_ILSR1_OFFSET)
#define TMS570_ESM_ILCR1 (TMS570_ESM_BASE+TMS570_ESM_ILCR1_OFFSET)
#define TMS570_ESM_SR1(n) (TMS570_ESM_BASE+TMS570_ESM_SR_OFFSET(n))
#define TMS570_ESM_SR(n) (TMS570_ESM_BASE+TMS570_ESM_SR_OFFSET(n))
# define TMS570_ESM_SR1 (TMS570_ESM_BASE+TMS570_ESM_SR1_OFFSET)
# define TMS570_ESM_SR2 (TMS570_ESM_BASE+TMS570_ESM_SR2_OFFSET)
# define TMS570_ESM_SR3 (TMS570_ESM_BASE+TMS570_ESM_SR3_OFFSET)
@ -161,7 +161,7 @@
#define ESM_EKR_MASK 0x0000000f /* Bits 0-3: Error key value */
# define ESM_EKR_NORMAL 0x00000000 /* Activates normal mode */
# define ESM_EKR_ERROR 0x00000005 /* nERROR set high when LTC completes */
# define ESM_EKR_NORMAL 0x0000000a /* Forces error on nERROR pin */
# define ESM_EKR_FORCE 0x0000000a /* Forces error on nERROR pin */
/* ESM Status Shadow Register 2 */

View File

@ -56,9 +56,12 @@
#include "arm.h"
#include "cache.h"
#include "fpu.h"
#include "sctlr.h"
#include "up_internal.h"
#include "up_arch.h"
#include "chip/tms570_esm.h"
#include "tms570_clockconfig.h"
#include "tms570_boot.h"
/****************************************************************************
@ -185,7 +188,7 @@ static inline void tms570_event_export(void)
{
uint32_t pmcr = cp15_rdpmcr();
pmcr |= PCMR_X;
cp15_wrpmcr(pmcr)
cp15_wrpmcr(pmcr);
}
/****************************************************************************