summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2015-08-01 23:21:23 +0200
committerMarek Vasut <marex@denx.de>2015-08-08 14:14:28 +0200
commit6d01595f637b94e0e985cc5fb2be42b5982d3cd5 (patch)
tree312f29d168df4a95d30677ff3727641b742f78dc
parenta003740aec36a633f2183c034e620f618f6996ae (diff)
downloadu-boot-imx-6d01595f637b94e0e985cc5fb2be42b5982d3cd5.zip
u-boot-imx-6d01595f637b94e0e985cc5fb2be42b5982d3cd5.tar.gz
u-boot-imx-6d01595f637b94e0e985cc5fb2be42b5982d3cd5.tar.bz2
ddr: altera: sdram: Minor cleanup in sdram_get_rule()
Fix the data types and zap unnecessary type change. Signed-off-by: Marek Vasut <marex@denx.de>
-rw-r--r--drivers/ddr/altera/sdram.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/ddr/altera/sdram.c b/drivers/ddr/altera/sdram.c
index da7f27f..22cad88 100644
--- a/drivers/ddr/altera/sdram.c
+++ b/drivers/ddr/altera/sdram.c
@@ -146,14 +146,14 @@ static void sdram_set_rule(struct sdram_prot_rule *prule)
static void sdram_get_rule(struct sdram_prot_rule *prule)
{
- uint32_t addr;
- uint32_t id;
- uint32_t data;
+ u32 addr;
+ u32 id;
+ u32 data;
int ruleno = prule->rule;
/* Read the rule */
writel(ruleno, &sdr_ctrl->prot_rule_rdwr);
- writel(ruleno | (1L << 6), &sdr_ctrl->prot_rule_rdwr);
+ writel(ruleno | (1 << 6), &sdr_ctrl->prot_rule_rdwr);
/* Get the addresses */
addr = readl(&sdr_ctrl->prot_rule_addr);