From patchwork Thu Nov 17 12:25:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 13046703 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 870A8C433FE for ; Thu, 17 Nov 2022 12:26:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240035AbiKQM0c (ORCPT ); Thu, 17 Nov 2022 07:26:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240119AbiKQM0U (ORCPT ); Thu, 17 Nov 2022 07:26:20 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AE1A71F10; Thu, 17 Nov 2022 04:26:19 -0800 (PST) Received: from desky.lan (91-154-32-225.elisa-laajakaista.fi [91.154.32.225]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 8A02D1056; Thu, 17 Nov 2022 13:26:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1668687975; bh=J7rA5IBGFcu2N7Sh3o6C5ykD706eiPf84CkDTha4nHQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wNY4TSTe80fO5UHNwpmW5p9FeBFOvLGMBpmDKusupfPJBwNft9UY64m20BgSVrMhp OFpQHTJgqxy3ENwgGgvC/Rw2CvUzTEf5+8wf4/qfQsclzSah94HdsJ2eok+E/AHgzi VPSK4RmEw/d0VqMmQIrPhgfWRYFNewVCjC+WBfGg= From: Tomi Valkeinen To: Laurent Pinchart , Kieran Bingham , Rob Herring , Krzysztof Kozlowski , Geert Uytterhoeven , Magnus Damm , dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andrzej Hajda , Neil Armstrong , Robert Foss , Jonas Karlman , Jernej Skrabec , Tomi Valkeinen Subject: [PATCH v1 8/8] HACK: drm: rcar-du: dsi: use-extal-clk hack Date: Thu, 17 Nov 2022 14:25:47 +0200 Message-Id: <20221117122547.809644-9-tomi.valkeinen@ideasonboard.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221117122547.809644-1-tomi.valkeinen@ideasonboard.com> References: <20221117122547.809644-1-tomi.valkeinen@ideasonboard.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org From: Tomi Valkeinen Renesas BSP kernel does this for Whitehawk board. It is not clear what it does, as the bits are marked reserved in the SoC documentation. Do not merge. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/rcar-du/rcar_mipi_dsi.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/rcar-du/rcar_mipi_dsi.c b/drivers/gpu/drm/rcar-du/rcar_mipi_dsi.c index 723c35726c38..c264cb689664 100644 --- a/drivers/gpu/drm/rcar-du/rcar_mipi_dsi.c +++ b/drivers/gpu/drm/rcar-du/rcar_mipi_dsi.c @@ -598,6 +598,10 @@ static int rcar_mipi_dsi_startup(struct rcar_mipi_dsi *dsi, return -ENODEV; } + /* XXX HACK for Whitehawk board. "use_extal_clk" from BSP Kernel. */ + if (dsi->info->model == RCAR_DSI_R8A779G0) + rcar_mipi_dsi_set(dsi, CLOCKSET1, 0x0100000C); + /* PLL Clock Setting */ rcar_mipi_dsi_clr(dsi, CLOCKSET1, CLOCKSET1_SHADOW_CLEAR); rcar_mipi_dsi_set(dsi, CLOCKSET1, CLOCKSET1_SHADOW_CLEAR);