mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 07:45:16 +08:00
i.MX6: Don't output the alphabet if CONFIG_DEBUG_FEATURES is not set.
This commit is contained in:
@@ -312,7 +312,7 @@ __cpu3_start:
|
|||||||
* after SMP cache coherency has been setup.
|
* after SMP cache coherency has been setup.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if !defined(CPU_DCACHE_DISABLE) && !defined(CONFIG_SMP)
|
#if 0 /* !defined(CPU_DCACHE_DISABLE) && !defined(CONFIG_SMP) */
|
||||||
/* Dcache enable
|
/* Dcache enable
|
||||||
*
|
*
|
||||||
* SCTLR_C Bit 2: DCache enable
|
* SCTLR_C Bit 2: DCache enable
|
||||||
|
|||||||
@@ -65,6 +65,16 @@
|
|||||||
#include "imx_serial.h"
|
#include "imx_serial.h"
|
||||||
#include "imx_boot.h"
|
#include "imx_boot.h"
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* Pre-processor Definitions
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
|
#ifdef CONFIG_DEBUG_FEATURES
|
||||||
|
# define PROGRESS(c) imx_lowputc(c)
|
||||||
|
#else
|
||||||
|
# define PROGRESS(c)
|
||||||
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Data
|
* Public Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
@@ -443,7 +453,7 @@ void arm_boot(void)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
imx_setupmappings();
|
imx_setupmappings();
|
||||||
imx_lowputc('A');
|
PROGRESS('A');
|
||||||
|
|
||||||
/* Make sure that all other CPUs are in the disabled state. This is a
|
/* Make sure that all other CPUs are in the disabled state. This is a
|
||||||
* formality because the other CPUs are actually running then we have
|
* formality because the other CPUs are actually running then we have
|
||||||
@@ -451,13 +461,13 @@ void arm_boot(void)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
imx_cpu_disable();
|
imx_cpu_disable();
|
||||||
imx_lowputc('B');
|
PROGRESS('B');
|
||||||
|
|
||||||
#ifdef CONFIG_SMP
|
#ifdef CONFIG_SMP
|
||||||
/* Enable SMP cache coherency for CPU0 */
|
/* Enable SMP cache coherency for CPU0 */
|
||||||
|
|
||||||
arm_enable_smp(0);
|
arm_enable_smp(0);
|
||||||
imx_lowputc('C');
|
PROGRESS('C');
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Provide a special mapping for the OCRAM interrupt vector positioned in
|
/* Provide a special mapping for the OCRAM interrupt vector positioned in
|
||||||
@@ -465,7 +475,7 @@ void arm_boot(void)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
imx_vectormapping();
|
imx_vectormapping();
|
||||||
imx_lowputc('D');
|
PROGRESS('D');
|
||||||
|
|
||||||
#if defined(CONFIG_SMP) && defined(SMP_INTERCPU_NONCACHED)
|
#if defined(CONFIG_SMP) && defined(SMP_INTERCPU_NONCACHED)
|
||||||
/* Provide a special mapping for the OCRAM interrupt vector positioned in
|
/* Provide a special mapping for the OCRAM interrupt vector positioned in
|
||||||
@@ -473,7 +483,7 @@ void arm_boot(void)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
imx_intercpu_mapping();
|
imx_intercpu_mapping();
|
||||||
imx_lowputc('E');
|
PROGRESS('E');
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_RAMFUNCS
|
#ifdef CONFIG_ARCH_RAMFUNCS
|
||||||
@@ -488,14 +498,14 @@ void arm_boot(void)
|
|||||||
*dest++ = *src++;
|
*dest++ = *src++;
|
||||||
}
|
}
|
||||||
|
|
||||||
imx_lowputc('F');
|
PROGRESS('F');
|
||||||
|
|
||||||
/* Flush the copied RAM functions into physical RAM so that will
|
/* Flush the copied RAM functions into physical RAM so that will
|
||||||
* be available when fetched into the I-Cache.
|
* be available when fetched into the I-Cache.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
arch_clean_dcache((uintptr_t)&_sramfuncs, (uintptr_t)&_eramfuncs)
|
arch_clean_dcache((uintptr_t)&_sramfuncs, (uintptr_t)&_eramfuncs)
|
||||||
imx_lowputc('G');
|
PROGRESS('G');
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Setup up vector block. _vector_start and _vector_end are exported from
|
/* Setup up vector block. _vector_start and _vector_end are exported from
|
||||||
@@ -503,23 +513,23 @@ void arm_boot(void)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
imx_copyvectorblock();
|
imx_copyvectorblock();
|
||||||
imx_lowputc('H');
|
PROGRESS('H');
|
||||||
|
|
||||||
/* Disable the watchdog timer */
|
/* Disable the watchdog timer */
|
||||||
|
|
||||||
imx_wdtdisable();
|
imx_wdtdisable();
|
||||||
imx_lowputc('I');
|
PROGRESS('I');
|
||||||
|
|
||||||
/* Initialize clocking to settings provided by board-specific logic */
|
/* Initialize clocking to settings provided by board-specific logic */
|
||||||
|
|
||||||
imx_clockconfig();
|
imx_clockconfig();
|
||||||
imx_lowputc('J');
|
PROGRESS('J');
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_FPU
|
#ifdef CONFIG_ARCH_FPU
|
||||||
/* Initialize the FPU */
|
/* Initialize the FPU */
|
||||||
|
|
||||||
arm_fpuconfig();
|
arm_fpuconfig();
|
||||||
imx_lowputc('K');
|
PROGRESS('K');
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Perform board-specific memroy initialization, This must include
|
/* Perform board-specific memroy initialization, This must include
|
||||||
@@ -531,7 +541,7 @@ void arm_boot(void)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
imx_memory_initialize();
|
imx_memory_initialize();
|
||||||
imx_lowputc('L');
|
PROGRESS('L');
|
||||||
|
|
||||||
#ifdef NEED_SDRAM_REMAPPING
|
#ifdef NEED_SDRAM_REMAPPING
|
||||||
/* SDRAM was configured in a temporary state to support low-level
|
/* SDRAM was configured in a temporary state to support low-level
|
||||||
@@ -540,7 +550,7 @@ void arm_boot(void)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
imx_remap();
|
imx_remap();
|
||||||
imx_lowputc('M');
|
PROGRESS('M');
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_BOOT_SDRAM_DATA
|
#ifdef CONFIG_BOOT_SDRAM_DATA
|
||||||
@@ -549,7 +559,7 @@ void arm_boot(void)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
arm_data_initialize();
|
arm_data_initialize();
|
||||||
imx_lowputc('N');
|
PROGRESS('N');
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Perform board-specific device initialization. This would include
|
/* Perform board-specific device initialization. This would include
|
||||||
@@ -557,7 +567,7 @@ void arm_boot(void)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
imx_board_initialize();
|
imx_board_initialize();
|
||||||
imx_lowputc('O');
|
PROGRESS('O');
|
||||||
|
|
||||||
#if defined(CONFIG_SMP) && defined(SMP_INTERCPU_NONCACHED)
|
#if defined(CONFIG_SMP) && defined(SMP_INTERCPU_NONCACHED)
|
||||||
/* Initialize the uncached, inter-CPU communications area */
|
/* Initialize the uncached, inter-CPU communications area */
|
||||||
@@ -567,13 +577,13 @@ void arm_boot(void)
|
|||||||
*dest++ = 0;
|
*dest++ = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
imx_lowputc('P');
|
PROGRESS('P');
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Perform common, low-level chip initialization (might do nothing) */
|
/* Perform common, low-level chip initialization (might do nothing) */
|
||||||
|
|
||||||
imx_lowsetup();
|
imx_lowsetup();
|
||||||
imx_lowputc('Q');
|
PROGRESS('Q');
|
||||||
|
|
||||||
#ifdef USE_EARLYSERIALINIT
|
#ifdef USE_EARLYSERIALINIT
|
||||||
/* Perform early serial initialization if we are going to use the serial
|
/* Perform early serial initialization if we are going to use the serial
|
||||||
@@ -581,7 +591,7 @@ void arm_boot(void)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
imx_earlyserialinit();
|
imx_earlyserialinit();
|
||||||
imx_lowputc('R');
|
PROGRESS('R');
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Now we can enable all other CPUs. The enabled CPUs will start execution
|
/* Now we can enable all other CPUs. The enabled CPUs will start execution
|
||||||
@@ -590,6 +600,6 @@ void arm_boot(void)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
imx_cpu_enable();
|
imx_cpu_enable();
|
||||||
imx_lowputc('S');
|
PROGRESS('S');
|
||||||
imx_lowputc('\n');
|
PROGRESS('\n');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user