Commit 58e31664 authored by Kefeng Wang's avatar Kefeng Wang Committed by Andrey Konovalov

ARM: hip04: add specific sata vsemiphy init

part1: add frame for specific sata vsemiphy init.
Signed-off-by: default avatarKefeng Wang <kefeng.wang@linaro.org>
parent 115ba17f
......@@ -284,6 +284,29 @@ bool __init hip04_smp_init_ops(void)
return true;
}
#define HIP04_SATA_BASE (0xea000000)
static int sata_vsemiphy_init(struct device *dev, void __iomem *addr)
{
return 0;
}
static struct ahci_platform_data hip04_sata_pdata = {
.init = sata_vsemiphy_init,
};
static struct of_dev_auxdata hip04_auxdata_lookup[] __initdata = {
OF_DEV_AUXDATA("hisilicon,hisi-ahci", HIP04_SATA_BASE,
NULL, &hip04_sata_pdata),
{},
};
static void __init hip04_init_machine(void)
{
of_platform_populate(NULL, of_default_bus_match_table,
hip04_auxdata_lookup, NULL);
}
static const char *hip04_compat[] __initconst = {
"hisilicon,hip04-d01",
NULL,
......@@ -297,5 +320,6 @@ static void __init hip04_reserve(void)
DT_MACHINE_START(HIP01, "Hisilicon HiP04 (Flattened Device Tree)")
.dt_compat = hip04_compat,
.smp_init = smp_init_ops(hip04_smp_init_ops),
.init_machine = hip04_init_machine,
.reserve = hip04_reserve,
MACHINE_END
......@@ -117,12 +117,3 @@ DT_MACHINE_START(HI3620, "Hisilicon Hi3620 (Flattened Device Tree)")
.smp = smp_ops(hi3xxx_smp_ops),
.restart = hi3xxx_restart,
MACHINE_END
static const char *hip04_compat[] __initconst = {
"hisilicon,hip04-d01",
NULL,
};
DT_MACHINE_START(HIP01, "Hisilicon HiP04 (Flattened Device Tree)")
.dt_compat = hip04_compat,
MACHINE_END
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment