From: Wolfgang Denk Date: Mon, 16 Aug 2010 12:33:08 +0200 Subject: [U-Boot] [PATCH 4/7] powerpc/p1021: Add P1021MDS board support In-Reply-To: <1281945949.24612.19.camel@localhost.localdomain> References: <1281945949.24612.19.camel@localhost.localdomain> Message-ID: <20100816103308.E620D1606A5@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Haiying Wang, In message <1281945949.24612.19.camel@localhost.localdomain> you wrote: > This patch supports P1021MDS NAND boot with the following features: > * Boot from NAND flash with SRAM BOOT support.(No NOR flash on this board) > * SPD DDR Initialization > > Signed-off-by: Haiying Wang > Signed-off-by: Mohit Kumar > Signed-off-by: Yu.Liu > --- > MAKEALL | 1 + > Makefile | 4 + > board/freescale/p1021mds/Makefile | 38 ++ > board/freescale/p1021mds/bcsr.c | 22 + > board/freescale/p1021mds/bcsr.h | 18 + > board/freescale/p1021mds/config.mk | 24 ++ > board/freescale/p1021mds/ddr.c | 148 +++++++ > board/freescale/p1021mds/law.c | 24 ++ > board/freescale/p1021mds/p1021mds.c | 122 ++++++ > board/freescale/p1021mds/pci.c | 91 +++++ > board/freescale/p1021mds/tlb.c | 72 ++++ > include/configs/P1021MDS.h | 536 +++++++++++++++++++++++++ > nand_spl/board/freescale/p1021mds/Makefile | 117 ++++++ > nand_spl/board/freescale/p1021mds/nand_boot.c | 59 +++ > 14 files changed, 1276 insertions(+), 0 deletions(-) Entry to MAINTAINERS missing. Additions of boards to Makefile are not allowed any more, please configure in boards.cfg instead. > +void reset_p1021mds_micrel_phy(void) > +{ > + clrbits_8((u8 *)(CONFIG_SYS_BCSR_BASE + 11), BCSR11_ENET_MICRST); > + setbits_8((u8 *)(CONFIG_SYS_BCSR_BASE + 11), BCSR11_ENET_MICRST); Are you sure the reset pulse is long enough? > diff --git a/board/freescale/p1021mds/bcsr.h b/board/freescale/p1021mds/bcsr.h > new file mode 100644 > index 0000000..f3e47d4 > --- /dev/null > +++ b/board/freescale/p1021mds/bcsr.h > @@ -0,0 +1,18 @@ > +/* > + * Copyright (C) 2010 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 as published by the Free > + * Software Foundation; either version 2 of the License, or (at your option) > + * any later version. > + * > + */ > + > +#ifndef __BCSR_H_ > +#define __BCSR_H_ > + > +#include > + > +/*BCSR Utils functions*/ > +void reset_p1021mds_micrel_phy(void); > +#endif /* __BCSR_H_ */ Please avoid adding a new header file just for this single prototype. Why do you need a separate one anyway? Why cannot you implement this in reset_phy() ? > diff --git a/nand_spl/board/freescale/p1021mds/Makefile b/nand_spl/board/freescale/p1021mds/Makefile > new file mode 100644 > index 0000000..2e88d72 > --- /dev/null > +++ b/nand_spl/board/freescale/p1021mds/Makefile ... > +ALL = $(nandobj)u-boot-spl $(nandobj)u-boot-spl.bin $(nandobj)u-boot-spl-16k.bin Line too long. Please check and fix globally. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de It is more rational to sacrifice one life than six. -- Spock, "The Galileo Seven", stardate 2822.3