diff options
author | Rob Herring <rob.herring@calxeda.com> | 2011-06-28 10:39:43 -0500 |
---|---|---|
committer | John Rigby <john.rigby@linaro.org> | 2011-06-30 12:23:33 +0100 |
commit | 833212ca14692edcafa1a776fdcbf4eb86f3df93 (patch) | |
tree | 73ee9ad3b1b1baaf5ff2cac90907baf4dac3aeb7 | |
parent | 97bbccd4f6038617b9950b5d1d95697e6b8701e8 (diff) |
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.c | 9 | ||||
-rw-r--r-- | 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 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 /* |