[U-Boot] [PATCH 01/28] ddr: altera: sdram: Switch to generic_hweight32()

Marek Vasut marex at denx.de
Sat Aug 1 23:34:30 CEST 2015


Use generic function instead of CPU-specific one.

Signed-off-by: Marek Vasut <marex at denx.de>
---
 drivers/ddr/altera/sdram.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
 
-- 
2.1.4



More information about the U-Boot mailing list