mirror of
https://xff.cz/git/u-boot/
synced 2025-10-27 16:43:32 +01:00
ddr: altera: sdram: Switch to generic_hweight32()
Use generic function instead of CPU-specific one. Signed-off-by: Marek Vasut <marex@denx.de>
This commit is contained in:
@@ -64,7 +64,7 @@ static int compute_errata_rows(unsigned long long memsize, int cs, int width,
|
|||||||
* Need to see if result is ordinal power of 2 before
|
* Need to see if result is ordinal power of 2 before
|
||||||
* attempting log2 of result.
|
* attempting log2 of result.
|
||||||
*/
|
*/
|
||||||
bits = hweight32(newrows);
|
bits = generic_hweight32(newrows);
|
||||||
|
|
||||||
debug("rows workaround - bits %d\n", bits);
|
debug("rows workaround - bits %d\n", bits);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user