From patchwork Tue Jun 19 19:44:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishanth Menon X-Patchwork-Id: 139250 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp5613785lji; Tue, 19 Jun 2018 12:45:07 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKJ8klWJTCvN4e6OI3IhF9oNobLz24bWPjnrRcvHMPlSXqMOBAuIW9fuK/YEMLGRIY1+hXT X-Received: by 2002:a17:902:650c:: with SMTP id b12-v6mr20425021plk.31.1529437507433; Tue, 19 Jun 2018 12:45:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529437507; cv=none; d=google.com; s=arc-20160816; b=k29FREez8gydq6y67RYbKOr4KDzWgrS/HwJTkCgKaDTD3s/8lxp/zQ62S3oGHQO2N9 OoIGgXPoeomiuPcGJ2lyVgkEHfVwiePJgsGDIFvoIlsu+pGOkQA4Sv7qmmtwkrIgs7/M 531VcUudk+ywTRHE/jJtz6xTfwTXNnisu2dGdNLSY8PnYgpOJC/9ZJvDwlifwoHghYKm g1lT1wRgKcpz5qRSiCate2oE2zlZkhNEdFxRmJ5BbXmM14ehhCA2zutXk7h+uRnHySsr lBhwmSx19PMAjizs6b5qnXT5E6j7wMiFQlPvuHCtQGLE/VQ/vsPCt5xiOAP/EzBvC59e kbjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=m8IdMhS6rbzYAI22SHT9fE63vEWnVwzmJPYy8qeKG1U=; b=P3fQxzx1Dw4KtoaldaTSDOg+PV4HsnerXpoDFuVTd9QzX6cXLGA5mgTmjiSQHu3Tpk 9hsiKptJv+e3DXYsz+g0ijNiHAG5zocfzgcOtDp+0rcB22oq06VpzmszVsfTmkzDOv8W IRvtLR295GKuh4hbjnhcBCn+WTWv58cJ4S2nWPaW0mvcXf+xGouG6+Aww4TxpAt8VK8+ EGexsoHeXJNuq6lCm6Xf6z7dASnxzWYTN2tJtaubZJW1zLB3/x8ohy0NMQvNgbLngVt+ HiQ/2RbBkBogxQz8g1tds3nh7Hcg+5Urzmw0zOihyIcrMxvIk0j14Ml/qXs0fkAmC7Wo oFgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=lFKieYgd; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g10-v6si370510pgv.315.2018.06.19.12.45.07; Tue, 19 Jun 2018 12:45:07 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=lFKieYgd; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030717AbeFSTpE (ORCPT + 30 others); Tue, 19 Jun 2018 15:45:04 -0400 Received: from lelnx194.ext.ti.com ([198.47.27.80]:43186 "EHLO lelnx194.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966747AbeFSTo7 (ORCPT ); Tue, 19 Jun 2018 15:44:59 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id w5JJipJo014312; Tue, 19 Jun 2018 14:44:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1529437491; bh=m8IdMhS6rbzYAI22SHT9fE63vEWnVwzmJPYy8qeKG1U=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=lFKieYgdDZ84LJlEHjl1ZOL/AJnX3mhzICGxWYWVy2i51Ol/k8E73IZ8PxKrq4a9G yVTOmkAM2t/dJz7VBUgx1bTp8LZJgbth+csTBOIz9uCvVglzgt0QEFMfChycaQ+RVL rMEml7xkpIj80Jz2PvpSPfNqip14vt10z/qh8Y/Q= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w5JJioVu010688; Tue, 19 Jun 2018 14:44:50 -0500 Received: from DLEE108.ent.ti.com (157.170.170.38) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Tue, 19 Jun 2018 14:44:50 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Tue, 19 Jun 2018 14:44:50 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w5JJiokw018210; Tue, 19 Jun 2018 14:44:50 -0500 From: Nishanth Menon To: Mark Rutland , Rob Herring , Greg Kroah-Hartman CC: , , , Nishanth Menon , Tony Lindgren , Tero Kristo , Vignesh R , Jiri Slaby , Sekhar Nori Subject: [PATCH 2/2] serial: 8250_omap: Add support for AM654 UART controller Date: Tue, 19 Jun 2018 14:44:50 -0500 Message-ID: <20180619194450.6353-3-nm@ti.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180619194450.6353-1-nm@ti.com> References: <20180619194450.6353-1-nm@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org AM654 uses a UART controller that is compatible (partially) with existing 8250 UART, however, has a few differences with respect to DMA support and control paths. Introduce a base definition that allows us to build up the differences in follow on patches. Cc: Sekhar Nori Cc: Vignesh R Signed-off-by: Nishanth Menon --- Changes since RFC: Driver change has been split out with corresponding description. RFC: https://patchwork.kernel.org/patch/10447641/ drivers/tty/serial/8250/8250_omap.c | 1 + 1 file changed, 1 insertion(+) -- 2.15.1 diff --git a/drivers/tty/serial/8250/8250_omap.c b/drivers/tty/serial/8250/8250_omap.c index 1b337fee07ed..a019286f8bb6 100644 --- a/drivers/tty/serial/8250/8250_omap.c +++ b/drivers/tty/serial/8250/8250_omap.c @@ -1115,6 +1115,7 @@ static const u8 am3352_habit = OMAP_DMA_TX_KICK | UART_ERRATA_CLOCK_DISABLE; static const u8 dra742_habit = UART_ERRATA_CLOCK_DISABLE; static const struct of_device_id omap8250_dt_ids[] = { + { .compatible = "ti,am654-uart" }, { .compatible = "ti,omap2-uart" }, { .compatible = "ti,omap3-uart" }, { .compatible = "ti,omap4-uart", .data = &omap4_habit, },