Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4356268imu; Mon, 28 Jan 2019 23:33:16 -0800 (PST) X-Google-Smtp-Source: ALg8bN4W4zkQK0XF0hEoP4/zblRyECMFRi2F4YyyOyYijRaqExG4Oino2/Oigeo+gf+Jnn8qf4g4 X-Received: by 2002:a63:c051:: with SMTP id z17mr22232786pgi.20.1548747195984; Mon, 28 Jan 2019 23:33:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548747195; cv=none; d=google.com; s=arc-20160816; b=xCvg589n72kxV4v/6vSA3PndgZLzQlZNATGcu4FiPYmJNVjZftL0Kick2AqRIyadWx w2eEoE0b1Dp2VWF5M92IWDIwXGkfExj6FEblBWGnqa37R/XIRCbXIF7a6CVIlJ6hQivG 3qfW+LiSLfZ/m0J9gE4kVcNzz3QeXFbQb4dztXKhoya63DwN0UiBrGiykPEq6MoGvRO0 riiFOLytqoEbBJ/4x/OeSjJqyEOD4oqCoQqoYDNc51Q844jhgN/vhOfH970Wm0sKMMmJ Eu6rJGvT7l3eTrcyssumV24xFcuiVWnDz+4b6+Go68JC9A3xYlyTcA+w7Hnk71Vv8VSX gqxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=PtRrj6uwg3zrOJ694VhtdY7r8rh98Cs0cXfYWFXq79o=; b=j7o7L33kqQHjyWm7uWU9bP387gDUnnFW0K9DLVXymFxzenQeT754ziKYSL7aIWh/0K dW8VKlPuoRzDL10p+OyKAsThtbjKxBiCEQwKUg33zZmt7JC4rawYpLTB4XdKDbYKEv4s GVRsy4GhFluTTGUypMrfAkOxKW4004ir9n7Z7M8hVfVXp42VehLjrugRRRIQZiGt5TDQ d4Zyy3HjwdXpUoWvXkr7AEFxu3EPIO4+TMV9ovvRtHcGI4H9OyOz6h9kLx8GXPYXD+rl 2EVdV7z94pkY07dHO7pd9tMMT6fbs18F/iuxw4lHnWdPa0oBWQjn4zg3li8S45wXoHmh RWfg== 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 q10si13430250pll.221.2019.01.28.23.33.00; Mon, 28 Jan 2019 23:33:15 -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; 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 S1727280AbfA2Hce (ORCPT + 99 others); Tue, 29 Jan 2019 02:32:34 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:5051 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726994AbfA2Hc2 (ORCPT ); Tue, 29 Jan 2019 02:32:28 -0500 X-UUID: d0f32703f2c94b9fafbfc01cec1fb371-20190129 X-UUID: d0f32703f2c94b9fafbfc01cec1fb371-20190129 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 246413804; Tue, 29 Jan 2019 15: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 CC: Daniel Kurtz , Sascha Hauer , , , , , , Sascha Hauer , Philipp Zabel , Nicolas Boichat , Bibby Hsieh , YT Shen , Daoyuan Huang , Jiaguang Zhang , Dennis-YC Hsieh , Houlong Wei , , , Frederic Chen 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 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 1.9.1