aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Herring <rob.herring@calxeda.com>2011-06-28 10:39:43 -0500
committerJohn Rigby <john.rigby@linaro.org>2011-08-15 15:10:46 -0600
commit8906724f20c1a29fa44541777396179e1cefe91d (patch)
treed5575006a6e9c639a10dfae62a0b6982308fa767
parentf18c4557615778c4179c5282748a2578fc3a99dc (diff)
downloadu-boot-linaro-stable-8906724f20c1a29fa44541777396179e1cefe91d.tar.gz
ARM: highbank: Add AHCI support
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>
-rw-r--r--board/highbank/highbank.c9
-rw-r--r--include/configs/highbank.h11
2 files changed, 20 insertions, 0 deletions
diff --git a/board/highbank/highbank.c b/board/highbank/highbank.c
index 9a0fc19eb..bec3d2f64 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 6e268488c..0ae198d05 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
/*