arch: cxd56xx: Adjust loops per msec for the new memory map

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
This commit is contained in:
Masayuki Ishikawa 2021-06-03 06:25:17 +09:00 committed by Xiang Xiao
parent d3ef61af31
commit 588deffb6c
1 changed files with 11 additions and 2 deletions

View File

@ -34,13 +34,22 @@
* Pre-processor Definitions
****************************************************************************/
#define CXD56XX_LOOPSPERMSEC_156MHZ 7428ull
#ifdef CONFIG_CXD56_USE_SYSBUS
# define CXD56XX_LOOPSPERMSEC_156MHZ 15533ull
#else
# define CXD56XX_LOOPSPERMSEC_156MHZ 7428ull
#endif
#define CXD56XX_LOOPSPERMSEC_BY_CLOCK(clock) \
(uint32_t)(CXD56XX_LOOPSPERMSEC_156MHZ * (clock) / 156000000ull)
/* Adjust manually to be up_udelay(1000) is neary equal with up_udelay(999) */
#define CXD56XX_LOOPSPERUSEC_ADJUST 810ul;
#ifdef CONFIG_CXD56_USE_SYSBUS
# define CXD56XX_LOOPSPERUSEC_ADJUST 1010ul;
#else
# define CXD56XX_LOOPSPERUSEC_ADJUST 810ul;
#endif
/****************************************************************************
* Public Functions