[U-Boot] STM32H7-EVAL Ethernet support
Hello all, Did anyone succeed in bringing up Ethernet support on the STM32H7x3-EVAL board (stm32h743-eval_deconfig)? Please let us know. Regards, Sergei Poselenov, Emcraft Systems ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
Re: [U-Boot] [PATCH 1/1] Fixed clobbered output of the help usb command
Hi Remy, On Mon, 9 Aug 2010 19:26:46 +0200 Remy Bohmer li...@bohmer.net wrote: --- a/common/cmd_usb.c +++ b/common/cmd_usb.c @@ -712,7 +712,7 @@ U_BOOT_CMD( usb part [dev] - print partition table of one or all USB storage devices\n Patch is corrupt. Lines are wrapped. Sorry for that. Now I adjusted wrapping settings on my Claws Mail client. usb read addr blk# cnt - read `cnt' blocks starting at block `blk#'\n - to memory address `addr' + to memory address `addr'\n usb write addr blk# cnt - write `cnt' blocks starting at block `blk#'\n from memory address `addr' ); Applied to u-boot-usb after some small fixes to this patch (header text cleaned up and word wrapping) Thanks. Thank you. Regards, Sergei ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] [PATCH 1/1] Fixed clobbered output of the help usb command
Hello all, I've noticed that the usb help doesn't format the output correctly: = help usb usb - USB sub-system Usage: usb reset - reset (rescan) USB controller usb stop [f] - stop USB [f]=force stop usb tree - show USB device tree usb info [dev] - show available USB devices usb storage - show details of USB storage devices usb dev [dev] - show or set current USB storage device usb part [dev] - print partition table of one or all USB storage devices usb read addr blk# cnt - read `cnt' blocks starting at block `blk#' to memory address `addr'usb write addr blk# cnt - write `cnt' blocks starting at block `blk#' from memory address `addr' = With fix below applied, the output is correct: = help usb usb - USB sub-system Usage: usb reset - reset (rescan) USB controller usb stop [f] - stop USB [f]=force stop usb tree - show USB device tree usb info [dev] - show available USB devices usb storage - show details of USB storage devices usb dev [dev] - show or set current USB storage device usb part [dev] - print partition table of one or all USB storage devices usb read addr blk# cnt - read `cnt' blocks starting at block `blk#' to memory address `addr' usb write addr blk# cnt - write `cnt' blocks starting at block `blk#' from memory address `addr' = Please apply. Regards, Sergei From 473e86d3f5fe82fa7b27e5e73929e0e1f11987f4 Mon Sep 17 00:00:00 2001 From: Sergei Poselenov p...@pollux.denx.de Date: Mon, 9 Aug 2010 13:45:00 +0200 Subject: [PATCH] common/cmd_usb.c: fixed clobbered output in help usb. Signed-off-by: Sergei Poselenov sposele...@emcraft.com --- common/cmd_usb.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/common/cmd_usb.c b/common/cmd_usb.c index dc63f24..226ea0d 100644 --- a/common/cmd_usb.c +++ b/common/cmd_usb.c @@ -712,7 +712,7 @@ U_BOOT_CMD( usb part [dev] - print partition table of one or all USB storage devices\n usb read addr blk# cnt - read `cnt' blocks starting at block `blk#'\n - to memory address `addr' + to memory address `addr'\n usb write addr blk# cnt - write `cnt' blocks starting at block `blk#'\n from memory address `addr' ); -- 1.6.2.5 ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH] Added a do_div() wrapper macro, lldiv().
Hello all, Modified the previous version, as suggested by Wolfgang. Regards, Sergei Description: Added a do_div() wrapper, lldiv(). The new inline function doesn't modify the dividend and returns the result of division, so it is useful in complex expressions, i.e. return(a/b) - return(lldiv(a,b)) Signed-off-by: Sergei Poselenov [EMAIL PROTECTED] diff --git a/include/div64.h b/include/div64.h index c495aef..d833144 100644 --- a/include/div64.h +++ b/include/div64.h @@ -36,4 +36,14 @@ extern uint32_t __div64_32(uint64_t *dividend, uint32_t divisor); __rem; \ }) +/* Wrapper for do_div(). Doesn't modify dividend and returns + * the result, not reminder. + */ +static inline uint64_t lldiv(uint64_t dividend, uint32_t divisor) +{ + uint64_t __res = dividend; + do_div(__res, divisor); + return(__res); +} + #endif /* _ASM_GENERIC_DIV64_H */ ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot