diff options
author | Stewart Smith <stewart@flamingspork.com> | 2021-12-17 12:36:43 +1000 |
---|---|---|
committer | Cédric Le Goater <clg@kaod.org> | 2021-12-17 10:34:23 +0100 |
commit | f9a19f3d2add0166d2f380eb0c25a94f0da80d8b (patch) | |
tree | 1ad3ff03c9f5404d89a48a0915a803859701b86d | |
parent | 30008cdfed24495d8e6e950ff9052d01e3bdc92c (diff) | |
download | skiboot-f9a19f3d2add0166d2f380eb0c25a94f0da80d8b.zip skiboot-f9a19f3d2add0166d2f380eb0c25a94f0da80d8b.tar.gz skiboot-f9a19f3d2add0166d2f380eb0c25a94f0da80d8b.tar.bz2 |
hwprobe: convert vas_init(), nx_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>
-rw-r--r-- | core/init.c | 6 | ||||
-rw-r--r-- | hw/nx.c | 2 | ||||
-rw-r--r-- | hw/vas.c | 2 |
3 files changed, 4 insertions, 6 deletions
diff --git a/core/init.c b/core/init.c index c3e0c49..6a1c3f0 100644 --- a/core/init.c +++ b/core/init.c @@ -1355,12 +1355,6 @@ void __noreturn __nomcount main_cpu_entry(const void *fdt) /* Catalog decompression routine */ imc_decompress_catalog(); - /* Virtual Accelerator Switchboard */ - vas_init(); - - /* NX init */ - nx_init(); - /* Probe all HWPROBE hardware we have code linked for */ probe_hardware(); @@ -136,3 +136,5 @@ void nx_init(void) if (proc_gen >= proc_gen_p9) darn_init(); } + +DEFINE_HWPROBE_DEPS(nx, nx_init, "vas"); @@ -637,3 +637,5 @@ out: vas_err("Disabled (failed initialization)\n"); return; } + +DEFINE_HWPROBE(vas, vas_init); |