[U-Boot] [PATCH] kirkwood: use 64bit integer for IDE LBA sector numbers
Sascha Silbe
t-uboot at infra-silbe.de
Sun Aug 11 16:59:16 CEST 2013
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 at infra-silbe.de>
---
arch/arm/include/asm/arch-kirkwood/config.h | 1 +
1 file changed, 1 insertion(+)
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
--
1.8.3.2
More information about the U-Boot
mailing list