From 56e79e9866929799d65d5e178ca23aae961c551e Mon Sep 17 00:00:00 2001 From: Stephen Warren Date: Wed, 11 Sep 2013 17:22:09 -0600 Subject: Add config files for Venice2 board This board is currently disabled by default due to lack of U-Boot support in the mainline repository. If you wish to test this, do as follows: cd u-boot git checkout some-branch-with-venice2-support cd ../scripts ./build --boards venice2 build Signed-off-by: Stephen Warren --- configs/tegra124.soc | 3 +++ configs/venice2.board | 5 +++++ configs/venice2.config | 9 +++++++++ tegra-uboot-flasher | 3 ++- 4 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 configs/tegra124.soc create mode 100644 configs/venice2.board create mode 100644 configs/venice2.config diff --git a/configs/tegra124.soc b/configs/tegra124.soc new file mode 100644 index 0000000..f5b29d9 --- /dev/null +++ b/configs/tegra124.soc @@ -0,0 +1,3 @@ +soc = { + 'ram-base': 0x80000000, +} diff --git a/configs/venice2.board b/configs/venice2.board new file mode 100644 index 0000000..1dfb14c --- /dev/null +++ b/configs/venice2.board @@ -0,0 +1,5 @@ +board = { + 'vendor': 'nvidia', + 'soc': 'tegra124', + 'disabled': True, +} diff --git a/configs/venice2.config b/configs/venice2.config new file mode 100644 index 0000000..93a4413 --- /dev/null +++ b/configs/venice2.config @@ -0,0 +1,9 @@ +config = { + 'bct': 'PM371_Hynix_2GB_H5TC4G63AFR_RDA_792MHz_0719.bct', + 'board': 'venice2', + 'dtbfn-extra': '', + 'flash-erase-size': 1048576, + 'flash-image': 'venice2-spi.img', + 'flash-type': 'spi', + 'flash-id-uboot': '1:0', +} diff --git a/tegra-uboot-flasher b/tegra-uboot-flasher index f1abe54..41879c3 100755 --- a/tegra-uboot-flasher +++ b/tegra-uboot-flasher @@ -64,7 +64,8 @@ def gen_flashcmd_nand(flash_image_addr, flash_img_size): return flashcmd def gen_flashcmd_spi(flash_image_addr, flash_img_size): - flashcmd = 'sf probe 0 ; ' + flash_id = config.get('flash-id-uboot', '0') + flashcmd = 'sf probe %s ; ' % flash_id flashcmd += 'sf erase 0 0x%08x ; ' % config['flash-erase-size'] flashcmd += 'sf write 0x%08x 0 0x%08x ; ' % (flash_image_addr, flash_img_size) return flashcmd -- cgit v1.2.1