From: Rob Herring <robherring2@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 5/5] ARM: highbank: Add AHCI support
Date: Tue, 21 Jun 2011 16:33:23 -0500 [thread overview]
Message-ID: <1308692003-2488-6-git-send-email-robherring2@gmail.com> (raw)
In-Reply-To: <1308692003-2488-1-git-send-email-robherring2@gmail.com>
From: Rob Herring <rob.herring@calxeda.com>
This enables the AHCI driver on highbank platforms.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Albert ARIBAUD <albert.aribaud@free.fr>
---
board/highbank/highbank.c | 9 +++++++++
include/configs/highbank.h | 11 +++++++++++
2 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/board/highbank/highbank.c b/board/highbank/highbank.c
index 9a0fc19..bec3d2f 100644
--- a/board/highbank/highbank.c
+++ b/board/highbank/highbank.c
@@ -16,6 +16,8 @@
*/
#include <common.h>
+#include <ahci.h>
+#include <scsi.h>
#include <asm/sizes.h>
@@ -31,6 +33,13 @@ int board_init(void)
return 0;
}
+int misc_init_r(void)
+{
+ ahci_init(0xffe08000);
+ scsi_scan(1);
+ return 0;
+}
+
int dram_init(void)
{
gd->ram_size = SZ_512M;
diff --git a/include/configs/highbank.h b/include/configs/highbank.h
index 6e26848..0ae198d 100644
--- a/include/configs/highbank.h
+++ b/include/configs/highbank.h
@@ -41,6 +41,15 @@
#define CONFIG_BAUDRATE 38400
#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_MISC_INIT_R
+#define CONFIG_SCSI_AHCI
+#define CONFIG_SYS_SCSI_MAX_SCSI_ID 5
+#define CONFIG_SYS_SCSI_MAX_LUN 1
+#define CONFIG_SYS_SCSI_MAX_DEVICE (CONFIG_SYS_SCSI_MAX_SCSI_ID * \
+ CONFIG_SYS_SCSI_MAX_LUN)
+
+#define CONFIG_DOS_PARTITION
+
/*
* Command line configuration.
*/
@@ -52,6 +61,8 @@
#define CONFIG_CMD_ELF
#define CONFIG_CMD_MEMORY
#define CONFIG_CMD_LOADS
+#define CONFIG_CMD_SCSI
+#define CONFIG_CMD_EXT2
#define CONFIG_BOOTDELAY 2
/*
--
1.7.4.1
prev parent reply other threads:[~2011-06-21 21:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-21 21:33 [U-Boot] [PATCH v3 0/5] Add Highbank platform Rob Herring
2011-06-21 21:33 ` [U-Boot] [PATCH 1/5] ARM: Add Calxeda " Rob Herring
2011-06-21 22:22 ` Fabio Estevam
2011-06-21 22:32 ` Rob Herring
2011-06-21 21:33 ` [U-Boot] [PATCH 2/5] arm: add __ilog2 function Rob Herring
2011-06-21 21:33 ` [U-Boot] [PATCH 3/5] scsi/ahci: ata id little endian fix Rob Herring
2011-07-25 22:06 ` Wolfgang Denk
[not found] ` <CANy1buLpmSEpQfA_z_xyQmfitXws-+qiHaW0kW4frVqud2f6Ag@mail.gmail.com>
2011-09-06 19:16 ` Vadim Bendebury (вб)
2011-06-21 21:33 ` [U-Boot] [PATCH 4/5] scsi/ahci: add support for non-PCI controllers Rob Herring
2011-06-21 21:33 ` Rob Herring [this message]
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=1308692003-2488-6-git-send-email-robherring2@gmail.com \
--to=robherring2@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