Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2684934ybp; Sat, 5 Oct 2019 18:02:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJjhd8i8mcpMdOwV86RhUBedbxEvuGBNr8Wvq+h9Gyy04W0NPA2lOvPfyWnrP2lOGicjXa X-Received: by 2002:a17:906:f4a:: with SMTP id h10mr18023276ejj.158.1570323737971; Sat, 05 Oct 2019 18:02:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570323737; cv=none; d=google.com; s=arc-20160816; b=E/uuIJhCx0lrFFz/M6ZsWcoPiVDYAxQUEKCHc0QlsqlMBuPeqOeex8OPgFCdiYbwbn YsQcGPU3KrDB98TrZBbZCKF6t5QV/UxyG5vXTN3iIvrJxNS9d44CUjfEgj4xBpxg1lKR 8iyrF4WylO5U6QMDLy8BfTNqMhBCHMBlq4pDbe1emXvscSo0N/wW9izkkHLUN0BuysPL Ynbmj+m7pz/Xnsg+hg6nhcRCOCwpSev41/1ze+rz8oTQKeDEznBEGmxkCprypfJnSqyD QTskFI+wjqLBes5CA8JrlYEdWWbHYMYrqVl2zYO4bCe88amKc3+qKRvNR0gUWqFCz2Z0 5SRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=5ROoX5I7VFruux3XbC01WJRlepvvfv4FcefHpF0oYqs=; b=I9DRGMB/lwUAZkDQJaiWV+90+MkhqqC7tqL1anTuyBGB7g3SBtR0nT8hga1DSitlAj PQ8e5Wo4LrTL8zhZdaCIt445j2HnsiI6MFoEUjKmeMLgIpKiuHZvEFOEy9Zu27o4Q/N5 Wa0v94FxbVQEcPthuWEoxIwX1MhR8r3WQSq6QiyLvVlc1gNLlomj5LYMKk+jW+uB43g+ oWriCcabsUq42VRY+EjmGeUSUoVaEWiC5ujD9Rsv4JeCUhkjuD6G+pge07Td9ku4e9Tt wJuHBPQWINx6QhYVk3HuL2D2GkZhQ53vPMH/7mD40lcSG1R7yK+Dye6ZEOl90vRvgGlt huyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@onstation.org header.s=default header.b=qdwSrEig; 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 d10si5045412eja.69.2019.10.05.18.01.54; Sat, 05 Oct 2019 18:02:17 -0700 (PDT) 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; dkim=pass (test mode) header.i=@onstation.org header.s=default header.b=qdwSrEig; 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 S1727039AbfJFBBN (ORCPT + 99 others); Sat, 5 Oct 2019 21:01:13 -0400 Received: from onstation.org ([52.200.56.107]:55388 "EHLO onstation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726981AbfJFBBM (ORCPT ); Sat, 5 Oct 2019 21:01:12 -0400 Received: from localhost.localdomain (c-98-239-145-235.hsd1.wv.comcast.net [98.239.145.235]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: masneyb) by onstation.org (Postfix) with ESMTPSA id 7315B3E914; Sun, 6 Oct 2019 01:01:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=onstation.org; s=default; t=1570323671; bh=KxTHzhHN/s8lLwxnhweVAc//HzBq5AJHQfq/SjOa9p0=; h=From:To:Cc:Subject:Date:From; b=qdwSrEigktdWIq2zAqwlkMI7cYO0z/n/qiIU7xCv72tBppNH7AjMFU1SwwXx4iT0j wHvRsZMlarwN9GY3vSHlDjL7devsDNyOkh8gsguBjbNpSrziKK/mJG5befo1uQMDGy zvYyE9rRZMI0fMy/2JMhhfqvp5SgWlK/YmFK9V6E= From: Brian Masney To: sboyd@kernel.org, mturquette@baylibre.com Cc: agross@kernel.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, jonathan@marek.ca Subject: [PATCH] clk: qcom: mmcc8974: add frequency table for gfx3d Date: Sat, 5 Oct 2019 21:01:00 -0400 Message-Id: <20191006010100.32053-1-masneyb@onstation.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jonathan Marek Add frequency table for the gfx3d clock that's needed in order to support the GPU upstream on msm8974-based systems. Signed-off-by: Jonathan Marek Signed-off-by: Brian Masney --- drivers/clk/qcom/mmcc-msm8974.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/clk/qcom/mmcc-msm8974.c b/drivers/clk/qcom/mmcc-msm8974.c index bcb0a397ef91..e70abfe2a792 100644 --- a/drivers/clk/qcom/mmcc-msm8974.c +++ b/drivers/clk/qcom/mmcc-msm8974.c @@ -452,10 +452,17 @@ static struct clk_rcg2 mdp_clk_src = { }, }; +static struct freq_tbl ftbl_gfx3d_clk_src[] = { + F(37500000, P_GPLL0, 16, 0, 0), + F(533000000, P_MMPLL0, 1.5, 0, 0), + { } +}; + static struct clk_rcg2 gfx3d_clk_src = { .cmd_rcgr = 0x4000, .hid_width = 5, .parent_map = mmcc_xo_mmpll0_1_2_gpll0_map, + .freq_tbl = ftbl_gfx3d_clk_src, .clkr.hw.init = &(struct clk_init_data){ .name = "gfx3d_clk_src", .parent_names = mmcc_xo_mmpll0_1_2_gpll0, -- 2.21.0