Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp11828imm; Thu, 30 Aug 2018 05:55:34 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb5I+WT2Lq4W8qfXiQG/LZVMVMDH7S2j6FXf/DMg/NHZX5Kk7ir0C4yLpcxQz26K50QE7mH X-Received: by 2002:a17:902:8ec8:: with SMTP id x8-v6mr10159299plo.308.1535633734686; Thu, 30 Aug 2018 05:55:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535633734; cv=none; d=google.com; s=arc-20160816; b=Kza8bRLO+sdGMJjPkk+BoRHGKgVVxx7pwyY4nn/jEvbVkjHgDERQbR5lQeG6+pAzyZ G9AQNmV3+/9GD27KJqgV0NlcpSMoaqsG8aKoljtNEZvzYmHK31FBbG7Vy881wxo3s7Dt bOUH90Ee8kZOH327oa97dXZvFcG+r2vIzR8aWicKI9+XT3/yScmBpMOyblJ+BVh/6AKL lV/enpUuM8u+3RbvaT5RqJ2b/rG+me0terNlQs3fl+jt+mEAX/jHFc6dCchRlj7pZMmR PGls2XOlhxfMPzp7z/YwIlj24w3WSANoj6yVb15MJcFaDS1LOxAdXem9pKCupW97eucr WoGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=egIa3QQ6TsjZMamnD5kkb8DmvBRG5bfIgwKtPfkgVNk=; b=Wntgt/bIPHgxjgUHU5Gjqb0lIvegnlGVJOr5w8UWZhV2KhWhGxihe/++FfRgiVzb+j hj52QQFp5fHMN/7Rv21+CGMuCYYTFbj8NqSx5Uaqf1Zyitfc3PqkYOd7GEpQpd55eGym MdWZtZq0C7S3irchlINX52CJe1nQ5oEz6tSBgwmei2n6hoXDCsLyf6XA/6zmnP5O/YMB gqYzeakh3ZSxFjVrz89N605rpVXxR/YSGgimh6brYM30tPv5yKP5LUWj1jY4i5tCdvMM mYeYVGcvvpbH2p7A7w8eNbnxtq77NTU6DePLfdQae/agThBPP1Zos9PkPqbBRx297E8J Wxeg== ARC-Authentication-Results: i=1; mx.google.com; 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 y27-v6si6898649pgc.152.2018.08.30.05.55.19; Thu, 30 Aug 2018 05:55:34 -0700 (PDT) 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; 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 S1728936AbeH3Q4J (ORCPT + 99 others); Thu, 30 Aug 2018 12:56:09 -0400 Received: from xavier.telenet-ops.be ([195.130.132.52]:38494 "EHLO xavier.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728834AbeH3Q4J (ORCPT ); Thu, 30 Aug 2018 12:56:09 -0400 Received: from ramsan.of.borg ([84.194.111.163]) by xavier.telenet-ops.be with bizsmtp id VQu51y00Z3XaVaC01Qu5YP; Thu, 30 Aug 2018 14:54:06 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.86_2) (envelope-from ) id 1fvMSb-0007YR-Kr; Thu, 30 Aug 2018 14:54:05 +0200 Received: from geert by rox.of.borg with local (Exim 4.90_1) (envelope-from ) id 1fvMSb-0005Wc-Jh; Thu, 30 Aug 2018 14:54:05 +0200 From: Geert Uytterhoeven To: Greg Kroah-Hartman Cc: Jiri Slaby , Chris Brandt , Wolfram Sang , Ulrich Hecht , linux-serial@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 1/2] Revert "serial: sh-sci: Remove SCIx_RZ_SCIFA_REGTYPE" Date: Thu, 30 Aug 2018 14:54:03 +0200 Message-Id: <20180830125404.21192-2-geert+renesas@glider.be> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180830125404.21192-1-geert+renesas@glider.be> References: <20180830125404.21192-1-geert+renesas@glider.be> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This reverts commit 7acece71a517cad83a0842a94d94c13f271b680c. Signed-off-by: Geert Uytterhoeven --- drivers/tty/serial/sh-sci.c | 31 +++++++++++++++++++++++++++++++ include/linux/serial_sci.h | 1 + 2 files changed, 32 insertions(+) diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index ac4424bf6b136cc4..5d42c9a63001575a 100644 --- a/drivers/tty/serial/sh-sci.c +++ b/drivers/tty/serial/sh-sci.c @@ -291,6 +291,33 @@ static const struct sci_port_params sci_port_params[SCIx_NR_REGTYPES] = { .error_clear = SCIF_ERROR_CLEAR, }, + /* + * The "SCIFA" that is in RZ/T and RZ/A2. + * It looks like a normal SCIF with FIFO data, but with a + * compressed address space. Also, the break out of interrupts + * are different: ERI/BRI, RXI, TXI, TEI, DRI. + */ + [SCIx_RZ_SCIFA_REGTYPE] = { + .regs = { + [SCSMR] = { 0x00, 16 }, + [SCBRR] = { 0x02, 8 }, + [SCSCR] = { 0x04, 16 }, + [SCxTDR] = { 0x06, 8 }, + [SCxSR] = { 0x08, 16 }, + [SCxRDR] = { 0x0A, 8 }, + [SCFCR] = { 0x0C, 16 }, + [SCFDR] = { 0x0E, 16 }, + [SCSPTR] = { 0x10, 16 }, + [SCLSR] = { 0x12, 16 }, + }, + .fifosize = 16, + .overrun_reg = SCLSR, + .overrun_mask = SCLSR_ORER, + .sampling_rate_mask = SCI_SR(32), + .error_mask = SCIF_DEFAULT_ERROR_MASK, + .error_clear = SCIF_ERROR_CLEAR, + }, + /* * Common SH-3 SCIF definitions. */ @@ -3110,6 +3137,10 @@ static const struct of_device_id of_sci_match[] = { .compatible = "renesas,scif-r7s72100", .data = SCI_OF_DATA(PORT_SCIF, SCIx_SH2_SCIF_FIFODATA_REGTYPE), }, + { + .compatible = "renesas,scif-r7s9210", + .data = SCI_OF_DATA(PORT_SCIF, SCIx_RZ_SCIFA_REGTYPE), + }, /* Family-specific types */ { .compatible = "renesas,rcar-gen1-scif", diff --git a/include/linux/serial_sci.h b/include/linux/serial_sci.h index c0e795d95477daea..1c89611e0e0634ae 100644 --- a/include/linux/serial_sci.h +++ b/include/linux/serial_sci.h @@ -36,6 +36,7 @@ enum { SCIx_SH4_SCIF_FIFODATA_REGTYPE, SCIx_SH7705_SCIF_REGTYPE, SCIx_HSCIF_REGTYPE, + SCIx_RZ_SCIFA_REGTYPE, SCIx_NR_REGTYPES, }; -- 2.17.1