arm-trusted-firmware/drivers/st/ddr/phy/phyinit/include/ddrphy_wrapper.h
Nicolas Le Bayon 79629b1a79 feat(st-ddr): add STM32MP2 driver
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
2024-10-09 15:09:11 +02:00

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 */