[U-Boot] kirkwood: use 64bit integer for IDE LBA sector numbers

Submitted by Sascha Silbe on Aug. 11, 2013, 2:59 p.m.

Details

Message ID 1376233156-20291-1-git-send-email-t-uboot@infra-silbe.de
State Deferred
Delegated to: Stefan Roese
Headers show

Commit Message

Sascha Silbe Aug. 11, 2013, 2:59 p.m.
Many recent hard disks are larger than 2TiB. They still use a logical
sector size of 512, so 32-bit sector numbers are insufficient (and
even with 4K logical sector size we'd exceed the limit once there are
16TiB drives).

Signed-off-by: Sascha Silbe <t-uboot@infra-silbe.de>
---
 arch/arm/include/asm/arch-kirkwood/config.h | 1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/arch/arm/include/asm/arch-kirkwood/config.h b/arch/arm/include/asm/arch-kirkwood/config.h
index 197703b..d7129e2 100644
--- a/arch/arm/include/asm/arch-kirkwood/config.h
+++ b/arch/arm/include/asm/arch-kirkwood/config.h
@@ -117,6 +117,7 @@ 
 #define CONFIG_SYS_ATA_STRIDE		4
 /* Controller supports 48-bits LBA addressing */
 #define CONFIG_LBA48
+#define CONFIG_SYS_64BIT_LBA
 /* CONFIG_CMD_IDE requires some #defines for ATA registers */
 #define CONFIG_SYS_IDE_MAXBUS		2
 #define CONFIG_SYS_IDE_MAXDEVICE	2