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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user