Commit 6d660e773e2b9370f527e86087239bb78643ccf4

Authored by Sughosh Ganu
Committed by Albert ARIBAUD
1 parent 55faa58976

hawkboard/omapl-138: Add support for generating ais image for hawkboard

Parameters used for configuring certain SoC peripherals are parsed
from the cfg file and appended as part of the ais image's header. The
u-boot-spl.ais generated is flashed separately to the nand, so do not
delete the file after generation of u-boot.ais.

Signed-off-by: Sughosh Ganu <urwithsughosh@gmail.com>

Showing 4 changed files with 11 additions and 2 deletions Side-by-side Diff

... ... @@ -79,4 +79,7 @@
79 79 /onenand_ipl/onenand-ipl*
80 80 /onenand_ipl/board/*/onenand*
81 81 /onenand_ipl/board/*/*.S
  82 +
  83 +# spl ais files
  84 +/spl/*.ais
... ... @@ -438,7 +438,8 @@
438 438 rm $(obj)spl/u-boot-spl-pad.bin
439 439  
440 440 $(obj)u-boot.ais: $(obj)spl/u-boot-spl.bin $(obj)u-boot.bin
441   - $(obj)tools/mkimage -s -n /dev/null -T aisimage \
  441 + $(obj)tools/mkimage -s -n $(if $(CONFIG_AIS_CONFIG_FILE),$(CONFIG_AIS_CONFIG_FILE),"/dev/null") \
  442 + -T aisimage \
442 443 -e $(CONFIG_SPL_TEXT_BASE) \
443 444 -d $(obj)spl/u-boot-spl.bin \
444 445 $(obj)spl/u-boot-spl.ais
... ... @@ -447,7 +448,6 @@
447 448 $(obj)spl/u-boot-spl.ais $(obj)spl/u-boot-spl-pad.ais
448 449 cat $(obj)spl/u-boot-spl-pad.ais $(obj)u-boot.bin > \
449 450 $(obj)u-boot.ais
450   - rm $(obj)spl/u-boot-spl{,-pad}.ais
451 451  
452 452 $(obj)u-boot.sb: $(obj)u-boot.bin $(obj)spl/u-boot-spl.bin
453 453 elftosb -zdf imx28 -c $(TOPDIR)/board/$(BOARDDIR)/u-boot.bd \
... ... @@ -797,6 +797,7 @@
797 797 @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -name "*" -type l -print | xargs rm -f
798 798 @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -name "*" -type l -print | xargs rm -f
799 799 @rm -f $(obj)dts/*.tmp
  800 + @rm -f $(obj)spl/u-boot-spl{,-pad}.ais
800 801  
801 802 mrproper \
802 803 distclean: clobber unconfig
board/davinci/da8xxevm/hawkboard-ais-nand.cfg
  1 +# PLL0CFG0 PLL0CFG1
  2 +PLL0 0x00180001 0x00000205
  3 +# PLL1CFG0 PLL1CFG1 DRPYC1R SDCR SDTIMR1 SDTIMR2 SDRCR CLK2XSRC
  4 +DDR2 0x15010001 0x00000002 0x00000043 0x00134632 0x26492a09 0x7d13c722 0x00000249 0x00000000
include/configs/hawkboard.h
... ... @@ -43,6 +43,7 @@
43 43 #define CONFIG_SYS_HZ 1000
44 44 #define CONFIG_SKIP_LOWLEVEL_INIT
45 45 #define CONFIG_BOARD_EARLY_INIT_F
  46 +#define CONFIG_AIS_CONFIG_FILE "board/$(BOARDDIR)/hawkboard-ais-nand.cfg"
46 47  
47 48 #define CONFIG_SYS_DA850_SYSCFG_SUSPSRC ( \
48 49 DAVINCI_SYSCFG_SUSPSRC_EMAC | \