diff options
author | Stefan Roese <sr@denx.de> | 2016-08-31 10:02:15 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2016-09-27 17:29:54 +0200 |
commit | 22f5de6b5cf381acf63b49655cb3d7cb5bf684ab (patch) | |
tree | ad4650536eba1a721455a17864a1b433bff1bad0 /drivers | |
parent | d36277ef4f5b297e5d404d1ad19123b02dc539d1 (diff) | |
download | u-boot-imx-22f5de6b5cf381acf63b49655cb3d7cb5bf684ab.zip u-boot-imx-22f5de6b5cf381acf63b49655cb3d7cb5bf684ab.tar.gz u-boot-imx-22f5de6b5cf381acf63b49655cb3d7cb5bf684ab.tar.bz2 |
ahci: Make ahci_port_base() non-static to enable overwrite
To allow a board- / platform-specific ahci_port_base() function, this
patch removes "static inline" and adds __weak to this function. This
will be used by the upcoming Armada 7K/8K SATA / AHCI support, which
unfortunately needs a different port base address calculation.
Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Nadav Haklai <nadavh@marvell.com>
Cc: Neta Zur Hershkovits <neta@marvell.com>
Cc: Kostya Porotchkin <kostap@marvell.com>
Cc: Omri Itach <omrii@marvell.com>
Cc: Igal Liberman <igall@marvell.com>
Cc: Haim Boot <hayim@marvell.com>
Cc: Hanna Hawa <hannah@marvell.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/block/ahci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/ahci.c b/drivers/block/ahci.c index 2e1ddf9..5139989 100644 --- a/drivers/block/ahci.c +++ b/drivers/block/ahci.c @@ -45,7 +45,7 @@ u16 *ataid[AHCI_MAX_PORTS]; #define WAIT_MS_FLUSH 5000 #define WAIT_MS_LINKUP 200 -static inline void __iomem *ahci_port_base(void __iomem *base, u32 port) +__weak void __iomem *ahci_port_base(void __iomem *base, u32 port) { return base + 0x100 + (port * 0x80); } |