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

login
register
mail settings
Submitter Sascha Silbe
Date Aug. 11, 2013, 2:59 p.m.
Message ID <1376233156-20291-1-git-send-email-t-uboot@infra-silbe.de>
Download mbox | patch
Permalink /patch/266333/
State New
Delegated to: Prafulla Wadaskar
Headers show

Comments

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

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