From 5611389876a748e19b7593d4eb426ced7a6ed31f Mon Sep 17 00:00:00 2001 From: Stewart Smith Date: Tue, 8 Nov 2016 15:25:46 +1100 Subject: Add BMC platform to enable correct OEM IPMI commands An out of tree platform (p8dtu) uses a different IPMI OEM command for IPMI_PARTIAL_ADD_ESEL. This exposed some assumptions about the BMC implementation in our core code. Now, with platform.bmc, each platform can dictate (or detect) the BMC that is present. We allow it to be set at runtime rather than purely statically in struct platform as it's possible to have differing BMC implementations on the one machine (e.g. AMI BMC or OpenBMC). Acked-by: Jeremy Kerr [stewart@linux.vnet.ibm.com: remove enum, update (C) years] Signed-off-by: Stewart Smith --- include/ipmi.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'include/ipmi.h') diff --git a/include/ipmi.h b/include/ipmi.h index a6791e4..35dee90 100644 --- a/include/ipmi.h +++ b/include/ipmi.h @@ -1,4 +1,4 @@ -/* Copyright 2013-2014 IBM Corp. +/* Copyright 2013-2016 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -120,10 +120,6 @@ #define IPMI_GET_BT_CAPS IPMI_CODE(IPMI_NETFN_APP, 0x36) #define IPMI_SET_SENSOR_READING IPMI_CODE(IPMI_NETFN_SE, 0x30) -/* AMI OEM comamnds. AMI uses NETFN 0x3a and 0x32 */ -#define IPMI_PARTIAL_ADD_ESEL IPMI_CODE(0x32, 0xf0) -#define IPMI_PNOR_ACCESS_STATUS IPMI_CODE(0x3a, 0x07) - /* * IPMI response codes. */ -- cgit v1.1