summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2013-09-11 17:22:09 -0600
committerStephen Warren <swarren@nvidia.com>2013-09-18 16:03:10 -0600
commit56e79e9866929799d65d5e178ca23aae961c551e (patch)
tree3b9a012539457d065b8a24b89fba8a6b813d9813
parent821837c57a6828e4f8ed18e6343c8d2395e99a35 (diff)
downloadtegra-uboot-flasher-scripts-56e79e9866929799d65d5e178ca23aae961c551e.tar.gz
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 <swarren@nvidia.com>
-rw-r--r--configs/tegra124.soc3
-rw-r--r--configs/venice2.board5
-rw-r--r--configs/venice2.config9
-rwxr-xr-xtegra-uboot-flasher3
4 files changed, 19 insertions, 1 deletions
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