From: Marek Vasut Date: Tue, 29 Dec 2015 08:38:52 +0000 (+0100) Subject: ddr: altera: Init the rule ID in debug code X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=1720fad0f19827b94a845dc26ac7d390edbae836;p=u-boot.git ddr: altera: Init the rule ID in debug code Init the rule ID, otherwise the debug code will always dump the protection settings entry 0. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen Cc: Dinh Nguyen --- diff --git a/drivers/ddr/altera/sdram.c b/drivers/ddr/altera/sdram.c index 1ed2883d1b..2996942172 100644 --- a/drivers/ddr/altera/sdram.c +++ b/drivers/ddr/altera/sdram.c @@ -218,6 +218,7 @@ static void sdram_dump_protection_config(void) readl(&sdr_ctrl->protport_default)); for (rules = 0; rules < 20; rules++) { + rule.rule = rules; sdram_get_rule(&rule); debug("Rule %d, rules ...\n", rules); debug(" sdram start %x\n", rule.sdram_start);