summaryrefslogtreecommitdiff
path: root/drivers/ddr/altera
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2015-08-01 18:46:55 +0200
committerMarek Vasut <marex@denx.de>2015-08-08 14:14:25 +0200
commit58d86144d49b0b8baf421807fb6fff693e979378 (patch)
tree2f591649f5197533d80da5e3d90d58ba97d83e16 /drivers/ddr/altera
parent03439e4064a9aff6185d081540a97e7afc32ac31 (diff)
downloadu-boot-imx-58d86144d49b0b8baf421807fb6fff693e979378.zip
u-boot-imx-58d86144d49b0b8baf421807fb6fff693e979378.tar.gz
u-boot-imx-58d86144d49b0b8baf421807fb6fff693e979378.tar.bz2
ddr: altera: sdram: Switch to generic_hweight32()
Use generic function instead of CPU-specific one. Signed-off-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'drivers/ddr/altera')
-rw-r--r--drivers/ddr/altera/sdram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ddr/altera/sdram.c b/drivers/ddr/altera/sdram.c
index 474df42..9e6acfe 100644
--- a/drivers/ddr/altera/sdram.c
+++ b/drivers/ddr/altera/sdram.c
@@ -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);