From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal Simek Date: Fri, 26 Jul 2013 07:49:58 +0200 Subject: [U-Boot] [PATCH 1/3] zynq: Add new ddrc driver for ECC support In-Reply-To: References: Message-ID: <51F20E06.8060202@monstr.eu> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 07/25/2013 04:18 PM, Michal Simek wrote: > The first 1MB is not initialized by first stage bootloader. > Check if memory is setup to 16bit mode and ECC is enabled. > If it is, clear the first 1MB. > Also u-boot should report only the half size of memory. > > Signed-off-by: Michal Simek > Acked-by: Jagannadha Sutradharudu Teki > --- > arch/arm/cpu/armv7/zynq/Makefile | 1 + > arch/arm/cpu/armv7/zynq/ddrc.c | 65 ++++++++++++++++++++++++++++++ > arch/arm/include/asm/arch-zynq/hardware.h | 8 ++++ > arch/arm/include/asm/arch-zynq/sys_proto.h | 1 + > board/xilinx/zynq/board.c | 2 + > 5 files changed, 77 insertions(+) > create mode 100644 arch/arm/cpu/armv7/zynq/ddrc.c > > diff --git a/arch/arm/cpu/armv7/zynq/Makefile b/arch/arm/cpu/armv7/zynq/Makefile > index 388085d..f38b3b7 100644 > --- a/arch/arm/cpu/armv7/zynq/Makefile > +++ b/arch/arm/cpu/armv7/zynq/Makefile > @@ -30,6 +30,7 @@ LIB = $(obj)lib$(SOC).o > > COBJS-y := timer.o > COBJS-y += cpu.o > +COBJS-y += ddrc.o > COBJS-y += slcr.o > > COBJS := $(COBJS-y) > diff --git a/arch/arm/cpu/armv7/zynq/ddrc.c b/arch/arm/cpu/armv7/zynq/ddrc.c > new file mode 100644 > index 0000000..e8f8c19 > --- /dev/null > +++ b/arch/arm/cpu/armv7/zynq/ddrc.c > @@ -0,0 +1,65 @@ > +/* > + * Copyright (C) 2012 Michal Simek > + * Copyright (C) 2012 Xilinx, Inc. All rights reserved. > + * > + * 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 > + */ Let me NACK this patch by myself. I will add SPDX License identifier. Thanks, Michal -- Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91 w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel - Microblaze cpu - http://www.monstr.eu/fdt/ Maintainer of Linux kernel - Xilinx Zynq ARM architecture Microblaze U-BOOT custodian and responsible for u-boot arm zynq platform -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: