Skip to contentSkip to conversation

Add board support for hawkboard

PATCH Superseded Sughosh Ganu 2 participants 3 messages Oct 28, 2010 – Oct 29, 2010 Arm (32-bit)

v4 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

PATCH v4 3/3 Add board support for hawkboard

---
Changes since V3
* Added README.hawkboard
* Moved setting of select_chip to nand_boot function
* Removed the superfluous entry in board/davinci/da8xxevm/Makefile added earlier.

 MAINTAINERS                                      |    5 +
 arch/arm/include/asm/arch-davinci/da8xx_common.h |    3 +
 arch/arm/include/asm/arch-davinci/hardware.h     |    5 +-
 board/davinci/common/Makefile                    |    2 +-
 board/davinci/common/davinci_pinmux.c            |  105 +++++++++++
 board/davinci/common/misc.c                      |   75 --------
 board/davinci/da8xxevm/Makefile                  |    1 +
 board/davinci/da8xxevm/hawkboard.c               |   69 ++++++++
 board/davinci/da8xxevm/hawkboard_nand_spl.c      |  164 +++++++++++++++++
 boards.cfg                                       |    3 +
 doc/README.hawkboard                             |   93 ++++++++++
 include/configs/hawkboard.h                      |  204 ++++++++++++++++++++++
 nand_spl/board/davinci/da8xxevm/Makefile         |  141 +++++++++++++++
 nand_spl/board/davinci/da8xxevm/u-boot.lds       |   75 ++++++++
 nand_spl/nand_boot.c                             |    1 +
 15 files changed, 869 insertions(+), 77 deletions(-)
 create mode 100644 board/davinci/common/davinci_pinmux.c
 create mode 100644 board/davinci/da8xxevm/hawkboard.c
 create mode 100644 board/davinci/da8xxevm/hawkboard_nand_spl.c
 create mode 100644 doc/README.hawkboard
 create mode 100644 include/configs/hawkboard.h
 create mode 100644 nand_spl/board/davinci/da8xxevm/Makefile
 create mode 100644 nand_spl/board/davinci/da8xxevm/u-boot.lds
MAINTAINERS +5 -0
index 9258cb1..2a7d23d 100644
@@ -851,6 +851,11 @@ Alex Z
 	lart		SA1100
 	dnp1110		SA1110
 
+Syed Mohammed Khasim <[email protected]>
+Sughosh Ganu <[email protected]>
+
+	hawkboard	ARM926EJS (OMAP-L138)
+
 -------------------------------------------------------------------------
 
 Unknown / orphaned boards:
arch/arm/include/asm/arch-davinci/da8xx_common.h +3 -0
index 7ae63a6..bc3092d 100644
@@ -19,6 +19,9 @@
 #ifndef __COMMON_H
 #define __COMMON_H
 
+#define	HAWKBOARD_KICK0_UNLOCK		0x83e70b13
+#define	HAWKBOARD_KICK1_UNLOCK		0x95a4f1e0
+
 struct lpsc_resource {
 	const int	lpsc_no;
 };
