// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2012 ARM Ltd. * Author: Marc Zyngier * * Adapted for ARM and earlycon: * Copyright (C) 2014 Linaro Ltd. * Author: Rob Herring */ #include #include #include #include #include static void smh_write(struct console *con, const char *s, unsigned n) { struct earlycon_device *dev = con->data; uart_console_write(&dev->port, s, n, smh_putc); } static int __init early_smh_setup(struct earlycon_device *device, const char *opt) { device->con->write = smh_write; return 0; } EARLYCON_DECLARE(smh, early_smh_setup);