Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp13633imu; Thu, 8 Nov 2018 13:56:30 -0800 (PST) X-Google-Smtp-Source: AJdET5fATIb2oCtS11+naj4WyEbo2KWZ6+G/Es5ucHDZGFpIiWTvvRTP8QhCXVOZCV1ljgZzWWS1 X-Received: by 2002:a17:902:2943:: with SMTP id g61-v6mr6337243plb.82.1541714189999; Thu, 08 Nov 2018 13:56:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541714189; cv=none; d=google.com; s=arc-20160816; b=icN2IUXHu49YCuojDyVnD7AKdQOFEeqY5cE0W11YTktEXJb+Ds2Kuj2VqA3f8qx2hr M78Xf8FO17ZBu2a/ShLAB2o67H5iLyhg2raFQcG/o2n8HEGk6mg06rlg8wqDigk+OZrE byg4e/oFD4KQG0cYzPPpSiP22Mz8BGS0tvBLWJPOwhdABEqTvaTgHN8MSvvK7exf9r52 2sN7aMFq/AhuNurWb+fJKYcHVZ1uEPQak8UmRE5Y2Mw+/wHSllkZOihNZlkmKBPRNUfi kkfMWh1wQrAO9A+mSuuTucVQhsf0SFB9CbtD8grSkHnrs0px1YuJuJELDG9dSpS42e4G RAhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=/wc9JYF2MOx0ApH/gzPJPSESYXqYzDFLkkp34Yeq0fo=; b=sLveqSGcbNCvHgES37/SwAxnB0cOAZey4RadfslQrvGXde/qtYYY544uBLQCVIO9ht e3meO2i2TXNTg3bclnrQAojrzL/zNE0AzncJGptBaTx1WH8ujnqzS2PS60XGagaSPa+k 8gZ6k7Xb7+QLCIpf32t8b6OnjBLVJnPTM4ezLqfDiUXcX1JdFd6Ixp1MWxt16C977qKX sE7az8ISW9yLZgMha2FeU1KT7cY/VE+e6PegLZXchBKd4Gd4SKKYqXzDs8TrgsIhaA0k x60Ik71b4DHjPsdY4vuLgh7/29ilnF+7jlyvcDecgyKuk73U3zvaEdqnz26L4XK9Lq7q vs2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fJNhFMZj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p187-v6si5208288pfb.127.2018.11.08.13.56.14; Thu, 08 Nov 2018 13:56:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fJNhFMZj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728574AbeKIHcl (ORCPT + 99 others); Fri, 9 Nov 2018 02:32:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:48000 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727266AbeKIHcl (ORCPT ); Fri, 9 Nov 2018 02:32:41 -0500 Received: from localhost (unknown [208.72.13.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7DF7620892; Thu, 8 Nov 2018 21:55:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541714113; bh=YeFWPC0ljN2PlGZIBBIo0Q4Fw73e1v7Il7vUBuNs7Sk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fJNhFMZjg7wnIwEbr/7ld1PBRnNPVJMmpn/Lvw7lnfv3zM+CZKM0ilebwa5kRek9y nmlIJVQYWwM/cJO28wWKja3djry5zfqLyFeqKnQ3fxK1qBhENN1PVm/fav7N8iWD8e OhUi8AolNh+tG3kKAB9g5ZL0CEDbQESGsd8SMm3g= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jiri Slaby , linux-serial@vger.kernel.org, Chanwoo Choi , Inki Dae , Geunsik Lim , Sasha Levin Subject: [PATCH 3.18 064/144] serial: samsung: Add the support for Exynos5433 SoC Date: Thu, 8 Nov 2018 13:50:35 -0800 Message-Id: <20181108215059.507617653@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181108215054.826084593@linuxfoundation.org> References: <20181108215054.826084593@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.18-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 31ec77aca72ee5920ed3ec3d047734dc0bc43342 ] This patch adds new s3c24xx_serial_drv_data structure for Exynos5433 SoC because Exynos5433 has different fifo size from existing Exynos4 SoC. Cc: Greg Kroah-Hartman Cc: Jiri Slaby Cc: linux-serial@vger.kernel.org Signed-off-by: Chanwoo Choi Acked-by: Inki Dae Acked-by: Geunsik Lim Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/tty/serial/samsung.c | 56 +++++++++++++++++++++++------------- 1 file changed, 36 insertions(+), 20 deletions(-) diff --git a/drivers/tty/serial/samsung.c b/drivers/tty/serial/samsung.c index ba59a76edc8b..957992ceba0a 100644 --- a/drivers/tty/serial/samsung.c +++ b/drivers/tty/serial/samsung.c @@ -1785,32 +1785,43 @@ static struct s3c24xx_serial_drv_data s5pv210_serial_drv_data = { #endif #if defined(CONFIG_ARCH_EXYNOS) +#define EXYNOS_COMMON_SERIAL_DRV_DATA \ + .info = &(struct s3c24xx_uart_info) { \ + .name = "Samsung Exynos UART", \ + .type = PORT_S3C6400, \ + .has_divslot = 1, \ + .rx_fifomask = S5PV210_UFSTAT_RXMASK, \ + .rx_fifoshift = S5PV210_UFSTAT_RXSHIFT, \ + .rx_fifofull = S5PV210_UFSTAT_RXFULL, \ + .tx_fifofull = S5PV210_UFSTAT_TXFULL, \ + .tx_fifomask = S5PV210_UFSTAT_TXMASK, \ + .tx_fifoshift = S5PV210_UFSTAT_TXSHIFT, \ + .def_clk_sel = S3C2410_UCON_CLKSEL0, \ + .num_clks = 1, \ + .clksel_mask = 0, \ + .clksel_shift = 0, \ + }, \ + .def_cfg = &(struct s3c2410_uartcfg) { \ + .ucon = S5PV210_UCON_DEFAULT, \ + .ufcon = S5PV210_UFCON_DEFAULT, \ + .has_fracval = 1, \ + } \ + static struct s3c24xx_serial_drv_data exynos4210_serial_drv_data = { - .info = &(struct s3c24xx_uart_info) { - .name = "Samsung Exynos4 UART", - .type = PORT_S3C6400, - .has_divslot = 1, - .rx_fifomask = S5PV210_UFSTAT_RXMASK, - .rx_fifoshift = S5PV210_UFSTAT_RXSHIFT, - .rx_fifofull = S5PV210_UFSTAT_RXFULL, - .tx_fifofull = S5PV210_UFSTAT_TXFULL, - .tx_fifomask = S5PV210_UFSTAT_TXMASK, - .tx_fifoshift = S5PV210_UFSTAT_TXSHIFT, - .def_clk_sel = S3C2410_UCON_CLKSEL0, - .num_clks = 1, - .clksel_mask = 0, - .clksel_shift = 0, - }, - .def_cfg = &(struct s3c2410_uartcfg) { - .ucon = S5PV210_UCON_DEFAULT, - .ufcon = S5PV210_UFCON_DEFAULT, - .has_fracval = 1, - }, + EXYNOS_COMMON_SERIAL_DRV_DATA, .fifosize = { 256, 64, 16, 16 }, }; + +static struct s3c24xx_serial_drv_data exynos5433_serial_drv_data = { + EXYNOS_COMMON_SERIAL_DRV_DATA, + .fifosize = { 64, 256, 16, 256 }, +}; + #define EXYNOS4210_SERIAL_DRV_DATA ((kernel_ulong_t)&exynos4210_serial_drv_data) +#define EXYNOS5433_SERIAL_DRV_DATA ((kernel_ulong_t)&exynos5433_serial_drv_data) #else #define EXYNOS4210_SERIAL_DRV_DATA (kernel_ulong_t)NULL +#define EXYNOS5433_SERIAL_DRV_DATA (kernel_ulong_t)NULL #endif static struct platform_device_id s3c24xx_serial_driver_ids[] = { @@ -1832,6 +1843,9 @@ static struct platform_device_id s3c24xx_serial_driver_ids[] = { }, { .name = "exynos4210-uart", .driver_data = EXYNOS4210_SERIAL_DRV_DATA, + }, { + .name = "exynos5433-uart", + .driver_data = EXYNOS5433_SERIAL_DRV_DATA, }, { }, }; @@ -1851,6 +1865,8 @@ static const struct of_device_id s3c24xx_uart_dt_match[] = { .data = (void *)S5PV210_SERIAL_DRV_DATA }, { .compatible = "samsung,exynos4210-uart", .data = (void *)EXYNOS4210_SERIAL_DRV_DATA }, + { .compatible = "samsung,exynos5433-uart", + .data = (void *)EXYNOS5433_SERIAL_DRV_DATA }, {}, }; MODULE_DEVICE_TABLE(of, s3c24xx_uart_dt_match); -- 2.17.1