X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2Fsocrates%2Fsdram.c;h=4c76b4d0a803c69200e4eb402060b34e9cc76e0f;hb=83d290c56fab2d38cd1ab4c4cc7099559c1d5046;hp=8a9ce790f147e36adb634d60eebae9c31b0140ad;hpb=e76cd5d4cf311da7d40adc5d6e9b425509cf0205;p=u-boot diff --git a/board/socrates/sdram.c b/board/socrates/sdram.c index 8a9ce790f1..4c76b4d0a8 100644 --- a/board/socrates/sdram.c +++ b/board/socrates/sdram.c @@ -1,31 +1,13 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (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 */ - #include #include #include -#include +#include #include #include #include @@ -41,7 +23,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.