diff options
author | Scott Wood <scottwood@freescale.com> | 2015-04-17 09:19:01 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-04-18 16:54:29 -0400 |
commit | 9efaca3e847696ed40fca1dbbc621fcc35b8d94c (patch) | |
tree | 2d97706c0a7393f5c716cecb46c1869131a507bd /board/highbank | |
parent | 3907305fb97c4547af5a03a0107b013ed7e886ca (diff) | |
download | u-boot-imx-9efaca3e847696ed40fca1dbbc621fcc35b8d94c.zip u-boot-imx-9efaca3e847696ed40fca1dbbc621fcc35b8d94c.tar.gz u-boot-imx-9efaca3e847696ed40fca1dbbc621fcc35b8d94c.tar.bz2 |
ahci: mmio_base is a virtual address
Don't store it in a u32.
Don't dereference the bus address as if it were a virtual address
(fixes 284231e49a2b4 ("ahci: Support splitting of read transactions
into multiple chunks")).
Fixes crash on boot in MPC8641HPCN_36BIT target.
Signed-off-by: Scott Wood <scottwood@freescale.com>
Cc: Vadim Bendebury <vbendeb@chromium.org>
Acked-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'board/highbank')
-rw-r--r-- | board/highbank/highbank.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/highbank/highbank.c b/board/highbank/highbank.c index fc2385c..ba1beb5 100644 --- a/board/highbank/highbank.c +++ b/board/highbank/highbank.c @@ -57,7 +57,7 @@ void scsi_init(void) u32 reg = readl(HB_SREG_A9_PWRDOM_STAT); if (reg & PWRDOM_STAT_SATA) { - ahci_init(HB_AHCI_BASE); + ahci_init((void __iomem *)HB_AHCI_BASE); scsi_scan(1); } } |