summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaptor Engineering Development Team <support@raptorengineering.com>2020-03-14 19:42:54 -0500
committerRaptor Engineering Development Team <support@raptorengineering.com>2020-03-14 19:42:54 -0500
commit63dab697105124c5def4a6e8504cd76985b90da8 (patch)
tree42a6dbd54fd5d3d38ff101471378dcbbad85fdef
parent0951d2a2e82782aac7ceb56e670140002e737eae (diff)
downloadast2050-flashrom-63dab697105124c5def4a6e8504cd76985b90da8.zip
ast2050-flashrom-63dab697105124c5def4a6e8504cd76985b90da8.tar.gz
Fix FTBFS on POWER systemsHEADmaster
-rw-r--r--internal.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal.c b/internal.c
index 4062b64..276e14b 100644
--- a/internal.c
+++ b/internal.c
@@ -131,6 +131,7 @@ int register_superio(struct superio s)
int is_laptop = 0;
int laptop_ok = 0;
+#if IS_X86 || IS_MIPS
static void internal_chip_writeb(const struct flashctx *flash, uint8_t val,
chipaddr addr);
static void internal_chip_writew(const struct flashctx *flash, uint16_t val,
@@ -155,6 +156,7 @@ static const struct par_master par_master_internal = {
.chip_writel = internal_chip_writel,
.chip_writen = fallback_chip_writen,
};
+#endif
enum chipbustype internal_buses_supported = BUS_NONE;
@@ -358,6 +360,7 @@ int internal_init(void)
}
#endif
+#if IS_X86 || IS_MIPS
static void internal_chip_writeb(const struct flashctx *flash, uint8_t val,
chipaddr addr)
{
@@ -400,3 +403,4 @@ static void internal_chip_readn(const struct flashctx *flash, uint8_t *buf,
mmio_readn((void *)addr, buf, len);
return;
}
+#endif
OpenPOWER on IntegriCloud