Adding back support for updating i2c config params
authorSandeep Paulraj <s-paulraj@ti.com>
Fri, 7 Oct 2011 14:14:43 +0000 (10:14 -0400)
committerSandeep Paulraj <s-paulraj@ti.com>
Fri, 7 Oct 2011 14:14:43 +0000 (10:14 -0400)
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
release.sh
src/make/Makefile
src/make/makestg2

index e9fcb6833af1773cc978ba3cff80472d051cde8c..5f44537b4ced4abe3cf3ae41c872d93100a68dba 100755 (executable)
@@ -51,7 +51,9 @@ make clean
 make evm_c6455 ENDIAN=little
 popd
 # Copy the files to the Binary package
+cp -f src/make/bin/i2crom_0x50_c6455_le.dat ibl_bin_$IBL_VERSION/c6455/le/
 cp -f src/make/bin/i2crom_0x50_c6455_le.bin ibl_bin_$IBL_VERSION/c6455/le/
+cp -f src/make/bin/i2cparam_0x50_c6455_le_0x500.out ibl_bin_$IBL_VERSION/c6455/le/
 
 # Build C6455 EVM BE
 pushd src/make
@@ -59,7 +61,9 @@ make clean
 make evm_c6455 ENDIAN=big
 popd
 # Copy the files to the Binary package
+cp -f src/make/bin/i2crom_0x50_c6455_be.dat ibl_bin_$IBL_VERSION/c6455/be/
 cp -f src/make/bin/i2crom_0x50_c6455_be.bin ibl_bin_$IBL_VERSION/c6455/be/
+cp -f src/make/bin/i2cparam_0x50_c6455_be_0x500.out ibl_bin_$IBL_VERSION/c6455/be/
 
 
 # Build C6472 EVM LE
@@ -68,8 +72,9 @@ make clean
 make evm_c6472 ENDIAN=little
 popd
 # Copy the files to the Binary package
+cp -f src/make/bin/i2crom_0x50_c6472_le.dat ibl_bin_$IBL_VERSION/c6472/le/
 cp -f src/make/bin/i2crom_0x50_c6472_le.bin ibl_bin_$IBL_VERSION/c6472/le/
-
+cp -f src/make/bin/i2cparam_0x50_c6472_le_0x500.out ibl_bin_$IBL_VERSION/c6472/le/
 
 # Build C6472 EVM BE
 pushd src/make
@@ -77,8 +82,9 @@ make clean
 make evm_c6472 ENDIAN=big
 popd
 # Copy the files to the Binary package
+cp -f src/make/bin/i2crom_0x50_c6472_be.dat ibl_bin_$IBL_VERSION/c6472/be/
 cp -f src/make/bin/i2crom_0x50_c6472_be.bin ibl_bin_$IBL_VERSION/c6472/be/
-
+cp -f src/make/bin/i2cparam_0x50_c6472_be_0x500.out ibl_bin_$IBL_VERSION/c6472/be/
 
 # Build c6474 EVM little endian
 pushd src/make
@@ -86,8 +92,9 @@ make clean
 make evm_c6474 ENDIAN=little
 popd
 # Copy the files to the Binary package
+cp -f src/make/bin/i2crom_0x50_c6474_le.dat ibl_bin_$IBL_VERSION/c6474/le/
 cp -f src/make/bin/i2crom_0x50_c6474_le.bin ibl_bin_$IBL_VERSION/c6474/le/
-
+cp -f src/make/bin/i2cparam_0x50_c6474_le_0x200.out ibl_bin_$IBL_VERSION/c6474/le/
 
 
 # Build c6474 EVM Big endian
@@ -96,7 +103,9 @@ make clean
 make evm_c6474 ENDIAN=big
 popd
 # Copy the files to the Binary package
+cp -f src/make/bin/i2crom_0x50_c6474_be.dat ibl_bin_$IBL_VERSION/c6474/be/
 cp -f src/make/bin/i2crom_0x50_c6474_be.bin ibl_bin_$IBL_VERSION/c6474/be/
+cp -f src/make/bin/i2cparam_0x50_c6474_be_0x200.out ibl_bin_$IBL_VERSION/c6474/be/
 
 # Build c6474l EVM little Endian
 pushd src/make
@@ -104,8 +113,9 @@ make clean
 make evm_c6474l ENDIAN=little
 popd
 # Copy the files to the Binary package
