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:
parent
03439e4064
commit
58d86144d4
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user