summaryrefslogtreecommitdiffstats
path: root/platforms/astbmc/astbmc.h
diff options
context:
space:
mode:
authorAndrew Jeffery <andrew@aj.id.au>2018-10-09 00:32:36 -0700
committerStewart Smith <stewart@linux.ibm.com>2018-10-11 01:26:20 -0500
commit9a830ee06c66058b1421c017b25a65a22921e9f6 (patch)
treefad2405598bb7f620b3915599b0de948b614b91a /platforms/astbmc/astbmc.h
parentdd554bacd13c6dea481ea4e1ec9f3c32087295d9 (diff)
downloadtalos-skiboot-9a830ee06c66058b1421c017b25a65a22921e9f6.tar.gz
talos-skiboot-9a830ee06c66058b1421c017b25a65a22921e9f6.zip
platform: Restructure bmc_platform type
Segregate the BMC platform configuration into hardware and software components. This allows population of platform default values for hardware configuration that may no-longer be accessible by the host. Signed-off-by: Andrew Jeffery <andrew@aj.id.au> [stewart: fixup pci-quirk unit test] Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'platforms/astbmc/astbmc.h')
-rw-r--r--platforms/astbmc/astbmc.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/platforms/astbmc/astbmc.h b/platforms/astbmc/astbmc.h
index 16ffd7df..fe358b74 100644
--- a/platforms/astbmc/astbmc.h
+++ b/platforms/astbmc/astbmc.h
@@ -18,6 +18,8 @@
#ifndef __ASTBMC_H
#define __ASTBMC_H
+#include <platform.h>
+
#define ST_LOC_PHB(chip_id, phb_idx) ((chip_id) << 16 | (phb_idx))
#define ST_LOC_DEVFN(dev, fn) ((dev) << 3 | (fn))
/*
@@ -87,8 +89,11 @@ static struct slot_table_entry st_name[] = \
##__VA_ARGS__ \
}
-extern const struct bmc_platform astbmc_ami;
-extern const struct bmc_platform astbmc_openbmc;
+extern const struct bmc_hw_config bmc_hw_ast2400;
+extern const struct bmc_hw_config bmc_hw_ast2500;
+extern const struct bmc_platform bmc_plat_ast2400_ami;
+extern const struct bmc_platform bmc_plat_ast2500_ami;
+extern const struct bmc_platform bmc_plat_ast2500_openbmc;
extern void astbmc_early_init(void);
extern int64_t astbmc_ipmi_reboot(void);
OpenPOWER on IntegriCloud