+cp -f src/make/bin/i2crom_0x50_c6474l_le.dat ibl_bin_$IBL_VERSION/c6474l/le/
 cp -f src/make/bin/i2crom_0x50_c6474l_le.bin ibl_bin_$IBL_VERSION/c6474l/le/
-
+cp -f src/make/bin/i2cparam_0x50_c6474l_le_0x200.out ibl_bin_$IBL_VERSION/c6474l/le/
 
 # Build c6474l EVM Big Endian
 pushd src/make
@@ -113,55 +123,63 @@ make clean
 make evm_c6474l ENDIAN=big
 popd
 # Copy the files to the Binary package
+cp -f src/make/bin/i2crom_0x50_c6474l_be.dat ibl_bin_$IBL_VERSION/c6474l/be/
 cp -f src/make/bin/i2crom_0x50_c6474l_be.bin ibl_bin_$IBL_VERSION/c6474l/be/
-
+cp -f src/make/bin/i2cparam_0x50_c6474l_be_0x200.out ibl_bin_$IBL_VERSION/c6474l/be/
 
 # Build c6457 EVM little
 pushd src/make
 make clean
 make evm_c6457 ENDIAN=little
 popd
+cp -f src/make/bin/i2crom_0x50_c6457_le.dat ibl_bin_$IBL_VERSION/c6457/le/
 cp -f src/make/bin/i2crom_0x50_c6457_le.bin ibl_bin_$IBL_VERSION/c6457/le/
-
+cp -f src/make/bin/i2cparam_0x50_c6457_le_0x200.out ibl_bin_$IBL_VERSION/c6457/le/
 
 # Build c6457 EVM big
 pushd src/make
 make clean
 make evm_c6457 ENDIAN=big
 popd
+cp -f src/make/bin/i2crom_0x50_c6457_be.dat ibl_bin_$IBL_VERSION/c6457/be/
 cp -f src/make/bin/i2crom_0x50_c6457_be.bin ibl_bin_$IBL_VERSION/c6457/be/
-
+cp -f src/make/bin/i2cparam_0x50_c6457_be_0x200.out ibl_bin_$IBL_VERSION/c6457/be/
 
 # Build c6678 EVM LE
 pushd src/make
 make clean
 make evm_c6678_i2c ENDIAN=little I2C_BUS_ADDR=0x51 
 popd
+cp -f src/make/bin/i2crom_0x51_c6678_le.dat ibl_bin_$IBL_VERSION/c6678/le/
 cp -f src/make/bin/i2crom_0x51_c6678_le.bin ibl_bin_$IBL_VERSION/c6678/le/
-
+cp -f src/make/bin/i2cparam_0x51_c6678_le_0x500.out ibl_bin_$IBL_VERSION/c6678/le/
 
 # Build c6678 EVM BE
 pushd src/make
 make clean
 make evm_c6678_i2c ENDIAN=big I2C_BUS_ADDR=0x51 
 popd
+cp -f src/make/bin/i2crom_0x51_c6678_be.dat ibl_bin_$IBL_VERSION/c6678/be/
 cp -f src/make/bin/i2crom_0x51_c6678_be.bin ibl_bin_$IBL_VERSION/c6678/be/
+cp -f src/make/bin/i2cparam_0x51_c6678_be_0x500.out ibl_bin_$IBL_VERSION/c6678/be/
 
 # Build c6670 EVM LE
 pushd src/make
 make clean
 make evm_c6670_i2c ENDIAN=little I2C_BUS_ADDR=0x51 
 popd
+cp -f src/make/bin/i2crom_0x51_c6670_le.dat ibl_bin_$IBL_VERSION/c6670/le/
 cp -f src/make/bin/i2crom_0x51_c6670_le.bin ibl_bin_$IBL_VERSION/c6670/le/
-
+cp -f src/make/bin/i2cparam_0x51_c6670_le_0x500.out ibl_bin_$IBL_VERSION/c6670/le/
 
 # Build c6670 EVM BE
 pushd src/make
 make clean
 make evm_c6670_i2c ENDIAN=big I2C_BUS_ADDR=0x51 
 popd
+cp -f src/make/bin/i2crom_0x51_c6670_be.dat ibl_bin_$IBL_VERSION/c6670/be/
 cp -f src/make/bin/i2crom_0x51_c6670_be.bin ibl_bin_$IBL_VERSION/c6670/be/
