armv7-r/tms570: fix build break

1.
make[1]: *** No rule to make target 'tms570_spi.c', needed by '.depend'.  Stop.

2.
In file included from armv7-r/arm_gicv2.c:36:
armv7-r/gic.h: In function 'arm_gic_nlines':
armv7-r/mpcore.h:63:29: error: 'CHIP_MPCORE_VBASE' undeclared (first use in this function)
   63 | #define MPCORE_ICD_VBASE   (CHIP_MPCORE_VBASE+MPCORE_ICD_OFFSET)
      |                             ^~~~~~~~~~~~~~~~~

Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
chao an
2022-09-21 22:08:50 +08:00
committed by Xiang Xiao
parent ac20a5c0d6
commit fb4c593e89
5 changed files with 7 additions and 6 deletions
+3 -1
View File
@@ -23,7 +23,7 @@ include armv7-r/Make.defs
# SAMA5-specific C source files
CHIP_CSRCS = tms570_boot.c tms570_clockconfig.c tms570_esm.c tms570_gio.c
CHIP_CSRCS += tms570_irq.c tms570_lowputc.c tms570_serial.c tms570_spi.c
CHIP_CSRCS += tms570_irq.c tms570_lowputc.c tms570_serial.c
# Configuration dependent C and assembly language files
@@ -38,3 +38,5 @@ endif
ifeq ($(CONFIG_TMS570_GIO_IRQ),y)
CHIP_CSRCS += tms570_gioirq.c
endif
CMN_CSRCS := $(filter-out arm_gicv2.c, $(CMN_CSRCS))
+1 -1
View File
@@ -203,7 +203,7 @@ static uint32_t check_frequency(uint32_t cnt1_clksrc)
uint32_t _errata_sswf021_45_both_plls(uint32_t count)
{
uint32_t failcode;
uint32_t failcode = 0u;
uint32_t retries;
uint32_t clkcntrlsave;
uint32_t regval;
+1 -1
View File
@@ -154,7 +154,7 @@ int tms570_esm_interrupt(int irq, void *context, void *arg)
/* Crash -- possibly showing diagnostic debug information. */
_err("ERROR: ESM Interrupt. PC: %08x\n", CURRENT_REGS[REG_PC]);
_err("ERROR: ESM Interrupt. PC: %08" PRIx32 "\n", CURRENT_REGS[REG_PC]);
PANIC();
return OK; /* To keep the compiler happy */
}
+2 -2
View File
@@ -128,7 +128,7 @@ static int tms570_attach(struct uart_dev_s *dev);
static void tms570_detach(struct uart_dev_s *dev);
static int tms570_interrupt(int irq, void *context, void *arg);
static int tms570_ioctl(struct file *filep, int cmd, unsigned long arg);
static int tms570_receive(struct uart_dev_s *dev, uint32_t *status);
static int tms570_receive(struct uart_dev_s *dev, unsigned int *status);
static void tms570_rxint(struct uart_dev_s *dev, bool enable);
static bool tms570_rxavailable(struct uart_dev_s *dev);
static void tms570_send(struct uart_dev_s *dev, int ch);
@@ -692,7 +692,7 @@ static int tms570_ioctl(struct file *filep, int cmd, unsigned long arg)
*
****************************************************************************/
static int tms570_receive(struct uart_dev_s *dev, uint32_t *status)
static int tms570_receive(struct uart_dev_s *dev, unsigned int *status)
{
struct tms570_dev_s *priv = (struct tms570_dev_s *)dev->priv;
@@ -25,7 +25,6 @@ include $(TOPDIR)/arch/arm/src/armv7-r/Toolchain.defs
LDSCRIPT = flash-sram.ld
ARCHSCRIPT += $(BOARD_DIR)$(DELIM)scripts$(DELIM)$(LDSCRIPT)
ARCHCPUFLAGS = -mcpu=cortex-r4 -mbig-endian
ARCHPICFLAGS = -fpic -msingle-pic-base -mpic-register=r10
CFLAGS := $(ARCHCFLAGS) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS) -pipe