diff options
Diffstat (limited to 'arch/arm/mach-iop32x/include/mach/uncompress.h')
-rw-r--r-- | arch/arm/mach-iop32x/include/mach/uncompress.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/arm/mach-iop32x/include/mach/uncompress.h b/arch/arm/mach-iop32x/include/mach/uncompress.h new file mode 100644 index 000000000..c8548875d --- /dev/null +++ b/arch/arm/mach-iop32x/include/mach/uncompress.h @@ -0,0 +1,25 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * arch/arm/mach-iop32x/include/mach/uncompress.h + */ + +#include <asm/types.h> +#include <asm/mach-types.h> +#include <linux/serial_reg.h> + +#define uart_base ((volatile u8 *)0xfe800000) + +#define TX_DONE (UART_LSR_TEMT | UART_LSR_THRE) + +static inline void putc(char c) +{ + while ((uart_base[UART_LSR] & TX_DONE) != TX_DONE) + barrier(); + uart_base[UART_TX] = c; +} + +static inline void flush(void) +{ +} + +#define arch_decomp_setup() do { } while (0) |