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:
parent
d3ef61af31
commit
588deffb6c
|
@ -34,13 +34,22 @@
|
||||||
* Pre-processor Definitions
|
* 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) \
|
#define CXD56XX_LOOPSPERMSEC_BY_CLOCK(clock) \
|
||||||
(uint32_t)(CXD56XX_LOOPSPERMSEC_156MHZ * (clock) / 156000000ull)
|
(uint32_t)(CXD56XX_LOOPSPERMSEC_156MHZ * (clock) / 156000000ull)
|
||||||
|
|
||||||
/* Adjust manually to be up_udelay(1000) is neary equal with up_udelay(999) */
|
/* 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
|
* Public Functions
|
||||||
|
|
Loading…
Reference in New Issue