aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorStewart Smith <stewart@flamingspork.com>2021-12-20 22:22:50 +1000
committerCédric Le Goater <clg@kaod.org>2022-01-03 16:12:45 +0100
commit99e4dfe53a57c8057929cd7de6825f7dc2e8e878 (patch)
tree9e711188439f9c4dd26aad948e5bb373c2349c70 /hw
parent65d9909a7556eb94cb4ef07f636a37c326ebaade (diff)
downloadskiboot-99e4dfe53a57c8057929cd7de6825f7dc2e8e878.zip
skiboot-99e4dfe53a57c8057929cd7de6825f7dc2e8e878.tar.gz
skiboot-99e4dfe53a57c8057929cd7de6825f7dc2e8e878.tar.bz2
hwprobe: convert vas_init(), nx_init()
Convert VAS and NX to use the hwprobe facility for init. Reviewed-by: Dan Horák <dan@danny.cz> [npiggin: remove imc_init because it moved later in boot (fbcbd4e47c)] Signed-off-by: Stewart Smith <stewart@flamingspork.com> Signed-off-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'hw')
-rw-r--r--hw/nx.c2
-rw-r--r--hw/vas.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/hw/nx.c b/hw/nx.c
index 13c681b..8766cef 100644
--- a/hw/nx.c
+++ b/hw/nx.c
@@ -137,3 +137,5 @@ void nx_init(void)
if (proc_gen >= proc_gen_p9)
darn_init();
}
+
+DEFINE_HWPROBE_DEPS(nx, nx_init, "vas");
diff --git a/hw/vas.c b/hw/vas.c
index 0dbe0bc..96ca055 100644
--- a/hw/vas.c
+++ b/hw/vas.c
@@ -637,3 +637,5 @@ out:
vas_err("Disabled (failed initialization)\n");
return;
}
+
+DEFINE_HWPROBE(vas, vas_init);