diff options
author | Tom Rini <trini@konsulko.com> | 2024-03-19 09:10:30 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-03-19 09:10:30 -0400 |
commit | f048104999db28d49362201eaebfc91adb14f47c (patch) | |
tree | d8a909e13b846bb4a443283a3d948a39bb835995 /arch/mips/lib/udivdi3.c | |
parent | b145877c22b391a4872c875145a8f86f6ffebaba (diff) | |
parent | 386fca68960994ece0d9da8a69a14495b5f1aedf (diff) |
Merge tag 'u-boot-socfpga-next-20240319' of https://source.denx.de/u-boot/custodians/u-boot-socfpga into next
- A new driver in the misc to register setting from device tree. This
also provides user a clean interface and all register settings are
centralized in one place, device tree.
- Enable Agilex5 platform for Intel product. Changes, modification and
new files are created for board, dts, configs and makefile to create
the base for Agilex5.
Build-tested on SoC64 boards, boot tested on some of them.
Diffstat (limited to 'arch/mips/lib/udivdi3.c')
-rw-r--r-- | arch/mips/lib/udivdi3.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/mips/lib/udivdi3.c b/arch/mips/lib/udivdi3.c new file mode 100644 index 00000000000..4d780117cf1 --- /dev/null +++ b/arch/mips/lib/udivdi3.c @@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: GPL-2.0 */ + +#include "libgcc.h" + +#if BITS_PER_LONG == 32 + +#include <div64.h> + +long long __udivdi3(long long u, word_type b) +{ + long long ret = u; + + __div64_32(&ret, b); + return ret; +} + +#endif /* BITS_PER_LONG == 32 */ |