From patchwork Fri Dec 14 11:23:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 153815 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1940543ljp; Fri, 14 Dec 2018 03:23:42 -0800 (PST) X-Google-Smtp-Source: AFSGD/U5kZGjOhYjsuEvdjqtNlGbVSuS/VxwMzAnp96NJhqI+ydYQ7NVeJu9XUErK9b9D+S1cJOB X-Received: by 2002:a62:ce0e:: with SMTP id y14mr2568007pfg.100.1544786622703; Fri, 14 Dec 2018 03:23:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544786622; cv=none; d=google.com; s=arc-20160816; b=fW1sHzF/+KOned2srIUGtTGWNRg4SF6ag4R03DROs7MNB39eBXhDhxqUts6H3M4XoH cbP5K+tXhZK1ujtqdi4zCXqaSR0EERqMcGsOY8HK5b+1SxOQv1ctvcfXOdKzmvqJKYWO zPKZkus+6dEIk/jC69h2K8Bdu8y0xvY0PLYKnRVnq6CEnmbuSmRJqs91xjacoQtl6yOy ZxFsqSa/bNUYJhjrJaO8o0ZVptkcQUCqMfOd8BGod8JvCLYaLGPKOJyPLAGhSDYHhpGs hDNGnzyoAPWxC5wqGaRzqiIFIopXiYUI13jwkJQc6rmTRbNYA1hpdfalZhNLBWmlrEQQ vr3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=epbmtGt12QR0wVeShTLHrwP6ABNmZg30gHon8hIB+4o=; b=eXu1jEgsaU3sSZqOUfmt7s0Gs8SjYX0bmGgK9Oz9wmh6Sr51murcqgvnbNcd/ZmbwR o2I3NId58jDgwyuIFT5Ls20OSAdeZMkdMzfSUlZgz5qn7cPzP3MZo4bW5S4e1RPesXEy 6zXW03B5Y2wpp97xoQYIxA6ptZ2a2JbXWgIJ4d7OCtWgcnIXiczj8asP4by6oZeXg33/ M+pOAgHERMdJu6O5rzfDNrin8BRNeJyCZYWdIklClOFx29Zu79MIG7Z4hTJ2E31U1jS/ kCnd0rgf41r2YY81daeIbtRAFXl3yMNr1aWodooE0uD7CYmNKnWI/Wd6urqYcNKCE9MN +/vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=USdGdRHy; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b36si4034486pla.354.2018.12.14.03.23.42; Fri, 14 Dec 2018 03:23:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-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=@samsung.com header.s=mail20170921 header.b=USdGdRHy; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728656AbeLNLXm (ORCPT + 3 others); Fri, 14 Dec 2018 06:23:42 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:48916 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728731AbeLNLXl (ORCPT ); Fri, 14 Dec 2018 06:23:41 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20181214112339euoutp02ba44c112db9f04b016834a6e33a4727c~wLz7-S1hP1467114671euoutp02e; Fri, 14 Dec 2018 11:23:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20181214112339euoutp02ba44c112db9f04b016834a6e33a4727c~wLz7-S1hP1467114671euoutp02e DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1544786619; bh=epbmtGt12QR0wVeShTLHrwP6ABNmZg30gHon8hIB+4o=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=USdGdRHyiPuCEAmg9MOGKF1uCAcL9NRKeV7Ypf49oILIA2/K1MU07eiplyqdbm6n2 G5vDTSshSgD67LnK9+/Aw+GkOHGvActmi82+nG4ypsnSTPd1nYOPQFzl7yU6FwLzkL LSLiSpjSsCd+fcX5zGoluM+08wXe+3liuhu0c/a8= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20181214112339eucas1p14d76596619abf3e7ad70f4bd54247658~wLz7kzLik2323823238eucas1p1Y; Fri, 14 Dec 2018 11:23:39 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 38.F5.04441.AB2931C5; Fri, 14 Dec 2018 11:23:39 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20181214112338eucas1p1dcf77ad7d62abcc6ceb505cbc7dbd200~wLz64xMeY2322223222eucas1p1W; Fri, 14 Dec 2018 11:23:38 +0000 (GMT) X-AuditID: cbfec7f2-5c9ff70000001159-ca-5c1392baa31f Received: from eusync4.samsung.com ( [203.254.199.214]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id BA.87.04284.AB2931C5; Fri, 14 Dec 2018 11:23:38 +0000 (GMT) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PJQ00L9B4Z6IX10@eusync4.samsung.com>; Fri, 14 Dec 2018 11:23:38 +0000 (GMT) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Beomho Seo , Seung-Woo Kim , Sylwester Nawrocki Subject: [PATCH 1/4] mfd: exynos-lpass: Enable UART module support Date: Fri, 14 Dec 2018 12:23:22 +0100 Message-id: <20181214112325.9551-2-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-reply-to: <20181214112325.9551-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprPIsWRmVeSWpSXmKPExsWy7djPc7q7JwnHGExawmKxccZ6VovTn7ax W5w/v4HdYsb5fUwWa4/cZbc4/Kad1WLG5JdsDuwem1Z1snn0bVnF6PF5k1wAcxSXTUpqTmZZ apG+XQJXxvNr/9gLFnFVPNio2cB4m6OLkZNDQsBE4uDl82xdjFwcQgIrGCUe75nCAuF8ZpTo P3mTEaaq+f8/JojEMkaJKbuPM0M4DUwSi372soJUsQkYSnS97WIDsUUEVCU+ty1gByliFuhh kpgxeSdQBweHsICTxMHvKSAmC1DNuTM5IOW8AjYSj9auZoFYJi+xesMBZhCbU8BWYl7rHlaQ MRICX1klbj8+xw5R5CKxd+9NZghbWOLV8S1QcRmJzo6DTBANzYwS7TNmsUM4PYwSW+fsYIOo spY4fPwi2NXMAnwSk7ZNBztOQoBXoqNNCKLEQ6LzxSmolycwSlzY8IZtAqPkAkaGVYziqaXF uempxYZ5qeV6xYm5xaV56XrJ+bmbGIHRdvrf8U87GL9eSjrEKMDBqMTDmzFJKEaINbGsuDL3 EKMEB7OSCG9Yq3CMEG9KYmVValF+fFFpTmrxIUZpDhYlcd5qhgfRQgLpiSWp2ampBalFMFkm Dk6pBsblM+rzXzHlXTh6TP1o/mNx52NGn9Xup62YYjuJZdFu93U+776+rLnvxey4q+vcDd18 xf7p65IZS5kkHRpivR65hu58fGd7+ZRT180Y91g/YnhycPEHz/nHDKw3x2U82+PyTOPF3Eul /M8bzv1mWNqwy/Zhl9Lc/3etj5916X4SeCHZRYrtnNQOJZbijERDLeai4kQAAK8l2bICAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrFJMWRmVeSWpSXmKPExsVy+t/xa7q7JgnHGCx6r2KxccZ6VovTn7ax W5w/v4HdYsb5fUwWa4/cZbc4/Kad1WLG5JdsDuwem1Z1snn0bVnF6PF5k1wAcxSXTUpqTmZZ apG+XQJXxvNr/9gLFnFVPNio2cB4m6OLkZNDQsBEovn/P6YuRi4OIYEljBKbN79hBUkICTQx SVybKgNiswkYSnS97WIDsUUEVCU+ty1gB2lgFuhjkuh4O425i5GDQ1jASeLg9xQQkwWo5tyZ HJByXgEbiUdrV7NA7JKXWL3hADOIzSlgKzGvdQ/UKhuJ3k+XmScw8ixgZFjFKJJaWpybnlts qFecmFtcmpeul5yfu4kRGCLbjv3cvIPx0sbgQ4wCHIxKPLwHpgjFCLEmlhVX5h5ilOBgVhLh DWsVjhHiTUmsrEotyo8vKs1JLT7EKM3BoiTOe96gMkpIID2xJDU7NbUgtQgmy8TBKdXAKKBd cZB/2cluv3W3hRSPuRsm3LufOlHSeb/AGdu2uUlvOnmVtMz5EjcZLTvzODlsilzVw3qBq9Oi 8mdrzeiaeWZ3SvsW9bvlDOf3tEqLGKUc95Z1mWO+tJv3lW+hojf3nuMrs+e/OvU+zOC+5dvQ OyckdT/K9xvmK5xyCZC6PTeL26DXZcN8JZbijERDLeai4kQA7fcapg0CAAA= X-CMS-MailID: 20181214112338eucas1p1dcf77ad7d62abcc6ceb505cbc7dbd200 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181214112338eucas1p1dcf77ad7d62abcc6ceb505cbc7dbd200 References: <20181214112325.9551-1-m.szyprowski@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org From: Beomho Seo This patch enables support for UART module in Exynos Audio SubSystem. There are boards (for example TM2), which use it for communication with bluetooth chip. Signed-off-by: Beomho Seo [mszyprow: rephrased commit message, added UART reset] Signed-off-by: Marek Szyprowski --- drivers/mfd/exynos-lpass.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.17.1 Reviewed-by: Sylwester Nawrocki diff --git a/drivers/mfd/exynos-lpass.c b/drivers/mfd/exynos-lpass.c index ca829f85672f..2713de989f05 100644 --- a/drivers/mfd/exynos-lpass.c +++ b/drivers/mfd/exynos-lpass.c @@ -82,11 +82,13 @@ static void exynos_lpass_enable(struct exynos_lpass *lpass) LPASS_INTR_SFR | LPASS_INTR_DMA | LPASS_INTR_I2S); regmap_write(lpass->top, SFR_LPASS_INTR_CPU_MASK, - LPASS_INTR_SFR | LPASS_INTR_DMA | LPASS_INTR_I2S); + LPASS_INTR_SFR | LPASS_INTR_DMA | LPASS_INTR_I2S | + LPASS_INTR_UART); exynos_lpass_core_sw_reset(lpass, LPASS_I2S_SW_RESET); exynos_lpass_core_sw_reset(lpass, LPASS_DMA_SW_RESET); exynos_lpass_core_sw_reset(lpass, LPASS_MEM_SW_RESET); + exynos_lpass_core_sw_reset(lpass, LPASS_UART_SW_RESET); } static void exynos_lpass_disable(struct exynos_lpass *lpass)