From: David Sniatkiwicz Date: Fri, 25 May 2018 07:49:25 +0000 (+0800) Subject: ata: ahci_mvebu: a8040 a0: remove bad port register offsets workarounds X-Git-Tag: v2018.07-rc1~29^2~5 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=329dd3244fd8ba44538b7f10caff220c1a91d16e;p=u-boot ata: ahci_mvebu: a8040 a0: remove bad port register offsets workarounds This workaround was added for A8040/7040 A0. A8040/7040 A0 is no longer supported so this workaround can be removed. Signed-off-by: David Sniatkiwicz Signed-off-by: Ken Ma Reviewed-by: Stefan Roese Reviewed-by: Simon Glass Signed-off-by: Stefan Roese --- diff --git a/drivers/ata/ahci_mvebu.c b/drivers/ata/ahci_mvebu.c index 3ae8dae4dd..c1d215f6b4 100644 --- a/drivers/ata/ahci_mvebu.c +++ b/drivers/ata/ahci_mvebu.c @@ -16,14 +16,6 @@ __weak int board_ahci_enable(void) return 0; } -#ifdef CONFIG_ARMADA_8K -/* CP110 has different AHCI port addresses */ -void __iomem *ahci_port_base(void __iomem *base, u32 port) -{ - return base + 0x10000 + (port * 0x10000); -} -#endif - static int mvebu_ahci_probe(struct udevice *dev) { /*