From patchwork Fri Aug 6 15:21:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 492845 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:396:0:0:0:0 with SMTP id y22csp423575jap; Fri, 6 Aug 2021 08:22:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNO20bD4f4v8h+V8ZVfCtFaLt6xc03tQEXCDRG/Ojtzyel/t//fn2H+ryOu7Kb4SNEDLE0 X-Received: by 2002:aa7:cb19:: with SMTP id s25mr13992509edt.194.1628263327053; Fri, 06 Aug 2021 08:22:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628263327; cv=none; d=google.com; s=arc-20160816; b=h4K4ItB4VteGLdz81hsE6bZJ6ynMrEip0fXTbgyTDclp3wav5BWj1LObbHg9UDHGH7 qkuYwIPsPgmXTDqqWw5ZGAr8rlBrDu40GybjoJhNQ45RvSMPvqj0pSk2Bv5Dx2+d5AAu hGgv80/lLsEsKrmiX4T7RyoUHfvFbvhKKLS72oY8PjX2paHZ9DvLqu8BKSTAHTomf15G Dk1QS/LxQHC3j4f9Nk2hkF71sfAq3bzx/k30AL82YzOi03aCxHtZhbh7/T/7aCPi32PC ZyCER9lbY8MagSVcsugi5AAyZ2KncekONUx/a1H6/ohW4jvCKan9HqGxYxJuFetWYHwi 2NLw== 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=bjAidQVjPnsdyg/2uwjvZwZUIqwFqOyk06P5z8n6Pdk=; b=R4OeDwztwM2QSCraz2uYcGI9VQL0r0YWeI/LDMAyLV9ikswnyVf8xvm6w1TU23YTth KYxiZMy6jXDCpulW9Dj2hfDfj3EPg9Spl7ZcUQtW1Tyszma+Pcp7HlIL+JKrEzZWuG5N O3eC+PSOL8MzzNqaOUPKcB+JE315tMxZ6LQSOflry2ijgLtHMCsTUSk4vnTu9DvCkgSk WjTN1hI3YipJbh97FFUsSaoMH0AsDdWn1cVsut2/ljoinSXqb6TRobr23z9RU6dyn/AM etw5SLynfPDxN8p67UBFWu5hnmeLM7zy9DKmpLfPk2KvohXM1/uvKC5ucGdZddm7+20f xdEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=w3bhoI9T; 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 u15si9530543edt.211.2021.08.06.08.22.06; Fri, 06 Aug 2021 08:22:07 -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=w3bhoI9T; 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 S244527AbhHFPWU (ORCPT + 4 others); Fri, 6 Aug 2021 11:22:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244530AbhHFPWQ (ORCPT ); Fri, 6 Aug 2021 11:22:16 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BC12C061367 for ; Fri, 6 Aug 2021 08:21:59 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id z2so1827704lft.1 for ; Fri, 06 Aug 2021 08:21:59 -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=bjAidQVjPnsdyg/2uwjvZwZUIqwFqOyk06P5z8n6Pdk=; b=w3bhoI9TaLN9+BaimUNJdAjGiFas7439LuvvPO8mNbDlicCeKyi4nWUx/VModoGVzN 61TIDRksKmXIdADyvk9S+YFXan+9/kjvEYf3AT1cHXjR1QwcLNnZIfdrk2gvkAntlfV0 K6VwycLQ+HSAwMMNXhyCL8a/tsA/9BBPnetOkQUJ3KcTOOPcAaVz5dizGOtSvHyK8Djh qHmWrZ6bEOKg7WWM+e+yCt5InvbFG4U0tOMwUbx1BAAPc2SrzbF24cASRp1V0p0VxckO YMqy9bkGMPPR2828C4oShzaEi9rck++WFZT/2nXpJ2Ou+jXfmrn1XYbpwTEtaHD0ulfS vivA== 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=bjAidQVjPnsdyg/2uwjvZwZUIqwFqOyk06P5z8n6Pdk=; b=KfMMa7civRq/RB+0redbLoAHnibH/VIPYaQyHhXAbWetGjbavmyMPaoy06hjUGiDvN OTHRaspD242LvqbI9OPDqBRjjG3nY/lyNk8DAtCio1syaommfJ87T2Jr70x5KsSFbvwE 6R8vtRcTzuObMHQcY4OtNVOSSu1SxF0Skl2qlNoA5/DjvQhsSIfcbGy/dB20UTbcytI6 ClpH6ecYzHWYs2QxsPhtv7JL3GbnPoo2sAIPBJUKbpIYR9GDDn/Uf2OmhMPeMhhJIXrL F5aHyiORxuQOmfbUkT33A55UBeqVaC6YX94S8iM3yEPoavhXY8bNr2Q7LgBwlQ0jv4g9 kaXw== X-Gm-Message-State: AOAM530pdxApdSI8u/lxzJMNh4d028QJxWa+v0MVLf8GY+iSPBhYe1yz zBrEnSHbeHJ8/yLtNukg0JYxig== X-Received: by 2002:ac2:5087:: with SMTP id f7mr7702795lfm.43.1628263317657; Fri, 06 Aug 2021 08:21:57 -0700 (PDT) Received: from localhost ([31.134.121.151]) by smtp.gmail.com with ESMTPSA id j18sm861634lfg.65.2021.08.06.08.21.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Aug 2021 08:21:57 -0700 (PDT) From: Sam Protsenko To: Sylwester Nawrocki , Chanwoo Choi , Krzysztof Kozlowski , Linus Walleij , Tomasz Figa , =?utf-8?q?Pawe=C5=82_Chmiel?= Cc: 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-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-serial@vger.kernel.org Subject: [PATCH v2 6/8] tty: serial: samsung: Add Exynos850 SoC data Date: Fri, 6 Aug 2021 18:21:44 +0300 Message-Id: <20210806152146.16107-7-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210806152146.16107-1-semen.protsenko@linaro.org> References: <20210806152146.16107-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". Signed-off-by: Sam Protsenko --- Changes in v2: - Fixed default fifo sizes drivers/tty/serial/samsung_tty.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) -- 2.30.2 Reviewed-by: Krzysztof Kozlowski 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);