]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
fix(intel): fix UART baud rate and clock
authorSieu Mun Tang <sieu.mun.tang@intel.com>
Fri, 1 Jul 2022 01:08:57 +0000 (09:08 +0800)
committerSandrine Bailleux <sandrine.bailleux@arm.com>
Mon, 21 Nov 2022 12:50:10 +0000 (13:50 +0100)
Revise the UART baud rate and clock for general platform build,
SIMIC build and EMU build.

Signed-off-by: Sieu Mun Tang <sieu.mun.tang@intel.com>
Change-Id: I62fefe7b96d5124e75d2810b4fbc1640422b1353

plat/intel/soc/agilex/platform.mk
plat/intel/soc/common/include/platform_def.h
plat/intel/soc/n5x/platform.mk
plat/intel/soc/stratix10/platform.mk

index ccb4e071f046900524771e7daba0551de91a2c76..a1e58fcca883fe91573126ba9394259b67ba2ff6 100644 (file)
@@ -80,5 +80,4 @@ PROGRAMMABLE_RESET_ADDRESS    := 0
 BL2_AT_EL3                     := 1
 BL2_INV_DCACHE                 := 0
 MULTI_CONSOLE_API              := 1
-SIMICS_BUILD                   := 0
 USE_COHERENT_MEM               := 1
index a31adf707effc66baa50b1c3af831fbeda84e76c..2b3f144cac3553fb46ce3923962acbe50d38e02e 100644 (file)
@@ -17,6 +17,7 @@
 #define PLAT_SOCFPGA_STRATIX10                 1
 #define PLAT_SOCFPGA_AGILEX                    2
 #define PLAT_SOCFPGA_N5X                       3
+#define PLAT_SOCFPGA_EMULATOR                  0
 
 /* sysmgr.boot_scratch_cold4 & 5 used for CPU release address for SPL */
 #define PLAT_CPU_RELEASE_ADDR                  0xffd12210
 #define CRASH_CONSOLE_BASE     PLAT_UART0_BASE
 #define PLAT_INTEL_UART_BASE   PLAT_UART0_BASE
 
-#ifndef SIMICS_BUILD
-#define PLAT_BAUDRATE          (115200)
-#define PLAT_UART_CLOCK                (100000000)
-
-#else
+#if PLAT_SOCFPGA_EMULATOR
 #define PLAT_BAUDRATE          (4800)
 #define PLAT_UART_CLOCK                (76800)
-
+#else
+#define PLAT_BAUDRATE          (115200)
+#define PLAT_UART_CLOCK                (100000000)
 #endif
 
 /*******************************************************************************
index 953bf0caf7636852a5b134a25fab918d57631436..be1ad8c6b6eed357ccad884becc402e740408ab7 100644 (file)
@@ -49,5 +49,4 @@ PROGRAMMABLE_RESET_ADDRESS    := 0
 BL2_AT_EL3                     := 1
 BL2_INV_DCACHE                 := 0
 MULTI_CONSOLE_API              := 1
-SIMICS_BUILD                   := 0
 USE_COHERENT_MEM               := 1
index 5c0b4214684568df1722dfbfbc27ea97e1c649f6..b7eb4bd7754ffd1eff4dd7f219439c2962189a9e 100644 (file)
@@ -77,5 +77,4 @@ BL31_SOURCES  +=      \
 
 PROGRAMMABLE_RESET_ADDRESS     := 0
 BL2_AT_EL3                     := 1
-SIMICS_BUILD                   := 0
 USE_COHERENT_MEM               := 1