From patchwork Sun Aug 11 14:59:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sascha Silbe X-Patchwork-Id: 266333 X-Patchwork-Delegate: sr@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 86E062C00B8 for ; Mon, 12 Aug 2013 01:00:51 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C4F434A03A; Sun, 11 Aug 2013 17:00:49 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id egkZWrK3kc8c; Sun, 11 Aug 2013 17:00:49 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7B76D4A040; Sun, 11 Aug 2013 17:00:47 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 62FEC4A040 for ; Sun, 11 Aug 2013 17:00:42 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XyaxbYQywNjA for ; Sun, 11 Aug 2013 17:00:36 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from b.mx.chost.de (b.mx.chost.de [87.106.8.89]) by theia.denx.de (Postfix) with ESMTPS id A9B754A03A for ; Sun, 11 Aug 2013 17:00:30 +0200 (CEST) Received: from sshgate.chost.de (sshgate.chost.de [::ffff:87.106.80.19]) by b.mx.chost.de with esmtp; Sun, 11 Aug 2013 17:00:28 +0200 id 0A6575C9.5207A70C.000040A8 Received: by sshgate.chost.de (sSMTP sendmail emulation); Sun, 11 Aug 2013 17:00:28 +0200 Received: (nullmailer pid 20469 invoked by uid 8193); Sun, 11 Aug 2013 15:00:27 -0000 From: Sascha Silbe To: u-boot@lists.denx.de Date: Sun, 11 Aug 2013 16:59:16 +0200 Message-Id: <1376233156-20291-1-git-send-email-t-uboot@infra-silbe.de> X-Mailer: git-send-email 1.8.3.2 Subject: [U-Boot] [PATCH] kirkwood: use 64bit integer for IDE LBA sector numbers X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de 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 --- 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