arch/arm/include/asm/arch-davinci/hardware.h +4 -1
index 3520cf8..d006ac1 100644
@@ -379,7 +379,10 @@ int clk_get(enum davinci_clk_ids id);
 /* Boot config */
 struct davinci_syscfg_regs {
 	dv_reg	revid;
-	dv_reg	rsvd[71];
+	dv_reg	rsvd[13];
+	dv_reg	kick0;
+	dv_reg	kick1;
+	dv_reg	rsvd1[56];
 	dv_reg	pinmux[20];
 	dv_reg	suspsrc;
 	dv_reg	chipsig;
board/davinci/common/Makefile +1 -1
index 8d9ea00..dd022f6 100644
@@ -29,7 +29,7 @@ endif
 
 LIB	= $(obj)lib$(VENDOR).a
 
-COBJS	:= misc.o
+COBJS	:= misc.o davinci_pinmux.o
 
 SRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
 OBJS	:= $(addprefix $(obj),$(COBJS))
board/davinci/common/davinci_pinmux.c new file +105 -0

105 lines not on this page · raw message

board/davinci/common/misc.c +0 -75

78 lines not on this page · raw message

board/davinci/da8xxevm/Makefile +1 -0
index 17cbe86..1a67351 100644
@@ -30,6 +30,7 @@ LIB	= $(obj)lib$(BOARD).a
 COBJS-y	+= common.o
 COBJS-$(CONFIG_MACH_DAVINCI_DA830_EVM)	+= da830evm.o
 COBJS-$(CONFIG_MACH_DAVINCI_DA850_EVM)	+= da850evm.o
+COBJS-$(CONFIG_MACH_DAVINCI_HAWK)	+= hawkboard.o
 
 COBJS   := $(COBJS-y)
 
board/davinci/da8xxevm/hawkboard.c new file +69 -0

69 lines not on this page · raw message

board/davinci/da8xxevm/hawkboard_nand_spl.c new file +164 -0

164 lines not on this page · raw message

boards.cfg +3 -0
index 6c2a667..e2c73eb 100644
@@ -372,6 +372,9 @@ davinci_sffsdr	arm	arm926ejs	sffsdr		davinci		davinci
 davinci_sonata	arm	arm926ejs	sonata		davinci		davinci
 da830evm	arm	arm926ejs	da8xxevm	davinci		davinci
 da850evm	arm	arm926ejs	da8xxevm	davinci		davinci
+hawkboard	arm	arm926ejs	da8xxevm	davinci		davinci		hawkboard:SYS_TEXT_BASE=0xc1180000
+hawkboard_nand	arm	arm926ejs	da8xxevm	davinci		davinci		hawkboard:SYS_TEXT_BASE=0xc1080000,NAND_U_BOOT
+hawkboard_uart	arm	arm926ejs	da8xxevm	davinci		davinci		hawkboard:SYS_TEXT_BASE=0xc1080000
 guruplug	arm	arm926ejs	-		Marvell		kirkwood
 mv88f6281gtw_ge	arm	arm926ejs	-		Marvell		kirkwood
 openrd_base	arm	arm926ejs	-		Marvell		kirkwood
doc/README.hawkboard new file +93 -0

93 lines not on this page · raw message

include/configs/hawkboard.h new file +204 -0

204 lines not on this page · raw message

nand_spl/board/davinci/da8xxevm/Makefile new file +141 -0

141 lines not on this page · raw message

nand_spl/board/davinci/da8xxevm/u-boot.lds new file +75 -0

75 lines not on this page · raw message

nand_spl/nand_boot.c +1 -0
index b9fd6f5..76b8566 100644
@@ -236,6 +236,7 @@ void nand_boot(void)
 	/*
 	 * Init board specific nand support
 	 */
+	nand_chip.select_chip = NULL;
 	nand_info.priv = &nand_chip;
 	nand_chip.IO_ADDR_R = nand_chip.IO_ADDR_W = (void  __iomem *)CONFIG_SYS_NAND_BASE;
 	nand_chip.dev_ready = NULL;	/* preset to NULL */
Signature · 1 line
1.7.0.4
#1 lore raw

PATCH v4 3/3 Add board support for hawkboard

Quoted 8 lines · Sughosh Ganu

---
Changes since V3
? * Added README.hawkboard
? * Moved setting of select_chip to nand_boot function
? * Removed the superfluous entry in board/davinci/da8xxevm/Makefile ? ? added earlier.

Applies cleanly to 908614f20f7f0f5df736eed21b88e81ebbf14e86 of
git://git.denx.de/u-boot.git; no checkpatch warnings or errors.

Tested on da850evm with NAND, env.oob and tftp.

Best Regards,
Ben Gardiner

---
Nanometrics Inc.
http://www.nanometrics.ca

#2 lore raw

PATCH v4 3/3 Add board support for hawkboard

In reply to Sughosh Ganu
Quoted 24 lines · Sughosh Ganu

---
Changes since V3
* Added README.hawkboard
* Moved setting of select_chip to nand_boot function
* Removed the superfluous entry in board/davinci/da8xxevm/Makefile added earlier.

 MAINTAINERS                                      |    5 +
 arch/arm/include/asm/arch-davinci/da8xx_common.h |    3 +
 arch/arm/include/asm/arch-davinci/hardware.h     |    5 +-
 board/davinci/common/Makefile                    |    2 +-
 board/davinci/common/davinci_pinmux.c            |  105 +++++++++++
 board/davinci/common/misc.c                      |   75 --------
 board/davinci/da8xxevm/Makefile                  |    1 +
 board/davinci/da8xxevm/hawkboard.c               |   69 ++++++++
 board/davinci/da8xxevm/hawkboard_nand_spl.c      |  164 +++++++++++++++++
 boards.cfg                                       |    3 +
 doc/README.hawkboard                             |   93 ++++++++++
 include/configs/hawkboard.h                      |  204 ++++++++++++++++++++++
 nand_spl/board/davinci/da8xxevm/Makefile         |  141 +++++++++++++++
 nand_spl/board/davinci/da8xxevm/u-boot.lds       |   75 ++++++++
 nand_spl/nand_boot.c                             |    1 +
Quoted 8 lines
 15 files changed, 869 insertions(+), 77 deletions(-)
 create mode 100644 board/davinci/common/davinci_pinmux.c
 create mode 100644 board/davinci/da8xxevm/hawkboard.c
 create mode 100644 board/davinci/da8xxevm/hawkboard_nand_spl.c
 create mode 100644 doc/README.hawkboard
 create mode 100644 include/configs/hawkboard.h
 create mode 100644 nand_spl/board/davinci/da8xxevm/Makefile
 create mode 100644 nand_spl/board/davinci/da8xxevm/u-boot.lds

Can this be reviewed please. I would need to make some changes for the nand_spl due to the removal of CONFIG_SKIP_RELOCATE_UBOOT. I can post the next version incorporating all the review comments along with this change. Thanks.

-sughosh