diff options
author | Marek Vasut <marex@denx.de> | 2015-08-01 16:46:55 (GMT) |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2015-08-08 12:14:25 (GMT) |
commit | 58d86144d49b0b8baf421807fb6fff693e979378 (patch) | |
tree | 2f591649f5197533d80da5e3d90d58ba97d83e16 /drivers/ddr/altera/sdram.c | |
parent | 03439e4064a9aff6185d081540a97e7afc32ac31 (diff) | |
download | u-boot-58d86144d49b0b8baf421807fb6fff693e979378.tar.xz |
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/sdram.c')
-rw-r--r-- | drivers/ddr/altera/sdram.c | 2 |
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); |