From: Michael Walle Date: Wed, 3 Apr 2019 21:28:29 +0000 (+0200) Subject: sata: sata_mv: support kirkwood architecture X-Git-Tag: v2019.07-rc1~30^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6d294971234005d75b50856371e04fb3fa3e6720;p=platform%2Fkernel%2Fu-boot.git sata: sata_mv: support kirkwood architecture Fix the worng include and offset macros. Signed-off-by: Michael Walle Reviewed-by: Stefan Roese Signed-off-by: Stefan Roese --- diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c index 87ea95f..b691107 100644 --- a/drivers/ata/sata_mv.c +++ b/drivers/ata/sata_mv.c @@ -44,11 +44,10 @@ #include #include +#include #if defined(CONFIG_KIRKWOOD) -#include #define SATAHC_BASE KW_SATA_BASE #else -#include #define SATAHC_BASE MVEBU_AXP_SATA_BASE #endif @@ -218,8 +217,8 @@ struct crqb { #define CRQB_SECTCOUNT_COUNT_EXP_MASK (0xff << 8) #define CRQB_SECTCOUNT_COUNT_EXP_SHIFT 8 -#define MVSATA_WIN_CONTROL(w) (MVEBU_AXP_SATA_BASE + 0x30 + ((w) << 4)) -#define MVSATA_WIN_BASE(w) (MVEBU_AXP_SATA_BASE + 0x34 + ((w) << 4)) +#define MVSATA_WIN_CONTROL(w) (SATAHC_BASE + 0x30 + ((w) << 4)) +#define MVSATA_WIN_BASE(w) (SATAHC_BASE + 0x34 + ((w) << 4)) struct eprd { u32 phyaddr_low;