Commit 5b59d7fc authored by Yuri Tikhonov's avatar Yuri Tikhonov
Browse files

RT72064. stm3220g-eval: simplify SRAM config compile-time check


Signed-off-by: default avatarYuri Tikhonov <yur@emcraft.com>
parent 7675320b
......@@ -42,8 +42,8 @@
* - these timings used both for read & write accesses (not-extended
* mode - WTR register isn't used).
*/
# if (!!defined(CONFIG_SYS_RAM_CS) + !!defined(CONFIG_SYS_FSMC_BCR) + \
!!defined(CONFIG_SYS_FSMC_BTR) != 3)
# if !defined(CONFIG_SYS_RAM_CS) || !defined(CONFIG_SYS_FSMC_BCR) || \
!defined(CONFIG_SYS_FSMC_BTR)
# warning "Incorrect FSMC configuration. Using defaults."
# undef CONFIG_SYS_RAM_CS
# undef CONFIG_SYS_FSMC_BCR
......@@ -56,7 +56,7 @@
STM32F2_FSMC_BCR_MBKEN)
# define CONFIG_SYS_FSMC_BTR (1 << STM32F2_FSMC_BTR_BUSTURN_BIT) | \
(2 << STM32F2_FSMC_BTR_DATAST_BIT)
# endif
# endif /* !CONFIG_SYS_RAM_CS || !CONFIG_SYS_FSMC_BCR || !CONFIG_SYS_FSMC_BTR */
#endif /* CONFIG_NR_DRAM_BANKS */
/*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment