Add board support for hawkboard
PATCH v6 3/3 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 Signed bin, as use the normal UART boot procedure to boot the image.
---
Changes since V5
* Patch based off Ben Gardiner's tree, with merge issues fixed by Ben.
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 | 200 ++++++++++++++++++++++ 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, 859 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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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 +158 -0
158 lines not on this page · raw message
boards.cfg +3 -0
@@ -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 +200 -0
200 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
@@ -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
Paulraj
PATCH v6 3/3 Add board support for hawkboard
Quoted 30 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 address0xe0000.*
hawkboard_nand_config- Used to generate the secondarybootloader(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 address0x20000. The ais file should fit in one block.*
hawkboard_uart_config- This is same as the first image, but with theTEXT_BASEas expected by the RBL(0xc1080000). Create the AIS Signed bin, as use the normal UART boot procedure to boot the image.
Quoted 5 lines
Signed-off-by Sughosh Ganu <[email protected]>Signed-off-by Ben Gardiner <[email protected]>---
Changes since V5
* Patch based off Ben Gardiner's tree, with merge issues fixed by Ben.
This patch did not apply.
Quoted 14 lines
(quoted diff) +1
-0+}boards.cfg +2
-0@@ -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
Quoted 3 lines
hawkboard:SYS_TEXT_BASE=0xc1080000,NAND_U_BOOT +hawkboard_uart arm arm926ejs da8xxevm davinci davinci hawkboard:SYS_TEXT_BASE=0xc1080000
I believe Wolfgang just sent a patch where he got rid of these SYS_TEXT_BASE and then replaced them with CONFIG_SYS_TEXT_BASE in the config.h files.
I don't think that patch is in Wolfgang's next branch though
Please keep this in mind and resubmit after rebasing with u-boot-ti/next
--Sandeep