projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03439e4
)
ddr: altera: sdram: Switch to generic_hweight32()
author
Marek Vasut
<marex@denx.de>
Sat, 1 Aug 2015 16:46:55 +0000
(18:46 +0200)
committer
Marek Vasut
<marex@denx.de>
Sat, 8 Aug 2015 12:14:25 +0000
(14:14 +0200)
Use generic function instead of CPU-specific one.
Signed-off-by: Marek Vasut <marex@denx.de>
drivers/ddr/altera/sdram.c
patch
|
blob
|
history
diff --git
a/drivers/ddr/altera/sdram.c
b/drivers/ddr/altera/sdram.c
index 474df4265417eb6d9d20a8248864d1c566c8d418..9e6acfe13b773fe137f39ffde63da0d548a60e06 100644
(file)
--- 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);