summaryrefslogtreecommitdiffstats
path: root/arch/x86/cpu/ivybridge/cpu.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-01-17 16:11:35 -0700
committerBin Meng <bmeng.cn@gmail.com>2016-01-24 12:09:39 +0800
commitd46f2a68e64b14a54a120a4bab0781f8e11f07dd (patch)
treeab7132c53631792adbf8481bd3613f82a3331bb7 /arch/x86/cpu/ivybridge/cpu.c
parente3b5f04143a859092d4e09f61e526790836714f2 (diff)
downloadtalos-obmc-uboot-d46f2a68e64b14a54a120a4bab0781f8e11f07dd.tar.gz
talos-obmc-uboot-d46f2a68e64b14a54a120a4bab0781f8e11f07dd.zip
x86: ivybridge: Do the SATA init before relocation
The SATA device needs to set itself up so that it appears correctly on the PCI bus. The easiest way to do this is to set it up to probe before relocation. This can do the early setup. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/cpu/ivybridge/cpu.c')
-rw-r--r--arch/x86/cpu/ivybridge/cpu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/cpu/ivybridge/cpu.c b/arch/x86/cpu/ivybridge/cpu.c
index 6d3f477754..4cf2ba0e3b 100644
--- a/arch/x86/cpu/ivybridge/cpu.c
+++ b/arch/x86/cpu/ivybridge/cpu.c
@@ -251,6 +251,9 @@ int print_cpuinfo(void)
if (!dev)
return -ENODEV;
+ /* Cause the SATA device to do its early init */
+ uclass_first_device(UCLASS_DISK, &dev);
+
/* Check PM1_STS[15] to see if we are waking from Sx */
pm1_sts = inw(DEFAULT_PMBASE + PM1_STS);
OpenPOWER on IntegriCloud