diff options
author | Simon Glass <sjg@chromium.org> | 2020-12-19 10:39:53 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-01-05 12:24:41 -0700 |
commit | bfae6cc48afa5bc22703c93af70b27501900f56a (patch) | |
tree | 2d83c036b74947e463fbc1e29697f437084c1ee0 /arch/sandbox | |
parent | 10bb90fa30e6e4479a06982e074bb8b3b981301d (diff) | |
download | u-boot-bfae6cc48afa5bc22703c93af70b27501900f56a.zip u-boot-bfae6cc48afa5bc22703c93af70b27501900f56a.tar.gz u-boot-bfae6cc48afa5bc22703c93af70b27501900f56a.tar.bz2 |
sandbox: serial: Move priv into a header file
Move this struct into a header file so that dtoc can include it in its
dt-platdata.c file.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'arch/sandbox')
-rw-r--r-- | arch/sandbox/include/asm/serial.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/arch/sandbox/include/asm/serial.h b/arch/sandbox/include/asm/serial.h new file mode 100644 index 0000000..bc82aeb --- /dev/null +++ b/arch/sandbox/include/asm/serial.h @@ -0,0 +1,30 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright 2020 Google LLC + * Written by Simon Glass <sjg@chromium.org> + */ + +#ifndef __asm_serial_h +#define __asm_serial_h + +#include <dt-structs.h> + +struct sandbox_serial_plat { +#if CONFIG_IS_ENABLED(OF_PLATDATA) + struct dtd_sandbox_serial dtplat; +#endif + int colour; /* Text colour to use for output, -1 for none */ +}; + +/** + * struct sandbox_serial_priv - Private data for this driver + * + * @buf: holds input characters available to be read by this driver + */ +struct sandbox_serial_priv { + struct membuff buf; + char serial_buf[16]; + bool start_of_line; +}; + +#endif /* __asm_serial_h */ |