From patchwork Mon Aug 28 12:10:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Tanure X-Patchwork-Id: 718542 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8A039C83F12 for ; Mon, 28 Aug 2023 12:12:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230099AbjH1MLb (ORCPT ); Mon, 28 Aug 2023 08:11:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230347AbjH1MLA (ORCPT ); Mon, 28 Aug 2023 08:11:00 -0400 Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A40E6D8; Mon, 28 Aug 2023 05:10:57 -0700 (PDT) Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-99c136ee106so401781466b.1; Mon, 28 Aug 2023 05:10:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693224656; x=1693829456; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=aRKpAHPZEPVk+Fg369igBwYVlHrrvSUCvtuNi+MYNXo=; b=HXIAcbpFkaqUUPPCC+O2Ecy/xHmAoYiqKPu/ThiN2SHLCWwVpDBlB+IWKxjcV3K7Sw IZXLngJcmrfkR/7i2jU391ked2t9AxrMm41YuCeJY5SHGzTjdSzJSU+F/QNfNglvDo7w tjlZnmIvRVmLARGmVPk1hJh7sQY9vGvrP4HDY3o9MzuXnpuhw2Sib+Akt22RAR6fHtlb Myv2pNRTQEXdCwBFrCmq9YiKMRf0K+oEIgT3JBBn1bqAhMvQCvcdIniux6B0WMDMBg+K R8MAS97av9MgDmB6sWBOc9Gdjz4F3/p/utyqi8oe0ABSm0jeQR4Y/4oX1FgFj5lsOW1J 9ovQ== X-Gm-Message-State: AOJu0YzBIWXBmU0xIyEZgx2ZMfBN4uH2V0TymDZ3dp3bQvKb1TNmNvXk bcMbWqcySzBLwbGKtogcr5s= X-Google-Smtp-Source: AGHT+IHh+jPAccLUybH0bG/hIhhcuZ570OrmJ9A7mqLj9tE8GeUWkUzWVRIvU1zeaQzCA2PXS+/2oA== X-Received: by 2002:a17:907:6087:b0:9a2:96d2:b1e8 with SMTP id ht7-20020a170907608700b009a296d2b1e8mr7132102ejc.54.1693224655865; Mon, 28 Aug 2023 05:10:55 -0700 (PDT) Received: from ryzen.lan (cpc87451-finc19-2-0-cust61.4-2.cable.virginm.net. [82.11.51.62]) by smtp.gmail.com with ESMTPSA id e25-20020a170906081900b00992ea405a79sm4567898ejd.166.2023.08.28.05.10.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Aug 2023 05:10:55 -0700 (PDT) From: Lucas Tanure To: Greg Kroah-Hartman , Jiri Slaby , Neil Armstrong , Kevin Hilman , Jerome Brunet Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, Lucas Tanure Subject: [PATCH] tty: serial: meson: Add a earlycon for the S4 SoC Date: Mon, 28 Aug 2023 13:10:53 +0100 Message-ID: <20230828121053.60838-1-tanure@linux.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org The new Amlogic S4 SoC does not have a always-on uart, so add OF_EARLYCON_DECLARE for it. Signed-off-by: Lucas Tanure --- drivers/tty/serial/meson_uart.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/meson_uart.c b/drivers/tty/serial/meson_uart.c index 790d910dafa5..8dfaa260e545 100644 --- a/drivers/tty/serial/meson_uart.c +++ b/drivers/tty/serial/meson_uart.c @@ -646,8 +646,8 @@ meson_serial_early_console_setup(struct earlycon_device *device, const char *opt return 0; } -OF_EARLYCON_DECLARE(meson, "amlogic,meson-ao-uart", - meson_serial_early_console_setup); +OF_EARLYCON_DECLARE(meson, "amlogic,meson-ao-uart", meson_serial_early_console_setup); +OF_EARLYCON_DECLARE(meson, "amlogic,meson-s4-uart", meson_serial_early_console_setup); #define MESON_SERIAL_CONSOLE_PTR(_devname) (&meson_serial_console_##_devname) #else