From patchwork Tue Jan 29 07:31:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bibby Hsieh X-Patchwork-Id: 10785581 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EA876922 for ; Tue, 29 Jan 2019 07:32:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D52A02B4E0 for ; Tue, 29 Jan 2019 07:32:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C88392B51A; Tue, 29 Jan 2019 07:32:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 63AA12B4E0 for ; Tue, 29 Jan 2019 07:32:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=kqOllXj1ZnGxNedGYfz0mwdQh4UVhgXfSY128j+7d9g=; b=bExJdLZWYo7TPh BFG0u6kvlxbtG9ACLcRDRGp/GsmcxT3XJKJnpbFUT6S220rWS18wmbZggHGNC0Oje2sXU10kT5QEH Us5IFnMbXudBV38r4ZMmCSSImXrotrE6o0K9AJ3g0E2mOVCMv2a84ntZF00yBY37tXGw4gEJXgjbO 1EoPnOGBk4qDUB3vqB4O7E7K9CkG4eIFNCsXz5lgENZ1d46b4KS5TlxMKm7S/Q1ro5kC/XXLNjHu2 I+kKaRTtN5/17r+wjLaLDW0JtWBWFP8sU1bsD8IMbXaWxUbFkHnCpPtZoYSd/MOZciE3YtYHIToPK oMoFr+K1ftTdxkJdbGHQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1goNsa-0004KT-Qm; Tue, 29 Jan 2019 07:32:20 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1goNsY-00048g-2Q; Tue, 29 Jan 2019 07:32:19 +0000 X-UUID: f2a4d2dc6799497a8094634761084ce1-20190128 X-UUID: f2a4d2dc6799497a8094634761084ce1-20190128 Received: from mtkcas67.mediatek.inc [(172.29.193.45)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLS) with ESMTP id 1776458031; Mon, 28 Jan 2019 23:32:14 -0800 Received: from mtkmbs08n1.mediatek.inc (172.21.101.55) by MTKMBS62N2.mediatek.inc (172.29.193.42) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 28 Jan 2019 23:32:12 -0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 29 Jan 2019 15:32:10 +0800 Received: from mtkslt302.mediatek.inc (10.21.14.115) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 29 Jan 2019 15:32:10 +0800 From: Bibby Hsieh To: Jassi Brar , Matthias Brugger , Rob Herring , CK HU Subject: [PATCH 00/10] support gce on mt8183 platform Date: Tue, 29 Jan 2019 15:31:57 +0800 Message-ID: <1548747128-60136-1-git-send-email-bibby.hsieh@mediatek.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190128_233218_119860_F045990A X-CRM114-Status: UNSURE ( 8.48 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Nicolas Boichat , Philipp Zabel , srv_heupstream@mediatek.com, Daoyuan Huang , Sascha Hauer , linux-kernel@vger.kernel.org, Dennis-YC Hsieh , kendrick.hsu@mediatek.com, linux-mediatek@lists.infradead.org, Houlong Wei , Sascha Hauer , Frederic Chen , Jiaguang Zhang , Bibby Hsieh , linux-arm-kernel@lists.infradead.org, ginny.chen@mediatek.com Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP MTK will support gce function on mt8183 platform. soc: mediatek: add mt8183 compatible name dt-binding: gce: add gce header file for mt8183 Besides above patches, we refine gce driver on those patches. soc: mediatek: move the CMDQ_IRQ_MASK into cmdq driver data soc: mediatek: clear the event in cmdq initial flow In ordet to enhance the convenience of gce usage, we add new helper functions and refine the method of instruction combining. soc: mediatek: add subsys-base address transform function soc: mediatek: add register device function soc: mediatek: add cmdq_dev_get_event function soc: mediatek: add packet encoder function soc: mediatek: change the argument of write and write_mask API soc: mediatek: add polling function Bibby Hsieh (10): soc: mediatek: add mt8183 compatible name dt-binding: gce: add gce header file for mt8183 soc: mediatek: move the CMDQ_IRQ_MASK into cmdq driver data soc: mediatek: clear the event in cmdq initial flow soc: mediatek: add subsys-base address transform function soc: mediatek: add register device function soc: mediatek: add cmdq_dev_get_event function soc: mediatek: add packet encoder function soc: mediatek: change the argument of write and write_mask API soc: mediatek: add polling function .../devicetree/bindings/mailbox/mtk-gce.txt | 6 +- drivers/mailbox/mtk-cmdq-mailbox.c | 18 +- drivers/soc/mediatek/mtk-cmdq-helper.c | 212 +++++++++++++++++---- include/dt-bindings/gce/mt8183-gce.h | 177 +++++++++++++++++ include/linux/mailbox/mtk-cmdq-mailbox.h | 5 + include/linux/soc/mediatek/mtk-cmdq.h | 52 +++-- 6 files changed, 412 insertions(+), 58 deletions(-) create mode 100644 include/dt-bindings/gce/mt8183-gce.h