-
+cp -f src/make/bin/i2cparam_0x51_c6670_be_0x500.out ibl_bin_$IBL_VERSION/c6670/be/
 
 # Create Tar archive for binary package
 tar -czf ibl_bin_$IBL_VERSION.tgz ibl_bin_$IBL_VERSION
index 82645ee9adc87a5dfa889743b99cbbda4a16edaf..c68aca9a7b03f92b44ecb2c461a265ab3e041e42 100644 (file)
@@ -273,14 +273,15 @@ evm_c6455:
     COMPACT_I2C=no ENDIAN_MODE=$(ENDIAN) CEXCLUDES='ELF COFF BIS NAND_GPIO MULTI_BOOT' c6455
        cp -f ibl_c6455/i2crom.dat bin/i2crom_0x50_c6455_$(ENDIAN_SFX).dat
        cp -f ibl_c6455/i2crom.bin bin/i2crom_0x50_c6455_$(ENDIAN_SFX).bin
-       
+       cp -f ../util/i2cConfig/i2cparam_c6455_$(ENDIAN_SFX).out bin/i2cparam_0x50_c6455_$(ENDIAN_SFX)_0x500.out
+
 # The c6472 EVM has a 128k eeprom (64k at 0x50, 64k at 0x51), so both endians are built with full functionality
 evm_c6472:
        make -f makestg1 ARCH=c64x TARGET=c6472 EVM=c6472 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=0x500 \
     COMPACT_I2C=yes ENDIAN_MODE=$(ENDIAN) CEXCLUDES='ELF COFF BIS MULTI_BOOT' c6472
        cp -f ibl_c6472/i2crom.dat bin/i2crom_0x50_c6472_$(ENDIAN_SFX).dat
        cp -f ibl_c6472/i2crom.bin bin/i2crom_0x50_c6472_$(ENDIAN_SFX).bin
-       
+       cp -f ../util/i2cConfig/i2cparam_c6472_$(ENDIAN_SFX).out bin/i2cparam_0x50_c6472_$(ENDIAN_SFX)_0x500.out
 
 # The 6474 EVM has a 32k eeprom. A stripped down version is build with only one endian.
 evm_c6474:
@@ -288,21 +289,21 @@ evm_c6474:
     COMPACT_I2C=yes ENDIAN_MODE=$(ENDIAN) CEXCLUDES='ELF NAND_GPIO COFF BIS MULTI_BOOT' I2C_SIZE_BYTES=0x8000 c6474
        cp -f ibl_c6474/i2crom.dat bin/i2crom_0x50_c6474_$(ENDIAN_SFX).dat
        cp -f ibl_c6474/i2crom.bin bin/i2crom_0x50_c6474_$(ENDIAN_SFX).bin
-       
+       cp -f ../util/i2cConfig/i2cparam_c6474_$(ENDIAN_SFX).out bin/i2cparam_0x50_c6474_$(ENDIAN_SFX)_0x200.out
 
 evm_c6474l:
        make -f makestg1 ARCH=c64x TARGET=c6474l EVM=c6474l I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=0x200 \
     COMPACT_I2C=yes ENDIAN_MODE=$(ENDIAN) CEXCLUDES='ELF COFF BIS MULTI_BOOT' I2C_SIZE_BYTES=0x8000 c6474l
        cp -f ibl_c6474l/i2crom.dat bin/i2crom_0x50_c6474l_$(ENDIAN_SFX).dat
        cp -f ibl_c6474l/i2crom.bin bin/i2crom_0x50_c6474l_$(ENDIAN_SFX).bin
-       
+       cp -f ../util/i2cConfig/i2cparam_c6474l_$(ENDIAN_SFX).out bin/i2cparam_0x50_c6474l_$(ENDIAN_SFX)_0x200.out
 # The 6457 EVM
 evm_c6457:
        make -f makestg1 ARCH=c64x TARGET=c6457 EVM=c6457 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=0x200 \
     COMPACT_I2C=yes ENDIAN_MODE=$(ENDIAN) CEXCLUDES='ELF COFF BIS MULTI_BOOT' c6457
        cp -f ibl_c6457/i2crom.dat bin/i2crom_0x50_c6457_$(ENDIAN_SFX).dat
        cp -f ibl_c6457/i2crom.bin bin/i2crom_0x50_c6457_$(ENDIAN_SFX).bin
