From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Thu, 4 Apr 2019 17:18:46 +0200 Subject: [U-Boot] [PATCH 2/4] sata: sata_mv: support kirkwood architecture In-Reply-To: <20190403212831.29886-3-michael@walle.cc> References: <20190403212831.29886-1-michael@walle.cc> <20190403212831.29886-3-michael@walle.cc> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 03.04.19 23:28, Michael Walle wrote: > Fix the worng include and offset macros. > > Signed-off-by: Michael Walle > --- > drivers/ata/sata_mv.c | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) > > diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c > index 87ea95f75d..b691107dc0 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; > Reviewed-by: Stefan Roese Thanks, Stefan