mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-24 05:54:08 +00:00

Add driver to support DDR on STM32MP2 platform. It drives the DDR PHY and its firmware, as well as the DDR controller. Signed-off-by: Nicolas Le Bayon <nicolas.le.bayon@st.com> Signed-off-by: Maxime Méré <maxime.mere@foss.st.com> Change-Id: I93de2db1b9378d5654e76b3bf6f3407d80bc4ca5
20 lines
383 B
C
20 lines
383 B
C
/*
|
|
* Copyright (C) 2021-2024, STMicroelectronics - All Rights Reserved
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef DDRPHY_WRAPPER_H
|
|
#define DDRPHY_WRAPPER_H
|
|
|
|
static inline long long fmodll(long long x, long long y)
|
|
{
|
|
return x - ((x / y) * y);
|
|
}
|
|
|
|
static inline int fmodi(int x, int y)
|
|
{
|
|
return (int)fmodll((long long)x, (long long)y);
|
|
}
|
|
|
|
#endif /* DDRPHY_WRAPPER_H */
|