1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-10-26 16:13:55 +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:
Marek Vasut
2015-08-01 18:46:55 +02:00
parent 03439e4064
commit 58d86144d4

View File

@@ -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
* attempting log2 of result.
*/
bits = hweight32(newrows);
bits = generic_hweight32(newrows);
debug("rows workaround - bits %d\n", bits);