mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
sata: sata_mv: support kirkwood architecture
Fix the worng include and offset macros. Signed-off-by: Michael Walle <michael@walle.cc> Reviewed-by: Stefan Roese <sr@denx.de> Signed-off-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
cfdf632c5c
commit
6d29497123
1 changed files with 3 additions and 4 deletions
|
@ -44,11 +44,10 @@
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <linux/mbus.h>
|
#include <linux/mbus.h>
|
||||||
|
|
||||||
|
#include <asm/arch/soc.h>
|
||||||
#if defined(CONFIG_KIRKWOOD)
|
#if defined(CONFIG_KIRKWOOD)
|
||||||
#include <asm/arch/kirkwood.h>
|
|
||||||
#define SATAHC_BASE KW_SATA_BASE
|
#define SATAHC_BASE KW_SATA_BASE
|
||||||
#else
|
#else
|
||||||
#include <asm/arch/soc.h>
|
|
||||||
#define SATAHC_BASE MVEBU_AXP_SATA_BASE
|
#define SATAHC_BASE MVEBU_AXP_SATA_BASE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -218,8 +217,8 @@ struct crqb {
|
||||||
#define CRQB_SECTCOUNT_COUNT_EXP_MASK (0xff << 8)
|
#define CRQB_SECTCOUNT_COUNT_EXP_MASK (0xff << 8)
|
||||||
#define CRQB_SECTCOUNT_COUNT_EXP_SHIFT 8
|
#define CRQB_SECTCOUNT_COUNT_EXP_SHIFT 8
|
||||||
|
|
||||||
#define MVSATA_WIN_CONTROL(w) (MVEBU_AXP_SATA_BASE + 0x30 + ((w) << 4))
|
#define MVSATA_WIN_CONTROL(w) (SATAHC_BASE + 0x30 + ((w) << 4))
|
||||||
#define MVSATA_WIN_BASE(w) (MVEBU_AXP_SATA_BASE + 0x34 + ((w) << 4))
|
#define MVSATA_WIN_BASE(w) (SATAHC_BASE + 0x34 + ((w) << 4))
|
||||||
|
|
||||||
struct eprd {
|
struct eprd {
|
||||||
u32 phyaddr_low;
|
u32 phyaddr_low;
|
||||||
|
|
Loading…
Add table
Reference in a new issue