-       
+       cp -f ../util/i2cConfig/i2cparam_c6457_$(ENDIAN_SFX).out bin/i2cparam_0x50_c6457_$(ENDIAN_SFX)_0x200.out
 
 # The 6608 EVM
 EVM_6608_SPI_DEFS= SPI_MODE=1 SPI_ADDR_WIDTH=24 SPI_NPIN=5 SPI_CSEL=2 SPI_C2TDEL=1 SPI_CLKDIV=8 SPI_ROM=1
@@ -322,14 +323,14 @@ ENDIAN_MODE=$(ENDIAN) ARCH=c64x TARGET=c66x EVM=c6678l SPI=no SPI_DEFS='$(EVM_66
 CEXCLUDES='COFF BIS NAND_GPIO' c66x
        cp -f ibl_c66x/i2crom.dat bin/i2crom_$(I2C_BUS_ADDR)_c6678_$(ENDIAN_SFX).dat
        cp -f ibl_c66x/i2crom.bin bin/i2crom_$(I2C_BUS_ADDR)_c6678_$(ENDIAN_SFX).bin
-       
+       cp -f ../util/i2cConfig/i2cparam_c66x_$(ENDIAN_SFX).out bin/i2cparam_$(I2C_BUS_ADDR)_c6678_$(ENDIAN_SFX)_$(I2C_MAP_ADDR).out
 evm_c6670_i2c:
        make -f makestg1 I2C_BUS_ADDR=$(I2C_BUS_ADDR) I2C_MAP_ADDR=$(I2C_MAP_ADDR) \
 ENDIAN_MODE=$(ENDIAN) ARCH=c64x TARGET=c66x EVM=c6670l SPI=no SPI_DEFS='$(EVM_667x_SPI_DEFS)' \
 CEXCLUDES='COFF BIS NAND_EMIF' c66x
        cp -f ibl_c66x/i2crom.dat bin/i2crom_$(I2C_BUS_ADDR)_c6670_$(ENDIAN_SFX).dat
        cp -f ibl_c66x/i2crom.bin bin/i2crom_$(I2C_BUS_ADDR)_c6670_$(ENDIAN_SFX).bin
-       
+       cp -f ../util/i2cConfig/i2cparam_c66x_$(ENDIAN_SFX).out bin/i2cparam_$(I2C_BUS_ADDR)_c6670_$(ENDIAN_SFX)_$(I2C_MAP_ADDR).out
 
 test_c66x:
        make -f makestg1 ARCH=c64x TARGET=c66x ENDIAN_MODE=both CEXCLUDES='NOR_SPI' SPI_DEFS='SPI_ROM=1 SPI_MODE=3 SPI_ADDR_WIDTH=24 SPI_NPIN=5 SPI_CSEL=2 SPI_C2TDEL=8 SPI_CLKDIV=0x20' I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=$(I2C_MAP_ADDR) COMPACT_I2C=no c66x
@@ -393,6 +394,12 @@ clean:
        make -f makestg2 cleant  ARCH=c64x TARGET=c66x
        make -C ../util/bconvert       clean
        make -C ../util/btoccs         clean
+       make -C ../util/i2cConfig      clean    ARCH=c64x TARGET=c6455
+       make -C ../util/i2cConfig      clean    ARCH=c64x TARGET=c6472
+       make -C ../util/i2cConfig      clean    ARCH=c64x TARGET=c6474
+       make -C ../util/i2cConfig      clean    ARCH=c64x TARGET=c6474l
+       make -C ../util/i2cConfig      clean    ARCH=c64x TARGET=c6457
+       make -C ../util/i2cConfig      clean    ARCH=c64x TARGET=c66x
        make -C ../util/romparse       clean
        make -C ../util/iblConfig/build    clean
        make -C ../test/test1              clean
index e70017391fd4a8e17dfae874e5fcd4794a9eaa8f..7f21da7764a84974d673a70bd534b2c9d155ca05 100644 (file)
@@ -214,6 +214,9 @@ ifeq ($(HAS_SPI),1)
 endif
        make -C $(IBL_ROOT)/util/btoccs
        make -C $(IBL_ROOT)/util/romparse TARGET=$(TARGET)
+ifeq ($(HAS_I2C),1)
+       make -C $(IBL_ROOT)/util/i2cConfig $(TARGET) MAINDEFS='$(MAINDEFS) $(SPI_CFG)' 
+endif
        make -C $(IBL_ROOT)/util/bconvert
        make -C $(IBL_ROOT)/util/iblConfig/build EVM=$(EVM) I2C_MAP_ADDR=$(I2C_MAP_ADDR)