diff options
author | Antonio Niño Díaz <antonio.ninodiaz@arm.com> | 2019-01-22 12:51:01 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-22 12:51:01 +0000 |
commit | 94764b06fa75b2f53100dc3627dc74c6079402bf (patch) | |
tree | ecee42597ae0719fb5ac84889923967b278bb322 /plat/ti | |
parent | fcc9ad89287e755e94dff30cf238cb0866ff177b (diff) | |
parent | 50b2f55b69fd0515095e8cc2377f62fdc207074e (diff) |
Merge pull request #1775 from glneo/uart-baud-rate
ti: k3: common: Allow customizing UART baud rate using build options
Diffstat (limited to 'plat/ti')
-rw-r--r-- | plat/ti/k3/common/plat_common.mk | 4 | ||||
-rw-r--r-- | plat/ti/k3/include/platform_def.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/plat/ti/k3/common/plat_common.mk b/plat/ti/k3/common/plat_common.mk index 9b3e7d84..c91a0358 100644 --- a/plat/ti/k3/common/plat_common.mk +++ b/plat/ti/k3/common/plat_common.mk @@ -30,6 +30,10 @@ MULTI_CONSOLE_API := 1 TI_16550_MDR_QUIRK := 1 $(eval $(call add_define,TI_16550_MDR_QUIRK)) +# Allow customizing the UART baud rate +K3_USART_BAUD := 115200 +$(eval $(call add_define,K3_USART_BAUD)) + # Libraries include lib/xlat_tables_v2/xlat_tables.mk diff --git a/plat/ti/k3/include/platform_def.h b/plat/ti/k3/include/platform_def.h index 5d563b6f..9447f04d 100644 --- a/plat/ti/k3/include/platform_def.h +++ b/plat/ti/k3/include/platform_def.h @@ -136,10 +136,6 @@ #define K3_USART_CLK_SPEED 48000000 #endif -#ifndef K3_USART_BAUD -#define K3_USART_BAUD 115200 -#endif - /* Crash console defaults */ #define CRASH_CONSOLE_BASE K3_USART_BASE_ADDRESS #define CRASH_CONSOLE_CLK K3_USART_CLK_SPEED |