Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp99732lqb; Thu, 23 May 2024 11:57:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUn/rZshDx0yB5L1ZcwQ+hbXVqZ+gVmgBVLvaYene36WOxHIrTsNCrfgIWTAEsLrYVh9C9JcJAfIhLA45YiHjuLWlWmGknODFGf9rJq3g== X-Google-Smtp-Source: AGHT+IHHH+rHRXO96XdLa080/MniMZcWeIpjMjJ7XRrR93c87TcWjKOIBI3hrATHzOgOtoJhOT7r X-Received: by 2002:a05:6214:5a02:b0:6ab:8c71:1fb1 with SMTP id 6a1803df08f44-6ab8c712244mr54386016d6.12.1716490631088; Thu, 23 May 2024 11:57:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716490631; cv=pass; d=google.com; s=arc-20160816; b=AeMMLAZlXxATAy8Yt4gjYY2Of8Vi6WUBpmZ53fEEKB6eCCXMochrDInGZgHuLKEzK9 ahM+G5d4Na2uYSWMP5JZd0mIjatu5MqLtn/TMeP8VKj54fLD272rVXiNvugSIXr09tVE Uy/G9+4YtSXx+aJWTwuhP19UjXfGx76Kx0BKIL0/G+B/vdghQdmHo2lTrgq19M1NmZR5 5fh6laMtBniO6L4emIUQNJ1IzUHXQbv7Ijp2nhqlIhUnrPNMSh+XYUgJUpL6h/FRHRlc Ru1DTq54nbXPhBFjJfpF5+EJBkG0Ha0itoExgMh220DslOybfc947TzyYwZPXav4hmLY HC/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=2vGSPeiqToBwb/4U9wuLT4Lc5GeDuH/YmWaUfRoLwoY=; fh=MoEmRiByHaw/BSdlT25RUs7fbp9HYFlVC/dYzyh/HHU=; b=BR2o+K60lsqljjd84xXZ4b6/jFNkMg46NIkMAN5T2jiZhvi1QGsPV/I2xjp4RGRZiG ioG89pjiWB44zf0zxxNzwCXQ9LUKG4b5lakAfqiXMNBLvCo6DorAJxu4B7KyK9b0jqEI R36n9m50T5iFXXQr8uFk0oV6tlHAW5QkJF1z03fL2jlJHUIsU5UBOEDw7kTosHyqFj+h QgsGWzhC4fTsXjxtq3DrOwauqeblIwTyZdna7kJo4s0anKzSKkjCpLBCklcX/Pg60gVw FZ9lWpWu2+AdJ+/ggqFagDw4T6uEiFysPEh1zsBBM3ItJeCX+1yZjfGlkd6b5eJIuCWC W7eg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ZWNwGILx; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-187898-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187898-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6ab6ed70c58si96296256d6.8.2024.05.23.11.57.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 11:57:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187898-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ZWNwGILx; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-187898-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187898-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id CBFCB1C21C92 for ; Thu, 23 May 2024 18:57:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DA6B384052; Thu, 23 May 2024 18:56:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ZWNwGILx" Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 59F2D7E586; Thu, 23 May 2024 18:56:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716490601; cv=none; b=OkCL/qtSem9L3T8iZSRfv0jupMw6kek/NtH4IKt+xklsXaSvXyBkyOIER6vdD6RH+dxsqpGyBWMHPX6kvP3/YaanPpuG9u8MELeuYkCJav8v4IXf564IhgKLmm+DdYFRl7MHSYmIHK0kOTSIHkOPNBqrsgJUuCyxmSxrYohBWOI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716490601; c=relaxed/simple; bh=tI0E7Dp017J/wkhL/fLQZthCDzEc0DhMbGd+Ufabcho=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=AP7Hmp8G7wi43q7z2x9DRCnPZRVBaVkUDyXatcE8OwT3nNRiijBFQ9bP/qlD1Ju7kzoAw+D670jVlBjR4UDJSQ8pwco5aCKMCey5WghwGfpb8A6vjjDS7+pYF7Fc2xkLfnaJsGd8IB8XuXtonZJCNKCOqjRrVl+RIQSgExiXWMU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ZWNwGILx; arc=none smtp.client-ip=209.85.128.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-42011507a54so14103715e9.0; Thu, 23 May 2024 11:56:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716490598; x=1717095398; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=2vGSPeiqToBwb/4U9wuLT4Lc5GeDuH/YmWaUfRoLwoY=; b=ZWNwGILxO+dSqO6hKGGJvyvBQUbJLZ6nE+nfR3P4jHuXty7a90dQY9OZNucX4VPQUH abro9ixPauWkucWqSQ6NNN3tT17e2POLTlXdjYvYtfrSjmvspfjAqTfULFUVHSYQpyum qMIWkpvFweJxiV5iZ8NbdptzIBUKPStmF5zqSW96vCn392OEzehvP81oQ0qMwAVe+7Nx alo60FdWiwVZE7bT+1IW7id9FcwulSHNYkkxPaaHsc+dxoA0PHqGUqP5UAcyVO+G6cVD VDk83dgH1FEWr5dMN0CnJHpRCuvVpKRf4lwYGZ1JOG3EzhOQItaMAMHDVyu1Hkto4821 55OA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716490598; x=1717095398; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2vGSPeiqToBwb/4U9wuLT4Lc5GeDuH/YmWaUfRoLwoY=; b=mVgRk040JtJLvrK4fO6Fgou/jRuvnQCCnfcW+AXO/RwJtf9oF+FG2l2DzA6eU0tFvD zuK6egwcmYlhe9Og3VfhPB31EqP1hQFGL08bxnFVNiBJXBzH8gsWpxcLJFnYvmGzBd3a NfgR3F9ysq4AaqUuUswyBAAieNQXoqJPbqEAV8im8mY2JoQTJvLEshONu+DletnZWp0T lnBpFQ3jFWy7Pwwa/6mMK0N+1v1TNXzJPSuKhFppoSI5damk8HG1t/5yDds2ocAQLCgi xo5EW0jLlvNcu3GOOYgAK7Sdt8wlAAJGRCNAa2NGPKwgl/IoDLB6RStpRvURJiGlBJBd fA9g== X-Forwarded-Encrypted: i=1; AJvYcCWPWbD0AkBbCPsdvTxMcquzKgSOXz/DL0hptd4co1JW9yjsE5/UiSdm/SYnRyP53lAK9H+zPKquXCAp4YCDBQCYLz/n6yR+gxLYIGu+6V8rEveC4C7e/Q7cWRoXKzqMAR2Sdd4jIG7rTA== X-Gm-Message-State: AOJu0YwM7gwvFyWp3rdrodw8fNuHCyJD49uWttFtMHEcNsyOyxnPWc2t dc7bPbeiS8/2cjOHvscucF2m8XPRzwCALnBbo+HFLmg6mzt6JsQ= X-Received: by 2002:a05:600c:3150:b0:41b:f24a:b590 with SMTP id 5b1f17b1804b1-421015a62ffmr28810115e9.3.1716490597736; Thu, 23 May 2024 11:56:37 -0700 (PDT) Received: from U4.lan ([2a02:810b:f40:4600:a453:b45b:e52a:2302]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3550c675581sm3965f8f.13.2024.05.23.11.56.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 11:56:37 -0700 (PDT) From: Alex Bee To: Ezequiel Garcia , Philipp Zabel , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner Cc: linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Alex Bee Subject: [PATCH 2/3] soc: rockchip: grf: Set RK3128's vpu main clock Date: Thu, 23 May 2024 20:56:32 +0200 Message-ID: <20240523185633.71355-3-knaerzche@gmail.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240523185633.71355-1-knaerzche@gmail.com> References: <20240523185633.71355-1-knaerzche@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit RK3128 has a setting in GRF which selects whether the vpu attached iommu uses the AXI clock of the decoder (vdpu) or the encoder (vepu). The default is vepu but some part of the vendor firmware sets it to vdpu. In order to be independent on whether any of those vendor firmware blobs is used to boot the SoC reset "vpu main clock" setting to it's default value. Signed-off-by: Alex Bee --- drivers/soc/rockchip/grf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/soc/rockchip/grf.c b/drivers/soc/rockchip/grf.c index 5fd62046b28a..df64de3d3040 100644 --- a/drivers/soc/rockchip/grf.c +++ b/drivers/soc/rockchip/grf.c @@ -41,9 +41,11 @@ static const struct rockchip_grf_info rk3036_grf __initconst = { }; #define RK3128_GRF_SOC_CON0 0x140 +#define RK3128_GRF_SOC_CON1 0x144 static const struct rockchip_grf_value rk3128_defaults[] __initconst = { { "jtag switching", RK3128_GRF_SOC_CON0, HIWORD_UPDATE(0, 1, 8) }, + { "vpu main clock", RK3128_GRF_SOC_CON1, HIWORD_UPDATE(0, 1, 10) }, }; static const struct rockchip_grf_info rk3128_grf __initconst = { -- 2.45.0