Fix FTBFS on POWER systems

parent 0951d2a2
...@@ -131,6 +131,7 @@ int register_superio(struct superio s) ...@@ -131,6 +131,7 @@ int register_superio(struct superio s)
int is_laptop = 0; int is_laptop = 0;
int laptop_ok = 0; int laptop_ok = 0;
#if IS_X86 || IS_MIPS
static void internal_chip_writeb(const struct flashctx *flash, uint8_t val, static void internal_chip_writeb(const struct flashctx *flash, uint8_t val,
chipaddr addr); chipaddr addr);
static void internal_chip_writew(const struct flashctx *flash, uint16_t val, static void internal_chip_writew(const struct flashctx *flash, uint16_t val,
...@@ -155,6 +156,7 @@ static const struct par_master par_master_internal = { ...@@ -155,6 +156,7 @@ static const struct par_master par_master_internal = {
.chip_writel = internal_chip_writel, .chip_writel = internal_chip_writel,
.chip_writen = fallback_chip_writen, .chip_writen = fallback_chip_writen,
}; };
#endif
enum chipbustype internal_buses_supported = BUS_NONE; enum chipbustype internal_buses_supported = BUS_NONE;
...@@ -358,6 +360,7 @@ int internal_init(void) ...@@ -358,6 +360,7 @@ int internal_init(void)
} }
#endif #endif
#if IS_X86 || IS_MIPS
static void internal_chip_writeb(const struct flashctx *flash, uint8_t val, static void internal_chip_writeb(const struct flashctx *flash, uint8_t val,
chipaddr addr) chipaddr addr)
{ {
...@@ -400,3 +403,4 @@ static void internal_chip_readn(const struct flashctx *flash, uint8_t *buf, ...@@ -400,3 +403,4 @@ static void internal_chip_readn(const struct flashctx *flash, uint8_t *buf,
mmio_readn((void *)addr, buf, len); mmio_readn((void *)addr, buf, len);
return; return;
} }
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment