From patchwork Sat Aug 14 07:00:54 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?G=C3=A9rald_Kerma?= X-Patchwork-Id: 71815 X-Patchwork-Delegate: prafulla@marvell.com Return-Path: X-Original-To: wd@gemini.denx.de Delivered-To: wd@gemini.denx.de Received: from diddl.denx.de (diddl.denx.de [10.0.0.6]) by gemini.denx.de (Postfix) with ESMTP id 2408DD5214B for ; Sat, 14 Aug 2010 09:03:02 +0200 (CEST) Received: from diddl.denx.de (localhost.localdomain [127.0.0.1]) by diddl.denx.de (Postfix) with ESMTP id BF5103052F75 for ; Sat, 14 Aug 2010 09:03:00 +0200 (CEST) Received: from pop.mnet-online.de by diddl.denx.de with POP3 (fetchmail-6.3.17) for (single-drop); Sat, 14 Aug 2010 09:03:00 +0200 (CEST) Received: from murder ([192.168.6.180]) by backend2 (Cyrus v2.2.12) with LMTPA; Sat, 14 Aug 2010 09:01:19 +0200 X-Sieve: CMU Sieve 2.2 Received: from mail.m-online.net (localhost [127.0.0.1]) by frontend3.mail.m-online.net (Cyrus v2.2.12) with LMTPA; Sat, 14 Aug 2010 09:01:18 +0200 Received: from scanner-4.m-online.net (scanner-4.mail.m-online.net [192.168.1.18]) by mail.m-online.net (Postfix) with ESMTP id 571171C000A4; Sat, 14 Aug 2010 09:01:18 +0200 (CEST) Received: from mxin-2.m-online.net ([192.168.1.21]) by scanner-4.m-online.net (scanner-4.m-online.net [192.168.1.18]) (amavisd-new, port 10026) with ESMTP id 28867-06; Sat, 14 Aug 2010 09:01:16 +0200 (CEST) Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by mxin-2.m-online.net (Postfix) with ESMTP id 9DC04468D65; Sat, 14 Aug 2010 09:01:15 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0128C28093; Sat, 14 Aug 2010 09:01:10 +0200 (CEST) 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 EVEIAk0T6tc3; Sat, 14 Aug 2010 09:01:09 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 487A62808B; Sat, 14 Aug 2010 09:01:03 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0CA9F28086 for ; Sat, 14 Aug 2010 09:01:00 +0200 (CEST) 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 WXfitz-bo7tP for ; Sat, 14 Aug 2010 09:00:58 +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 mail-wy0-f172.google.com (mail-wy0-f172.google.com [74.125.82.172]) by theia.denx.de (Postfix) with ESMTP id 052B528084 for ; Sat, 14 Aug 2010 09:00:56 +0200 (CEST) Received: by wyb40 with SMTP id 40so3416189wyb.3 for ; Sat, 14 Aug 2010 00:00:55 -0700 (PDT) Received: by 10.227.145.146 with SMTP id d18mr2206198wbv.172.1281769255699; Sat, 14 Aug 2010 00:00:55 -0700 (PDT) Received: from [192.168.1.102] (nation.kerma.com.fr [88.171.131.190]) by mx.google.com with ESMTPS id i25sm3134139wbi.4.2010.08.14.00.00.54 (version=SSLv3 cipher=RC4-MD5); Sat, 14 Aug 2010 00:00:55 -0700 (PDT) Message-ID: <4C663F26.9030406@gmail.com> Date: Sat, 14 Aug 2010 09:00:54 +0200 From: =?ISO-8859-1?Q?G=E9rald_Kerma?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.9.1.11) Gecko/20100713 Lightning/1.0b1 Thunderbird/3.0.6 MIME-Version: 1.0 To: u-boot@lists.denx.de References: <4C6635C1.2080507@gmail.com> <20100814062829.81DF01536EF@gemini.denx.de> In-Reply-To: <20100814062829.81DF01536EF@gemini.denx.de> X-Enigmail-Version: 1.0.1 OpenPGP: id=EBAAD69B Subject: [U-Boot] [PATCH v2] Add mvsata support for the Sheevaplug devices X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de X-Virus-Scanned: by amavisd-new at m-online.net Add mvsata support to SHEEVAPLUG Signed-off-by: GĂ©rald Kerma --- Changes in v2: * typo fixed * list reordered include/configs/sheevaplug.h | 29 +++++++++++++++++++++++++++++ 1 files changed, 29 insertions(+), 0 deletions(-) diff --git a/include/configs/sheevaplug.h b/include/configs/sheevaplug.h index c5de86e..dc803e1 100644 --- a/include/configs/sheevaplug.h +++ b/include/configs/sheevaplug.h @@ -94,6 +94,7 @@ #define CONFIG_CMD_AUTOSCRIPT #define CONFIG_CMD_DHCP #define CONFIG_CMD_ENV +#define CONFIG_CMD_IDE #define CONFIG_CMD_MII #define CONFIG_CMD_NAND #define CONFIG_CMD_PING @@ -196,6 +197,34 @@ #endif /* CONFIG_CMD_USB */ /* + * IDE Support on SATA port0 + */ +#ifdef CONFIG_CMD_IDE +#define __io +#define CONFIG_CMD_EXT2 +#define CONFIG_MVSATA_IDE +#define CONFIG_IDE_PREINIT +#define CONFIG_MVSATA_IDE_USE_PORT0 +/* Needs byte-swapping for ATA data register */ +#define CONFIG_IDE_SWAP_IO +/* Data, registers and alternate blocks are at the same offset */ +#define CONFIG_SYS_ATA_DATA_OFFSET (0x0100) +#define CONFIG_SYS_ATA_REG_OFFSET (0x0100) +#define CONFIG_SYS_ATA_ALT_OFFSET (0x0100) +/* Each 8-bit ATA register is aligned to a 4-bytes address */ +#define CONFIG_SYS_ATA_STRIDE 4 +/* Controller supports 48-bits LBA addressing */ +#define CONFIG_LBA48 +/* CONFIG_CMD_IDE requires some #defines for ATA registers */ +#define CONFIG_SYS_IDE_MAXBUS 1 +#define CONFIG_SYS_IDE_MAXDEVICE 1 +/* ATA registers base is at SATA controller base */ +#define CONFIG_SYS_ATA_BASE_ADDR KW_SATA_BASE +/* ATA bus 0 is Kirkwood port 1 on sheevaplug */ +#define CONFIG_SYS_ATA_IDE0_OFFSET KW_SATA_PORT1_OFFSET +#endif /* CONFIG_CMD_IDE */ + +/* * File system */ #define CONFIG_CMD_EXT2