diff options
author | Tom Rix | 2009-08-25 15:43:36 -0500 |
---|---|---|
committer | Christina Warren | 2010-03-22 16:46:14 -0500 |
commit | 6e8a1050ad77f42e80a2dd49a697da47a6a85dca (patch) | |
tree | 4b801b206de294080b1c675d29013676a83502b7 | |
parent | 92139e0bf4ac74890f6a6ceb55789fd4e7a36fa8 (diff) | |
download | psdkla-u-boot-6e8a1050ad77f42e80a2dd49a697da47a6a85dca.tar.gz psdkla-u-boot-6e8a1050ad77f42e80a2dd49a697da47a6a85dca.tar.xz psdkla-u-boot-6e8a1050ad77f42e80a2dd49a697da47a6a85dca.zip |
Fastboot: Add OOB size to nand interface.
This is needed to support raw reading and writing
of NAND partitions.
Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
-rw-r--r-- | cpu/omap3/fastboot.c | 1 | ||||
-rw-r--r-- | include/fastboot.h | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/cpu/omap3/fastboot.c b/cpu/omap3/fastboot.c index d9f83bf31f..f0ad99ea30 100644 --- a/cpu/omap3/fastboot.c +++ b/cpu/omap3/fastboot.c | |||
@@ -1165,6 +1165,7 @@ int fastboot_init(struct cmd_fastboot_interface *interface) | |||
1165 | fastboot_interface->product_name = device_strings[DEVICE_STRING_PRODUCT_INDEX]; | 1165 | fastboot_interface->product_name = device_strings[DEVICE_STRING_PRODUCT_INDEX]; |
1166 | fastboot_interface->serial_no = device_strings[DEVICE_STRING_SERIAL_NUMBER_INDEX]; | 1166 | fastboot_interface->serial_no = device_strings[DEVICE_STRING_SERIAL_NUMBER_INDEX]; |
1167 | fastboot_interface->nand_block_size = 2048; | 1167 | fastboot_interface->nand_block_size = 2048; |
1168 | fastboot_interface->nand_oob_size = 64; | ||
1168 | fastboot_interface->transfer_buffer = (unsigned char *) CFG_FASTBOOT_TRANSFER_BUFFER; | 1169 | fastboot_interface->transfer_buffer = (unsigned char *) CFG_FASTBOOT_TRANSFER_BUFFER; |
1169 | fastboot_interface->transfer_buffer_size = CFG_FASTBOOT_TRANSFER_BUFFER_SIZE; | 1170 | fastboot_interface->transfer_buffer_size = CFG_FASTBOOT_TRANSFER_BUFFER_SIZE; |
1170 | 1171 | ||
diff --git a/include/fastboot.h b/include/fastboot.h index 1d63288b5a..95bd3549f1 100644 --- a/include/fastboot.h +++ b/include/fastboot.h | |||
@@ -128,6 +128,10 @@ struct cmd_fastboot_interface | |||
128 | Set by board */ | 128 | Set by board */ |
129 | unsigned int nand_block_size; | 129 | unsigned int nand_block_size; |
130 | 130 | ||
131 | /* Nand oob size | ||
132 | Set by board */ | ||
133 | unsigned int nand_oob_size; | ||
134 | |||
131 | /* Transfer buffer, for handling flash updates | 135 | /* Transfer buffer, for handling flash updates |
132 | Should be multiple of the nand_block_size | 136 | Should be multiple of the nand_block_size |
133 | Care should be take so it does not overrun bootloader memory | 137 | Care should be take so it does not overrun bootloader memory |