From patchwork Wed Jul 19 08:49:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ashok Reddy Soma X-Patchwork-Id: 1809719 X-Patchwork-Delegate: monstr@monstr.eu Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=2yj2Ve8n; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4R5Tyn3Hlgz1yY9 for ; Wed, 19 Jul 2023 18:49:37 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2ABE886751; Wed, 19 Jul 2023 10:49:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=amd.com header.i=@amd.com header.b="2yj2Ve8n"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5C67686751; Wed, 19 Jul 2023 10:49:31 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=0.9 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on20602.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe59::602]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 68A2E86769 for ; Wed, 19 Jul 2023 10:49:28 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=ashok.reddy.soma@amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XMg26KEsv+elrJ0Qw4BQ7acdfbJbAnSGnfOnGqXxT77FPojZEUSyz0Lrrm1D/r8RXt4PHiz8zOsR/KTm0yLMGGe5n4292kBYeTJRwFqUy0TUYCkSJUSGKMzFTye0m1cu/SW1bwoJ2cPZ5oQ6ss9XYlVzEun7Hl4wt6CeFn0xlU3B69MC8hZoVHcztbcSGxNUprKX2kotLAttphEms9g5vSxYzBu7TtJkBi5sL+dlP6Eu5kk0DEuQx0OVoT/O2xwUK4Q5/ruA30chjVLFVYB/S2kQMHG8cvhL4xIi0xHRCcAbvk71OSF8P881EYYhNBKLRCCS4NGtbVnRFrP4JRY8cA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Xukc37FHGy+9xWvsbKiDTduMsUlMOxSDOjIAPkOceug=; b=QrTSGFLowBt521tHwzVxRSGtPEtfzHbD9f4pr4/5khr2lqMqiX5ICF3lo0GP3+qBGBjhol36F11/NlJGuAN5tFuC5ednNHDtdOT2zMU6fIpeIzlYhixEo7msZHT0fMqZTntO7grt5h4+VTBZG2y/3w3IvYrp/kEeLqt5neip1t3MJ8sANsnk/jH1dThjWLNEfGWeuoDqHGHWmzcfp0k8GR2+v29ciyVqjYKeJEggBa6pK0x+8BY5iJDyUsA+7ae2ViLTuTYYey/HI4cuEsbLZbnTrJgllwir/dSoyn0ATP/puqduwPEknyLRPvuNdGwSB8uvY/EwwP0cBAaViM3I4Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Xukc37FHGy+9xWvsbKiDTduMsUlMOxSDOjIAPkOceug=; b=2yj2Ve8nVXSPKYCQ2TXXFZ82z9yG+ntrmIFVM4psSWX+xbcFxbpHbRxzNCcU56HKo1dYWeWOOXiB1ZvhvJXmqymSNajRZ12iy9tHqBcAJv9PpRHf0G9D26DgwNUkcsBggoKj4KAUw+bnmPzArX+H8qMp0BEk1/yoGknTqbyJCr4= Received: from MW4PR04CA0086.namprd04.prod.outlook.com (2603:10b6:303:6b::31) by SN7PR12MB7883.namprd12.prod.outlook.com (2603:10b6:806:32b::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6588.32; Wed, 19 Jul 2023 08:49:25 +0000 Received: from CO1NAM11FT083.eop-nam11.prod.protection.outlook.com (2603:10b6:303:6b:cafe::2d) by MW4PR04CA0086.outlook.office365.com (2603:10b6:303:6b::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.24 via Frontend Transport; Wed, 19 Jul 2023 08:49:24 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by CO1NAM11FT083.mail.protection.outlook.com (10.13.174.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6588.34 via Frontend Transport; Wed, 19 Jul 2023 08:49:23 +0000 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Wed, 19 Jul 2023 03:49:22 -0500 Received: from xhdashokred41.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23 via Frontend Transport; Wed, 19 Jul 2023 03:49:21 -0500 From: Ashok Reddy Soma To: CC: , , , , Ashok Reddy Soma Subject: [PATCH] clk: zynqmp: Add set_rate support for gem rx and tsu clks Date: Wed, 19 Jul 2023 02:49:12 -0600 Message-ID: <20230719084912.30209-1-ashok.reddy.soma@amd.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT083:EE_|SN7PR12MB7883:EE_ X-MS-Office365-Filtering-Correlation-Id: 0e67795f-f9a7-4c50-42a3-08db88350d54 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: s6gzsmIQWab5TPFPdz+xPCq+hUWvtHCdYYMe6U1F3OnD/EKjkctHElS9v6TSpJprQLKdZ2lo0HHhU5oipSVcVw0spLFXo72bI8cVIkgqPTwL+z25yEVI977UKmMByw01sik9czTzEmt6IsNwhNSWxGDwNrKesNixTDy9x3cgAOFLdijDZ6bEW06Yo/+zrVMqO3GXpwVudjUltduW2uEEZxz0597caH7icTs6XDYhX54kkw3sjvAzny8kLED8Q777UOgkEsRXdSulCxEI32csUNhfujP1AArW2K0M2HDe21KC6SuY1ULmO521zX5GxhqofpcrJLD/K+pkmz9HtS30yoQfv9yw98rOoy2rxFlkBAjHpGj6lwb/jZ6y2R6d2P4YoMOVVv2c+gW1EI+RLhfqlCcisNdpgvcBSm8VHjTEKQjYnWFFVTfWKZzxPrzkgtbXz3adJZpBTptFrSYNJRGBa/g7rdt+XLFyLnbuFDBIAl75H+fj/pCIubPuWbl7GS18LFV6t7R3tnAjY8tqIElreQRH4CgC/OPYxJ/6a8BPDM7ettgYYQj03UjqHvzqqTwZkFydPfk3FrEZs4wwF7Zm+BQFKieBvFYz37z++7f5w03EL6/oE1fEs7r9cdLk3PmzEZwDZW2c2YqE/mzvN2cXIJh4AbUsiupuWw+ullbFzYwk80YWzo0ldK4pROWXjHMty1hcxOcvZW4wsjLaIks1jkvUll6l22W9hHZemtzQx8kg1YUlSALy+SmP/xKo0qhLJQBYMDgIwtRH1bnECmjkaQ== X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB03.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230028)(4636009)(396003)(346002)(136003)(376002)(39860400002)(451199021)(82310400008)(46966006)(36840700001)(40470700004)(40480700001)(82740400003)(83380400001)(1076003)(40460700003)(186003)(336012)(26005)(478600001)(6666004)(103116003)(54906003)(41300700001)(8676002)(4744005)(8936002)(2906002)(70206006)(6916009)(70586007)(36860700001)(316002)(4326008)(5660300002)(36756003)(426003)(2616005)(47076005)(81166007)(86362001)(356005)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2023 08:49:23.9608 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0e67795f-f9a7-4c50-42a3-08db88350d54 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT083.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB7883 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean gem0_rx till gem3_rx and gem_tsu are missing from set rate function. Add them, so that they can be set from pmu firmware via clock framework. Signed-off-by: Ashok Reddy Soma --- drivers/clk/clk_zynqmp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/clk_zynqmp.c b/drivers/clk/clk_zynqmp.c index be0ee50e0e..27479391e1 100644 --- a/drivers/clk/clk_zynqmp.c +++ b/drivers/clk/clk_zynqmp.c @@ -718,6 +718,8 @@ static ulong zynqmp_clk_set_rate(struct clk *clk, ulong rate) switch (id) { case gem0_ref ... gem3_ref: case gem0_tx ... gem3_tx: + case gem0_rx ... gem3_rx: + case gem_tsu: case qspi_ref ... can1_ref: case usb0_bus_ref ... usb3_dual_ref: return zynqmp_clk_set_peripheral_rate(priv, id,