]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
am33xx: general clanups
authorLothar Waßmann <LW@KARO-electronics.de>
Mon, 24 Jun 2013 09:07:51 +0000 (11:07 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Mon, 24 Jun 2013 09:07:51 +0000 (11:07 +0200)
- remove bogus line break in Copyright header
- remove useless {} around register address definition.
- add missing whitespace before '{' in 'if' clause

arch/arm/cpu/armv7/am33xx/ddr.c

index fd9fc4a7206d36b1d2809f648b84e504848110be..5bcd8d44a40ac00d2b1d1edade6faa9cc0b113f1 100644 (file)
@@ -1,8 +1,7 @@
 /*
  * DDR Configuration for AM33xx devices.
  *
- * Copyright (C) 2011 Texas Instruments Incorporated -
-http://www.ti.com/
+ * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License as
@@ -24,8 +23,7 @@ http://www.ti.com/
 /**
  * Base address for EMIF instances
  */
-static struct emif_reg_struct *emif_reg = {
-                               (struct emif_reg_struct *)EMIF4_0_CFG_BASE};
+static struct emif_reg_struct *emif_reg = (void *)EMIF4_0_CFG_BASE;
 
 /**
  * Base address for DDR instance
@@ -47,7 +45,7 @@ void config_sdram(const struct emif_regs *regs)
 {
        writel(regs->ref_ctrl, &emif_reg->emif_sdram_ref_ctrl);
        writel(regs->ref_ctrl, &emif_reg->emif_sdram_ref_ctrl_shdw);
-       if (regs->zq_config){
+       if (regs->zq_config) {
                writel(regs->zq_config, &emif_reg->emif_zq_config);
                writel(regs->sdram_config, &cstat->secure_emif_sdram_config);
        }