X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=board%2Fsocrates%2Fsdram.c;h=aebd02f76cfb1ce05602c12cdd618e40dad873b0;hb=2ecba112d79c49b9ca21cf712132c9746a6f4216;hp=8a9ce790f147e36adb634d60eebae9c31b0140ad;hpb=79f38777947ac7685e2cef8bd977f954ab198c0e;p=oweals%2Fu-boot.git diff --git a/board/socrates/sdram.c b/board/socrates/sdram.c index 8a9ce790f1..aebd02f76c 100644 --- a/board/socrates/sdram.c +++ b/board/socrates/sdram.c @@ -2,30 +2,13 @@ * (C) Copyright 2008 * Sergei Poselenov, Emcraft Systems, sposelenov@emcraft.com. * - * See file CREDITS for list of people who contributed to this - * project. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, - * MA 02111-1307 USA + * SPDX-License-Identifier: GPL-2.0+ */ - #include #include #include -#include +#include #include #include #include @@ -41,7 +24,8 @@ */ phys_size_t fixed_sdram(void) { - volatile ccsr_ddr_t *ddr = (void *)(CONFIG_SYS_MPC8xxx_DDR_ADDR); + struct ccsr_ddr __iomem *ddr = + (struct ccsr_ddr __iomem *)(CONFIG_SYS_FSL_DDR_ADDR); /* * Disable memory controller.