Skip to content
Snippets Groups Projects
Commit b9463226 authored by Ian Campbell's avatar Ian Campbell Committed by Tom Rini
Browse files

highbank: use scsi_init hook

parent c6f3d50b
No related branches found
No related tags found
No related merge requests found
...@@ -51,17 +51,23 @@ int board_eth_init(bd_t *bis) ...@@ -51,17 +51,23 @@ int board_eth_init(bd_t *bis)
return rc; return rc;
} }
#ifdef CONFIG_MISC_INIT_R #ifdef CONFIG_SCSI_AHCI_PLAT
int misc_init_r(void) void scsi_init(void)
{ {
char envbuffer[16];
u32 boot_choice;
u32 reg = readl(HB_SREG_A9_PWRDOM_STAT); u32 reg = readl(HB_SREG_A9_PWRDOM_STAT);
if (reg & PWRDOM_STAT_SATA) { if (reg & PWRDOM_STAT_SATA) {
ahci_init(HB_AHCI_BASE); ahci_init(HB_AHCI_BASE);
scsi_scan(1); scsi_scan(1);
} }
}
#endif
#ifdef CONFIG_MISC_INIT_R
int misc_init_r(void)
{
char envbuffer[16];
u32 boot_choice;
boot_choice = readl(HB_SREG_A9_BOOT_SRC_STAT) & 0xff; boot_choice = readl(HB_SREG_A9_BOOT_SRC_STAT) & 0xff;
sprintf(envbuffer, "bootcmd%d", boot_choice); sprintf(envbuffer, "bootcmd%d", boot_choice);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment