public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Gérald Kerma" <geraker@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 1/1] Sheevaplug: Add mvsata support
Date: Fri, 19 Nov 2010 17:55:36 +0100	[thread overview]
Message-ID: <4CE6AC08.8050302@gmail.com> (raw)
In-Reply-To: <4CE6A1B2.1040100@gmail.com>

---
 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 b944ec7..82e49c0 100644
--- a/include/configs/sheevaplug.h
+++ b/include/configs/sheevaplug.h
@@ -46,6 +46,7 @@
 #include <config_cmd_default.h>
 #define CONFIG_CMD_DHCP
 #define CONFIG_CMD_ENV
+#define CONFIG_CMD_IDE
 #define CONFIG_CMD_MII
 #define CONFIG_CMD_MMC
 #define CONFIG_CMD_NAND
@@ -107,6 +108,34 @@
 #endif /* CONFIG_CMD_NET */

 /*
+ * 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
-- 
1.7.1

  reply	other threads:[~2010-11-19 16:55 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-28 22:37 [U-Boot] [PATCH v1] add mv_sdio driver for sheevaplug Gérald Kerma
2010-11-18  1:00 ` Clint Adams
2010-11-18  3:32   ` Prafulla Wadaskar
2010-11-20 11:42   ` Gérald Kerma
2010-11-18  4:04 ` Prafulla Wadaskar
2010-11-19 16:10   ` [U-Boot] [PATCH v2 1/2] mmc : Add SDIO driver for Marvell SoCs (Kirkwood) Gérald Kerma
2010-11-20 21:33     ` Prafulla Wadaskar
2010-11-21 11:05       ` [U-Boot] [PATCH v3 0/3] Add SD/MMC Support to Sheevaplug Gérald Kerma
2010-11-21 11:06         ` [U-Boot] [PATCH v3 1/3] Kirkwood: pre-requisite for SDIO driver support Gérald Kerma
2010-11-21 15:36           ` Prafulla Wadaskar
2010-11-21 11:07         ` [U-Boot] [PATCH v3 2/3] mmc : Add SDIO driver for Marvell SoCs (Kirkwood) Gérald Kerma
2010-11-21 15:31           ` Prafulla Wadaskar
2010-11-21 11:08         ` [U-Boot] [PATCH v3 3/3] Sheevaplug: Add MMC/SDIO support Gérald Kerma
2010-11-19 16:11   ` [U-Boot] [PATCH v2 2/2] " Gérald Kerma
2010-11-19 16:55     ` Gérald Kerma [this message]
2010-11-19 16:56       ` [U-Boot] [PATCH v2 1/1] Sheevaplug: Fix environments for booting retail system Gérald Kerma
2010-11-20 21:32         ` Prafulla Wadaskar
2010-11-20 21:33       ` [U-Boot] [PATCH v2 1/1] Sheevaplug: Add mvsata support Prafulla Wadaskar
2010-11-20 15:17     ` [U-Boot] [PATCH v2 2/2] Sheevaplug: Add MMC/SDIO support Ludovic Courtès
2010-11-20 21:42       ` Prafulla Wadaskar
2010-11-20 21:33     ` Prafulla Wadaskar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CE6AC08.8050302@gmail.com \
    --to=geraker@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox