diff options
author | Tony MÃ¥nsson <tony.mansson@linaro.org> | 2011-05-19 13:11:49 +0200 |
---|---|---|
committer | Mats Bergstrom <mats.m.bergstrom@stericsson.com> | 2011-10-06 12:46:34 +0200 |
commit | 8bb56ccce2179e04a6e652ebc425ef70eb526f61 (patch) | |
tree | 82f9f041f6de567685bc3a028de68715a7b149d8 /disk | |
parent | 446d8193c1b3752bff199d5eba4aaf367d95e9fd (diff) |
Fix for Snowball
Diffstat (limited to 'disk')
-rw-r--r-- | disk/part_toc.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/disk/part_toc.c b/disk/part_toc.c index 82bb1bc95..d0d872a43 100644 --- a/disk/part_toc.c +++ b/disk/part_toc.c @@ -13,6 +13,7 @@ #include <common.h> #include <command.h> +#include <asm/arch/cpu.h> #include "part_toc.h" static int toc_location = NO_TOC; @@ -480,8 +481,10 @@ void print_part_toc(block_dev_desc_t *dev_desc) int test_part_toc(block_dev_desc_t *dev_desc) { debug("test_part_toc\n"); - if (toc_init(dev_desc, &toc_main_toc[0]) == 0) - return 0; + if (toc_init(dev_desc, &toc_main_toc[0]) == 0) { + /* If Snowball ignore TOC */ + return u8500_is_snowball(); + } else return 1; } |