From patchwork Wed Aug 11 11:48:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 495159 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:396:0:0:0:0 with SMTP id y22csp4886043jap; Wed, 11 Aug 2021 04:49:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0KZeXmJ9bWeAynV3AMUNLEjUmoFz6Q51YP9vz29i2BCGH63q0SL7kfHAL3b9+3Jh6BMTQ X-Received: by 2002:a05:6e02:1543:: with SMTP id j3mr107870ilu.308.1628682551945; Wed, 11 Aug 2021 04:49:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628682551; cv=none; d=google.com; s=arc-20160816; b=wJhlFhT7e9J7wUZzEJ//MFp8lQ/SvA8V2LbqpE84KbNKlN9dnhW/7UiKt5IqlcB0Li 6qW9gocDkLN1G9BBEndAoccBF7DPggHp28UlG5adHEjjdW/jrDwTz+TtWsoTG/TEwmfD o2xl1PDpfXFR5CfzG4bGssHH455v5gP7fcUcSx+tN/7+6TXfjirAn6dyeWlSG6l4OXYg PGYI5l/3QzMadJCHwh/g3uEw029A5lao78hR9FTSZYg/vlLn9eQlAZoJy8WQxGBEzZZB nBbv78btm2SLGj3grrl/24sbf0+DYFueUHXhx4fPZMJ16yUiEE1cqneuUFRk4ztZIbo7 tliw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=EmrLgkupVqTxc8/L9lxZYrujbcXsZpYLC0Uzd5BaWr4=; b=FXFvyEqQjKsN5QxLFyDWQ11pGD0fOffO/u+oPQNPZF4fpWj9EMKBKgpyZaZVSmWWFS D3DwEuzQDqSQlS7pCqjYGvls2xfUTsLYseqNwK3+L6cFJRJjNXUzca0V1MAxAK6rWCV0 i9TwUWT7scvCB9O6xKXHPxaW3EgpOESjAT7ycVTh/aRs4J8SY4taQFrWtuCzNK8VVC5r 3vybvxFg3OjfB9N+eguUyVKeoUPa+FQvviRo/SVLIZeEnhkSX9yHCyR6i7C0mWJzENgL ujVu3Mrs6ruKLv9KWcu7Gk+8gVC1wN4F35T8nr4/R6LwwALivgjF5sJVCNZOFAayWI5i v71A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mEfotTU+; spf=pass (google.com: domain of linux-samsung-soc-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w8si581612ill.92.2021.08.11.04.49.11; Wed, 11 Aug 2021 04:49:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-samsung-soc-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mEfotTU+; spf=pass (google.com: domain of linux-samsung-soc-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237506AbhHKLtU (ORCPT + 4 others); Wed, 11 Aug 2021 07:49:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237508AbhHKLtE (ORCPT ); Wed, 11 Aug 2021 07:49:04 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF27FC06179B for ; Wed, 11 Aug 2021 04:48:39 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id y7so3301973eda.5 for ; Wed, 11 Aug 2021 04:48:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=EmrLgkupVqTxc8/L9lxZYrujbcXsZpYLC0Uzd5BaWr4=; b=mEfotTU+4tEz1nqSr+lmns404cQ18u7hfJyZbjftAT2+YzIAkrV92eW1pwFYc+wWfb 6imwjRL4TRfc0RKuSV6SWqnCi41hQpOWLy8gn/RzXr33PwhXmkcpMBbBjOlz3k85TEMC r4U31IkAXDxL/i+h/XQKsy7tVZoqfbR5hBwk9zx0uZeSh9S5rHnA91KuUlbXHxDCi1+Z 2bCgkItJGUMVuZerKlmfupT4aKwaVHcZT8CKcrxraPpMOsCKwSVswF9xeoCrlJkj21Xx cLrmLzMfBo+Z8Amoro0etyM/RVS8OeYQkop58ySADJ9qPd1uXS8Jb3ZSQ8hEGMPdCrwd A0/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=EmrLgkupVqTxc8/L9lxZYrujbcXsZpYLC0Uzd5BaWr4=; b=ZEhkH4SFj1eCkHVoQBL6g81etpk7isY9ImaukLaj+r4y1KMxBQBwMpTRVTxLUUGp4I yw9EpZrZxtMrOnFY7dbn9ZsdGREjNmiWIO1MD3neCtaReojHii57ui8wKHeHUJQLNsBL lRiMXBw0EkVhwxzX1yWhieXufChTmBJ4rGuz84fIctSsRu3vhtlBVWM0NSGVPD/RmXWd aBh0rEoamQh35p9rYieEo+AULWWIqFu4SVASptUZ/kiF+ceOzDcuEcviWBg59MfLMqlO jvCqEn9OvaXMH6NWYQnRfqs7fCWqxO9sEKaK+1WGCBRFJyKdSxB+lEl2gnWbuB08/NoC WSRA== X-Gm-Message-State: AOAM533J+lHD8fWVOKmQAp9r7jctEgb+87XWJ1RAOv0H6z01owOIPuQM UHxlnkVqVR+RwMcLLhaZv4ftOw== X-Received: by 2002:aa7:dcd1:: with SMTP id w17mr10745160edu.322.1628682518340; Wed, 11 Aug 2021 04:48:38 -0700 (PDT) Received: from localhost ([31.134.121.151]) by smtp.gmail.com with ESMTPSA id x13sm8113077ejv.64.2021.08.11.04.48.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Aug 2021 04:48:37 -0700 (PDT) From: Sam Protsenko To: Krzysztof Kozlowski , Sylwester Nawrocki , =?utf-8?q?Pawe=C5=82_Chmiel?= , Chanwoo Choi Cc: Linus Walleij , Tomasz Figa , Marc Zyngier , Rob Herring , Stephen Boyd , Michael Turquette , Jiri Slaby , Greg Kroah-Hartman , Charles Keepax , Ryu Euiyoul , Tom Gall , Sumit Semwal , John Stultz , Amit Pundir , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-serial@vger.kernel.org Subject: [PATCH v3 6/7] tty: serial: samsung: Add Exynos850 SoC data Date: Wed, 11 Aug 2021 14:48:26 +0300 Message-Id: <20210811114827.27322-7-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210811114827.27322-1-semen.protsenko@linaro.org> References: <20210811114827.27322-1-semen.protsenko@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Add serial driver data for Exynos850 SoC. This driver data is basically reusing EXYNOS_COMMON_SERIAL_DRV_DATA, which is common for all Exynos chips, but also enables USI init, which was added in previous commit: "tty: serial: samsung: Init USI to keep clocks running". Reviewed-by: Krzysztof Kozlowski Signed-off-by: Sam Protsenko --- Changes in v3: - Added Reviewed-by tag by Krzysztof Changes in v2: - Fixed default fifo sizes drivers/tty/serial/samsung_tty.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) -- 2.30.2 diff --git a/drivers/tty/serial/samsung_tty.c b/drivers/tty/serial/samsung_tty.c index 130bdc978e93..a069e7bb858f 100644 --- a/drivers/tty/serial/samsung_tty.c +++ b/drivers/tty/serial/samsung_tty.c @@ -2813,11 +2813,19 @@ static struct s3c24xx_serial_drv_data exynos5433_serial_drv_data = { .fifosize = { 64, 256, 16, 256 }, }; +static struct s3c24xx_serial_drv_data exynos850_serial_drv_data = { + EXYNOS_COMMON_SERIAL_DRV_DATA_USI(1), + .fifosize = { 256, 64, 64, 64 }, +}; + #define EXYNOS4210_SERIAL_DRV_DATA ((kernel_ulong_t)&exynos4210_serial_drv_data) #define EXYNOS5433_SERIAL_DRV_DATA ((kernel_ulong_t)&exynos5433_serial_drv_data) +#define EXYNOS850_SERIAL_DRV_DATA ((kernel_ulong_t)&exynos850_serial_drv_data) + #else #define EXYNOS4210_SERIAL_DRV_DATA ((kernel_ulong_t)NULL) #define EXYNOS5433_SERIAL_DRV_DATA ((kernel_ulong_t)NULL) +#define EXYNOS850_SERIAL_DRV_DATA ((kernel_ulong_t)NULL) #endif #ifdef CONFIG_ARCH_APPLE @@ -2873,6 +2881,9 @@ static const struct platform_device_id s3c24xx_serial_driver_ids[] = { }, { .name = "s5l-uart", .driver_data = S5L_SERIAL_DRV_DATA, + }, { + .name = "exynos850-uart", + .driver_data = EXYNOS850_SERIAL_DRV_DATA, }, { }, }; @@ -2896,6 +2907,8 @@ static const struct of_device_id s3c24xx_uart_dt_match[] = { .data = (void *)EXYNOS5433_SERIAL_DRV_DATA }, { .compatible = "apple,s5l-uart", .data = (void *)S5L_SERIAL_DRV_DATA }, + { .compatible = "samsung,exynos850-uart", + .data = (void *)EXYNOS850_SERIAL_DRV_DATA }, {}, }; MODULE_DEVICE_TABLE(of, s3c24xx_uart_dt_match);