xref: /kernel/linux/linux-5.10/arch/arm/mach-iop32x/include/mach/uncompress.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/arch/arm/mach-iop32x/include/mach/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * arch/arm/mach-iop32x/include/mach/uncompress.h
48c2ecf20Sopenharmony_ci */
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#include <asm/types.h>
78c2ecf20Sopenharmony_ci#include <asm/mach-types.h>
88c2ecf20Sopenharmony_ci#include <linux/serial_reg.h>
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci#define uart_base ((volatile u8 *)0xfe800000)
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci#define TX_DONE		(UART_LSR_TEMT | UART_LSR_THRE)
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_cistatic inline void putc(char c)
158c2ecf20Sopenharmony_ci{
168c2ecf20Sopenharmony_ci	while ((uart_base[UART_LSR] & TX_DONE) != TX_DONE)
178c2ecf20Sopenharmony_ci		barrier();
188c2ecf20Sopenharmony_ci	uart_base[UART_TX] = c;
198c2ecf20Sopenharmony_ci}
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_cistatic inline void flush(void)
228c2ecf20Sopenharmony_ci{
238c2ecf20Sopenharmony_ci}
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci#define arch_decomp_setup() do { } while (0)
26

Indexes created Thu Nov 07 10:32:03 CST 2024