Skip to content
Commit 581df347 authored by Dylan Hung's avatar Dylan Hung Committed by Tom Rini
Browse files

ram: ast2600: Fix incorrect statement of the register polling



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: fde93143 ("ram: aspeed: Add AST2600 DRAM control support")
Review-by: default avatarRyan Chen <ryan_chen@aspeedtech.com>
Signed-off-by: default avatarDylan Hung <dylan_hung@aspeedtech.com>
parent c246d69f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment