From patchwork Mon Oct 9 12:11:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Tanure X-Patchwork-Id: 731355 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 57E6CE95A99 for ; Mon, 9 Oct 2023 12:13:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346598AbjJIMNP (ORCPT ); Mon, 9 Oct 2023 08:13:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346595AbjJIMMY (ORCPT ); Mon, 9 Oct 2023 08:12:24 -0400 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 872E4D6C; Mon, 9 Oct 2023 05:11:56 -0700 (PDT) Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-405524e6769so26546165e9.1; Mon, 09 Oct 2023 05:11:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696853515; x=1697458315; 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=OqMkCHIJg0J3KfyKm+ow+U1NVWJ1Dko3B1vIyVCrYS8=; b=TWdjvMeVlqWKkbqxm2/PHkg1L/C7evYh5Wf5NuBvPdpmi0Y8JVcqCIJ46J/9jvso3B +vaYYlcs2y/FPoWbAqaioLk9fay9qisVSFMcDa4ZXohJnrQlSEZCdTdAGdQ9MayEsEIx X691rfbUa1zBARKzrZylSy9T8f/WWtHfMEdGJG2szczlwVUrlS9/ZTpeGtDtS7FZhrNN TlHn3jSBM+bEaFTldc8CFD0wUmLQmLPScwJjUeYT0n/LPEM/eNtVTNB5FM3YsbvPeFmT cqyj5l9Q5p0mvV0HAN/JdaoDDu8ovYIb5qeaB0606PcMc4ywzYPPP6PIDAZsu41sRNQx KAWg== X-Gm-Message-State: AOJu0YxfZBbN98vPnc1oPclq4FLy/ChQBW/2IHE8p1HH/IBm2qaCIXCu Rl5QzQUYkKU7xkynYnKQOa0= X-Google-Smtp-Source: AGHT+IEhtAtDaeK55NICa8MKuOXjnXZ6tmxOZYYdrOr4f2t7yKAr2Ky48cjoWtiT1sZKpLGG7j8S2w== X-Received: by 2002:a05:600c:224d:b0:406:80b4:efd5 with SMTP id a13-20020a05600c224d00b0040680b4efd5mr10651820wmm.14.1696853514542; Mon, 09 Oct 2023 05:11:54 -0700 (PDT) Received: from localhost.localdomain (cpc87451-finc19-2-0-cust61.4-2.cable.virginm.net. [82.11.51.62]) by smtp.gmail.com with ESMTPSA id l11-20020a1ced0b000000b004051f8d6207sm11067123wmh.6.2023.10.09.05.11.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 05:11:54 -0700 (PDT) From: Lucas Tanure To: Greg Kroah-Hartman , Jiri Slaby , Neil Armstrong , Kevin Hilman 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 v2] tty: serial: meson: Add a earlycon for the S4 SoC Date: Mon, 9 Oct 2023 13:11:51 +0100 Message-ID: <20231009121151.4509-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. Amlogic T7 will use this as fallback. Signed-off-by: Lucas Tanure Reviewed-by: Neil Armstrong --- 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 45cc23e9e399..de298bf75d9b 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