summaryrefslogtreecommitdiff
path: root/src/soc/imgtec/pistachio/uart.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/imgtec/pistachio/uart.c')
-rw-r--r--src/soc/imgtec/pistachio/uart.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/imgtec/pistachio/uart.c b/src/soc/imgtec/pistachio/uart.c
index a8ef3fa568..a39f2ec4d8 100644
--- a/src/soc/imgtec/pistachio/uart.c
+++ b/src/soc/imgtec/pistachio/uart.c
@@ -36,12 +36,12 @@
#define GEN_ACCESSOR(name, idx) \
static inline uint8_t read_##name(unsigned base_port) \
{ \
- return read8(base_port + (idx << UART_SHIFT)); \
+ return read8((void *)(base_port + (idx << UART_SHIFT))); \
} \
\
static inline void write_##name(unsigned base_port, uint8_t val) \
{ \
- write8(base_port + (idx << UART_SHIFT), val); \
+ write8((void *)(base_port + (idx << UART_SHIFT)), val); \
}
GEN_ACCESSOR(rbr, UART8250_RBR)