From bf55b84736d6b220dae11e3b1e7a670918d9daee Mon Sep 17 00:00:00 2001 From: Kuan-Wei Chiu Date: Wed, 7 Jan 2026 20:18:30 +0000 Subject: serial: Add Goldfish TTY driver Add support for the Google Goldfish TTY serial device. This virtual device is commonly used in QEMU virtual machines (such as the m68k virt machine) and Android emulators. The driver implements basic console output and input polling using the Goldfish MMIO interface. Signed-off-by: Kuan-Wei Chiu Reviewed-by: Yao Zi Tested-by: Daniel Palmer Acked-by: Heinrich Schuchardt Reviewed-by: Simon Glass Acked-by: Angelo Dureghello --- include/goldfish_tty.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 include/goldfish_tty.h (limited to 'include') diff --git a/include/goldfish_tty.h b/include/goldfish_tty.h new file mode 100644 index 00000000000..db49c8d6344 --- /dev/null +++ b/include/goldfish_tty.h @@ -0,0 +1,18 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2025, Kuan-Wei Chiu + */ + +#ifndef _GOLDFISH_TTY_H_ +#define _GOLDFISH_TTY_H_ + +#include + +/* Platform data for the Goldfish TTY driver + * Used to pass hardware base address from Board to Driver + */ +struct goldfish_tty_plat { + phys_addr_t reg; +}; + +#endif /* _GOLDFISH_TTY_H_ */ -- cgit v1.2.3