aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/lpc.h2
-rw-r--r--include/platform.h9
2 files changed, 10 insertions, 1 deletions
diff --git a/include/lpc.h b/include/lpc.h
index 47d1037..6463c3d 100644
--- a/include/lpc.h
+++ b/include/lpc.h
@@ -46,7 +46,7 @@ static inline int64_t lpc_fw_read32(uint32_t *val, uint32_t addr)
static inline int64_t lpc_fw_write32(uint32_t val, uint32_t addr)
{
- return lpc_write(OPAL_LPC_FW, addr, cpu_to_be64(val), 4);
+ return lpc_write(OPAL_LPC_FW, addr, val, 4);
}
diff --git a/include/platform.h b/include/platform.h
index 689a80b..4a9d758 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -107,6 +107,15 @@ struct platform {
int (*nvram_start_read)(void *dst, uint32_t src,
uint32_t len);
int (*nvram_write)(uint32_t dst, void *src, uint32_t len);
+
+ /*
+ * OCC timeout. This return how long we should wait for the OCC
+ * before timing out. This lets us use a high value on larger FSP
+ * machines and cut it off completely on BML boots and OpenPower
+ * machines without pre-existing OCC firmware. Returns a value in
+ * seconds.
+ */
+ uint32_t (*occ_timeout)(void);
};
extern struct platform __platforms_start;