summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKuan-Wei Chiu <[email protected]>2026-01-07 20:18:30 +0000
committerTom Rini <[email protected]>2026-02-02 14:24:40 -0600
commitbf55b84736d6b220dae11e3b1e7a670918d9daee (patch)
tree142992b0560f5aaff416824dad57201565b0b07f /include
parentf2f69886ac181e74fa378cf49bdee33e6e9a4188 (diff)
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 <[email protected]> Reviewed-by: Yao Zi <[email protected]> Tested-by: Daniel Palmer <[email protected]> Acked-by: Heinrich Schuchardt <[email protected]> Reviewed-by: Simon Glass <[email protected]> Acked-by: Angelo Dureghello <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/goldfish_tty.h18
1 files changed, 18 insertions, 0 deletions
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 <[email protected]>
+ */
+
+#ifndef _GOLDFISH_TTY_H_
+#define _GOLDFISH_TTY_H_
+
+#include <linux/types.h>
+
+/* 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_ */