From patchwork Fri Jul 30 14:49:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 489326 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:1185:0:0:0:0 with SMTP id f5csp3222004jas; Fri, 30 Jul 2021 07:49:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHIs2QrnkK7/fGJuvXM34no4yGTmw8AhCgtLOXzCotHlhHxH48zzmN/34jH+vvoj/PXoaf X-Received: by 2002:a05:6638:25c7:: with SMTP id u7mr2443752jat.26.1627656593437; Fri, 30 Jul 2021 07:49:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627656593; cv=none; d=google.com; s=arc-20160816; b=NQyxTyLYw0uZPDjl454a6AJ5Gyu5BMLsjz4Ssfk0fVo2wvZQm/Z1cHppBnJfuWP5jg p2TUydBpXl5LS/Je1ZUrPWN1FFbr0IdGYACq030lGPtSUA0Sua6W4cdVNdlSpAn0kuvi cYjXfopAiRGt6nyh3Mb4jUh3AYNppsIoSIkxv2QTFFcxkYKG7BZNBQiB4TpNeyouWzaG b3OC4yvhLIlQxgbS/H172QZJ9xm3K1c73qynFCH+Z2rvCjoop60B0NFILLJ47G0GTJwY Pn6Qge4kCEIjKIZTmu2vZkp87wdJfHJI4dUkVOhYzWvaQdvENgtO3DrEB9PJP+0YK8ut TEfw== 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=/WRgr1XFp9FdAsbKP4Xd28JEjGpJQHHB0Nsl4r99ndU=; b=dheqg6M3ObwBHBTriJ3alcxkR+nxu3eBF4bpztweyubO3Be3z/nFt3nR4VzSReVFwk Y2ONEa3KZNrghO69rsooDg3lgekqoAJu8MV9HflkA4Zm7RcvK/HR63jPYqJ6zLyPZBgN fs7w3zZdaM5MS9QNDeBygtJdkBAQRn7B8i6xwPVfXvGYlyVX4Nd78RBW8WmH+qgEcAJf suSjthMxbRRlz2J1RJNogiCvR7zaSGFM5OGmQTacCg/6NBkYwcYzwfOwtHjEfD93Ae5x +2qU7NhleoQVOAjuE0Y2VzeV11nVvZXggXFzfwPwdyjHaHq0DWyIIEfmIzd1doP/I/Jx +9bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ttd3PD4S; spf=pass (google.com: domain of linux-gpio-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-gpio-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 y11si2136265jai.105.2021.07.30.07.49.53; Fri, 30 Jul 2021 07:49:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-gpio-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=Ttd3PD4S; spf=pass (google.com: domain of linux-gpio-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-gpio-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 S239571AbhG3Ot5 (ORCPT + 3 others); Fri, 30 Jul 2021 10:49:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239529AbhG3Otp (ORCPT ); Fri, 30 Jul 2021 10:49:45 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98411C06179C for ; Fri, 30 Jul 2021 07:49:34 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id x14so13517994edr.12 for ; Fri, 30 Jul 2021 07:49:34 -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=/WRgr1XFp9FdAsbKP4Xd28JEjGpJQHHB0Nsl4r99ndU=; b=Ttd3PD4SOkqmgJ56xmVxk5y/kZqfeZKwZjt5/WRIFeZZ2Yp0sjaFyhcBKhWKm4vcZx JUFlWZh/n8JDtgEBEz/uJasK+IBWtqo8cGLyO3/QdS+pkzySyL7TOlJIwtw+5NftG3iw 9VAbPtSsUQBwtr2vnpoF4MQ5KDtlc/U0udCEOdKRQmgT8AJwnwo6lfCcfpwjFsNdSU5Q vs20Ud3GX02VX6orIcQfu507dW+vwZ1xodAQySsSlVgXDioYkSfqV65APAW/wm0TSCM4 Sz+Bh4gLoAS9RmHv/IiNmQrOX3vw5D0UkHMisMzjRgYavzMewUkoFT33Wi/IifsWIi8z lyRA== 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=/WRgr1XFp9FdAsbKP4Xd28JEjGpJQHHB0Nsl4r99ndU=; b=qwpD9Bb9uzcLCL1IiMKSJqq8U3Y1OPwlWdBvu0KNdqULmPoaIHh8OeHSJFU1J9N8aw HEiwNnAEXbd8eY+NPFQWDgXN/nwEqWQKV6N6qG3V9too0mkpeBssolQleSCDrbq01Ko2 T6YQDmARwuvdK5xDZHlwRjRqMUngx6T5Hv1Pl2gHAw+EecQEcX/4IhOxp5gS+EPsaZZs Sa9Fv8Rae4YBh4tCVbhlx5WbFY98hxRdo6wH4TMV8LjX7D2LOo7LNYAtKicEJ7ocK87M 7/jQjcrXI09Tqulg/1cbb9rg8mG5EzzYiLI2pwkKiwXsR9jHOydT8whoV/FPXbVsC9/w 7xYg== X-Gm-Message-State: AOAM530QULLHLkYAwdjUQPuOYzZx6SqBHvrOTmSM+2YZlrJDxOIlyBI0 MDt8hQGluCJiIFLiKcDEx7ad0A== X-Received: by 2002:a05:6402:49a:: with SMTP id k26mr3292136edv.279.1627656573161; Fri, 30 Jul 2021 07:49:33 -0700 (PDT) Received: from localhost ([31.134.121.151]) by smtp.gmail.com with ESMTPSA id i10sm784560edf.12.2021.07.30.07.49.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Jul 2021 07:49:32 -0700 (PDT) From: Sam Protsenko To: Sylwester Nawrocki , Chanwoo Choi , Krzysztof Kozlowski , Linus Walleij , Tomasz Figa Cc: 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 06/12] tty: serial: samsung: Add Exynos850 SoC data Date: Fri, 30 Jul 2021 17:49:16 +0300 Message-Id: <20210730144922.29111-7-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210730144922.29111-1-semen.protsenko@linaro.org> References: <20210730144922.29111-1-semen.protsenko@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@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 --- 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 75ccbb08df4a..d059b516a0f4 100644 --- a/drivers/tty/serial/samsung_tty.c +++ b/drivers/tty/serial/samsung_tty.c @@ -2814,11 +2814,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 = { 0, }, +}; + #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 @@ -2874,6 +2882,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, }, { }, }; @@ -2897,6 +2908,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);