diff options
author | Mark Langsdorf <mark.langsdorf@gmail.com> | 2015-06-05 00:58:49 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-06-15 10:57:25 -0400 |
commit | ef51c416bc582f39ceab17ee7632039355091189 (patch) | |
tree | 279804cc7b8f9daa2e2b898315f27e7ba8000092 /board/highbank/highbank.c | |
parent | f8b009e8b783519023ab4ee0bfff59c0eef3ffdd (diff) |
highbank: add custom ahci_link_up function
The Calxeda highbank SOC needs a custom sequence to bring up SATA links,
so override ahci_link_up with custom function to handle combophy setup.
Signed-off-by: Mark Langsdorf <mark.langsdorf@gmail.com>
Signed-off-by: Richard Gibbs
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Andre Przywara <osp@andrep.de>
Diffstat (limited to 'board/highbank/highbank.c')
-rw-r--r-- | board/highbank/highbank.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/board/highbank/highbank.c b/board/highbank/highbank.c index e8132b842f..469ee8e114 100644 --- a/board/highbank/highbank.c +++ b/board/highbank/highbank.c @@ -35,6 +35,8 @@ DECLARE_GLOBAL_DATA_PTR; +void cphy_disable_overrides(void); + /* * Miscellaneous platform dependent initialisations */ @@ -62,6 +64,7 @@ void scsi_init(void) { u32 reg = readl(HB_SREG_A9_PWRDOM_STAT); + cphy_disable_overrides(); if (reg & PWRDOM_STAT_SATA) { ahci_init((void __iomem *)HB_AHCI_BASE); scsi_scan(1); @@ -136,3 +139,12 @@ void reset_cpu(ulong addr) wfi(); } + +/* + * turn off the override before transferring control to Linux, since Linux + * may not support spread spectrum. + */ +void arch_preboot_os(void) +{ + cphy_disable_overrides(); +} |