]> git.sur5r.net Git - u-boot/blobdiff - drivers/ddr/fsl/mpc85xx_ddr_gen2.c
drivers/ddr/fsl: Dual-license DDR driver
[u-boot] / drivers / ddr / fsl / mpc85xx_ddr_gen2.c
index c22dea5c24044096e535aca84bda6071dfee0a18..6da4400566b02939563b220b827f899306e6d90f 100644 (file)
@@ -1,9 +1,7 @@
 /*
  * Copyright 2008-2011 Freescale Semiconductor, Inc.
  *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * Version 2 as published by the Free Software Foundation.
+ * SPDX-License-Identifier:    GPL-2.0 BSD-3-Clause
  */
 
 #include <common.h>
@@ -19,7 +17,8 @@ void fsl_ddr_set_memctl_regs(const fsl_ddr_cfg_regs_t *regs,
                             unsigned int ctrl_num, int step)
 {
        unsigned int i;
-       ccsr_ddr_t *ddr = (void *)CONFIG_SYS_FSL_DDR_ADDR;
+       struct ccsr_ddr __iomem *ddr =
+               (struct ccsr_ddr __iomem *)CONFIG_SYS_FSL_DDR_ADDR;
 
 #if defined(CONFIG_SYS_FSL_ERRATUM_NMG_DDR120) && defined(CONFIG_MPC85xx)
        ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);