|
|
@ -35,16 +35,9 @@ void spl_nand_load_image(void) |
|
|
|
int *src __attribute__((unused)); |
|
|
|
int *src __attribute__((unused)); |
|
|
|
int *dst __attribute__((unused)); |
|
|
|
int *dst __attribute__((unused)); |
|
|
|
|
|
|
|
|
|
|
|
switch (spl_boot_mode()) { |
|
|
|
debug("spl: nand - using hw ecc\n"); |
|
|
|
case NAND_MODE_HW_ECC: |
|
|
|
gpmc_init(); |
|
|
|
debug("spl: nand - using hw ecc\n"); |
|
|
|
nand_init(); |
|
|
|
gpmc_init(); |
|
|
|
|
|
|
|
nand_init(); |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
default: |
|
|
|
|
|
|
|
puts("spl: ERROR: This bootmode is not implemented - hanging"); |
|
|
|
|
|
|
|
hang(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*use CONFIG_SYS_TEXT_BASE as temporary storage area */ |
|
|
|
/*use CONFIG_SYS_TEXT_BASE as temporary storage area */ |
|
|
|
header = (struct image_header *)(CONFIG_SYS_TEXT_BASE); |
|
|
|
header = (struct image_header *)(CONFIG_SYS_TEXT_BASE); |
|
|
|