Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp600928pxf; Wed, 17 Mar 2021 11:21:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/4yF/8/3RnqjWcOedpVVbIzsyFPFdEvtU6kR+u4tk1ljxlQltwbtZ0cK6xjBt+4UzJAes X-Received: by 2002:aa7:c6d2:: with SMTP id b18mr43502016eds.183.1616005279314; Wed, 17 Mar 2021 11:21:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616005279; cv=none; d=google.com; s=arc-20160816; b=JxbcRvYImSw/S00lAqeuSvQCn0hCyR33cjHl65BHrupPshNItQI5CbcHAEooE92Hnm Wwlie3favGFgIlQ4ftykIrpc8FgDWnR+ZQ15Xa20VwSgNVYvHw/TPZph3g/I6od8hL0u G40PCjJM7uY7Mmd/lYVS+qEgsgO4HX745mAt0i4o3+cD2xtS+zgQHViacWoV5VTJ9QRd N2c/b6dvMHaJ122MMML8ywrpf+SZmCihx/FwQJwOnsNgAjr7TllKOOt3VN9YaBMMBeMe rSBQAFnO+SdehHsE+rPISJb5OdfZ4uw5AL/V7rwNBXgOUhcYnLKgv4zqgXS1FeWRyWgW nOGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=UeZVh8E2s3PsYRWaV8TPMIW4kllPRuKHpKPiNyHRgY0=; b=adesb/lZImtLmjBX/6OrT7JWxRqzeEzoyWGEHDdAs2SkE9XzsgMevFYeTTjfxlJeqp X/qMbCsAjz9KgeD2zaRktk2OBLyqLNexvfpIMkCMf/AgvXMLpEfhwDwXS2VXzdaTYlMr lkV5RpPI6+hDrPQQ6WCHgwewHYrMvdnIWuyQnWn6D9p2sy723DtpEeP52aJTeFvCyKlo Uo9/DoRGd78v7M7S51cY58ia1fvvITRAy42fuz116Epw7+mvlD+tJAcQbGCK3LcdwyUP K27anPC3l7YE0KRN+cKl1k6iVmuCUIDJihHrQqQg+PUZR7UELA8wujv4ZawffepFamWA xIqQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e12si17091005ejs.501.2021.03.17.11.20.54; Wed, 17 Mar 2021 11:21:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232607AbhCQSRi (ORCPT + 99 others); Wed, 17 Mar 2021 14:17:38 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:59328 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232836AbhCQSRT (ORCPT ); Wed, 17 Mar 2021 14:17:19 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id A0F991F45484 From: Enric Balletbo i Serra To: linux-kernel@vger.kernel.org Cc: matthias.bgg@gmail.com, drinkcat@chromium.org, hsinyi@chromium.org, weiyi.lu@mediatek.com, Collabora Kernel ML , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v2 0/2] soc: mediatek: Prepare MMSYS for DDP routing using tables Date: Wed, 17 Mar 2021 19:17:08 +0100 Message-Id: <20210317181711.795245-1-enric.balletbo@collabora.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dear all, This is the second version of this series intended to prepare the mtk-mmsys driver to allow different DDP (Data Display Path) routing tables per SoC. Note that the series has been tested only on MT8173 platform, for MT2701 and MT2712 based devices we're using a default routing table that should just work. Thanks, Enric Changes in v2: - Use a default table for mt2701, mt2712 and mt8173. - Remove the mask field from routes struct as is not needed. CK Hu (2): soc: mediatek: mmsys: Create struct mtk_mmsys to store context data soc: mediatek: mmsys: Use an array for setting the routing registers drivers/soc/mediatek/mtk-mmsys.c | 300 +++++-------------------------- drivers/soc/mediatek/mtk-mmsys.h | 215 ++++++++++++++++++++++ 2 files changed, 257 insertions(+), 258 deletions(-) create mode 100644 drivers/soc/mediatek/mtk-mmsys.h -- 2.30.2