[PATCH 1/3] ram: ast2600: Fix incorrect statement of the register polling
Tom Rini
trini at konsulko.com
Thu Nov 24 22:33:06 CET 2022
On Fri, Nov 11, 2022 at 03:30:06PM +0800, Dylan Hung wrote:
> The condition "~data" in the if-statement is a typo. The original
> intention is to poll if SDRAM_PHYCTRL0_INIT bit equals to 0. So use
> "data == 0" for instead.
>
> Besides, the bit[1] of "phy_status" register is hardwired to
> SDRAM_PHYCTRL0_INIT (with inverse logic). Since SDRAM_PHYCTRL0_INIT has
> already done, remove the unnecessary checking of phy_status[1].
>
> Fixes: fde93143469f ("ram: aspeed: Add AST2600 DRAM control support")
>
> Signed-off-by: Dylan Hung <dylan_hung at aspeedtech.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20221124/29900764/attachment.sig>
More information about the U-Boot
mailing list