Skip to contentSkip to conversation

Add board support for hawkboard

PATCH New Sughosh Ganu 2 participants 2 messages Nov 29, 2010 – Nov 30, 2010 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH v7 1/1 Add board support for hawkboard

The patch adds basic board support for TI's OMAP-L138 based Hawkboard. This board is pretty similar to the da850 EVM. Support for nand and network access is added in this version.

The following bootup procedure is used.

At reset, the Rom Boot Loader(RBL), initialises the ddr and the nand controllers and copies the second stage bootloader(nand_spl) to RAM. The secondary bootloader then copies u-boot from a predefined location in the nand flash to the RAM, and passes control to the u-boot image.

Three config options are supported
* hawkboard_config - Used to create the u-boot.bin. Tftp the u-boot.bin image to the RAM from u-boot, and flash to the nand flash at address 0xe0000.

* hawkboard_nand_config - Used to generate the secondary bootloader(nand_spl) image. This creates an elf file u-boot-spl under nand_spl/. Create an AIS signed image using this file, and flash it to the nand flash at address 0x20000. The ais file should fit in one block.

* hawkboard_uart_config - This is same as the first image, but with the TEXT_BASE as expected by the RBL(0xc1080000). Create the AIS

---
Changes since V6
* Rebased off u-boot-ti next.
* Moved CONFIG_SYS_TEXT_BASE declarations to the board config file.

 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      |  158 +++++++++++++++++
 boards.cfg                                       |    3 +
 doc/README.hawkboard                             |   93 ++++++++++
 include/configs/hawkboard.h                      |  206 ++++++++++++++++++++++
 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, 865 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 f47fca5..ad335bc 100644
@@ -853,6 +853,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 21b2076..ef616c1 100644
@@ -384,7 +384,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 5ddb564..a1d3de2 100644
@@ -29,7 +29,7 @@ endif
 
 LIB	= $(obj)lib$(VENDOR).o
 
-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 88fee50..1816368 100644
@@ -30,6 +30,7 @@ LIB	= $(obj)lib$(BOARD).o
 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 +158 -0

158 lines not on this page · raw message

boards.cfg +3 -0
index 2209676..beb5d81 100644
@@ -76,6 +76,9 @@ pm9261                       arm         arm926ejs   -                   ronetix
 pm9263                       arm         arm926ejs   -                   ronetix        at91
 da830evm                     arm         arm926ejs   da8xxevm            davinci        davinci
 da850evm                     arm         arm926ejs   da8xxevm            davinci        davinci
+hawkboard                    arm         arm926ejs   da8xxevm            davinci        davinci
+hawkboard_nand               arm         arm926ejs   da8xxevm            davinci        davinci     hawkboard:NAND_U_BOOT
+hawkboard_uart               arm         arm926ejs   da8xxevm            davinci        davinci     hawkboard:UART_U_BOOT
 davinci_dm355evm             arm         arm926ejs   dm355evm            davinci        davinci
 davinci_dm355leopard         arm         arm926ejs   dm355leopard        davinci        davinci
 davinci_dm365evm             arm         arm926ejs   dm365evm            davinci        davinci
doc/README.hawkboard new file +93 -0

93 lines not on this page · raw message

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

206 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 v7 1/1 Add board support for hawkboard

Quoted 26 lines

The patch adds basic board support for TI's OMAP-L138 based Hawkboard. This board is pretty similar to the da850 EVM. Support for nand and network access is added in this version.

The following bootup procedure is used.

At reset, the Rom Boot Loader(RBL), initialises the ddr and the nand controllers and copies the second stage bootloader(nand_spl) to RAM. The secondary bootloader then copies u-boot from a predefined location in the nand flash to the RAM, and passes control to the u-boot image.

Three config options are supported
* hawkboard_config - Used to create the u-boot.bin. Tftp the u-boot.bin image to the RAM from u-boot, and flash to the nand flash at address 0xe0000.

* hawkboard_nand_config - Used to generate the secondary bootloader(nand_spl) image. This creates an elf file u-boot-spl under nand_spl/. Create an AIS signed image using this file, and flash it to the nand flash at address 0x20000. The ais file should fit in one block.

Quoted 5 lines

* hawkboard_uart_config - This is same as the first image, but with the TEXT_BASE as expected by the RBL(0xc1080000). Create the AIS

Pushed to u-boot-ti/next

http://git.denx.de/?p=u-boot/u-boot-ti.git;a=commitdiff;h=48571ff00526701c88cfcac1294adf20aeeade74

Regards,
Sandeep