Message ID | 1657893679-20039-2-git-send-email-ashok.reddy.soma@xilinx.com |
---|---|
State | Accepted |
Commit | 1acb70393f2719c70d92f52d91be2525fa1db679 |
Delegated to: | Michal Simek |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=xilinx.onmicrosoft.com header.i=@xilinx.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-xilinx-onmicrosoft-com header.b=GsdlkvQ9; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LktMb2q9lz9s2R for <incoming@patchwork.ozlabs.org>; Sat, 16 Jul 2022 00:02:03 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 365F4811CA; Fri, 15 Jul 2022 16:02:00 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xilinx.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=xilinx.onmicrosoft.com header.i=@xilinx.onmicrosoft.com header.b="GsdlkvQ9"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A35B581872; Fri, 15 Jul 2022 16:01:57 +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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2063.outbound.protection.outlook.com [40.107.93.63]) (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 E8B5080C75 for <u-boot@lists.denx.de>; Fri, 15 Jul 2022 16:01:54 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ashokred@xilinx.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fIBxlo7+tK63sCeGTbL03YPodAG3vR+WLsOkaeABWbNNpFOWWNrcnRvzlRfZlzuFzAXrqNVjSnmU5Y7NL6PIiq0Ca9wjS/J411YvZJCokFMATPHInImxqpN1O23Xw0Z0lAJHY3xzxbjLo5nMLHShvcqqqo63I14OU/+XRN+W7fHbJjuBcGOSST1rzA0lvQLu7Bm3iL/oZPvdiOjRDFKq8UC+FudqufAKUlDiJLDiUj8hVDoJvKZPKv1xcS4A2GXFuXK+IiD2KJ0mDT7AbP8HsMpbmP0Za91z9s+vLa93moGRhyoychHE2Q+rXGG4uy4gULt9PYz1Zk2vLpuyjhxojg== 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=DugttEjs4/KdDT54HYKHtomnj/CWGNFaEfA1ooJe4Dg=; b=WAGQlh5D5zJ0/SA7sVGe/wOz3JtkeW0GfafJvvTT+vqF/clM1/3Xv+XCs3obGPdaoUuP+GDaC0mIkFdLltwNg15XxfzD6OFuTaDoweVIAmKuRDRwaAo9HJfdrNJs2+MA/1MhSH5WTBA/CVWoAk0JdtIShkHmyDr+SafKbjM68ga+0DP/kEO+c0v1mLQUkXA+qTu/2WYKZMcu2Ed8cqBgO+w3UMPKDND2R2qhkn49RsiqYEwJ/1We3hbewQxq4uko7H7Y5Thsislu0KWKC5PpN8ey02gttqIs0yo07WjjbBadzoQD5SelmyJA4C5oP+Zei86eABKypgn8OQhl6pcxlw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=amarulasolutions.com smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DugttEjs4/KdDT54HYKHtomnj/CWGNFaEfA1ooJe4Dg=; b=GsdlkvQ9M8r47hpLNqYKQH/KV8R2ZSaLSgLRh0cEXwg2XQVDeHEEzZbOjHbVTqMnni1pGkhz8grHgT+P2ioWSanMkjrnLJGio42w6JezOZF+yLPPK8QQMU0f0tBFfFB5iSlACz865tf+3eDs6Jq5djdeEkS6ZNJZKy1jD2yyoEM= Received: from SN7P220CA0009.NAMP220.PROD.OUTLOOK.COM (2603:10b6:806:123::14) by MW4PR02MB7171.namprd02.prod.outlook.com (2603:10b6:303:7d::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.12; Fri, 15 Jul 2022 14:01:50 +0000 Received: from SN1NAM02FT0034.eop-nam02.prod.protection.outlook.com (2603:10b6:806:123:cafe::2d) by SN7P220CA0009.outlook.office365.com (2603:10b6:806:123::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.20 via Frontend Transport; Fri, 15 Jul 2022 14:01:50 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch02.xlnx.xilinx.com; pr=C Received: from xsj-pvapexch02.xlnx.xilinx.com (149.199.62.198) by SN1NAM02FT0034.mail.protection.outlook.com (10.97.5.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5438.12 via Frontend Transport; Fri, 15 Jul 2022 14:01:49 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Fri, 15 Jul 2022 07:01:36 -0700 Received: from smtp.xilinx.com (172.19.127.96) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Fri, 15 Jul 2022 07:01:36 -0700 Envelope-to: git@xilinx.com, jagan@amarulasolutions.com, git@amd.com, michal.simek@amd.com, u-boot@lists.denx.de Received: from [172.23.64.5] (port=34842 helo=xhdvnc105.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from <ashok.reddy.soma@xilinx.com>) id 1oCLst-0001f4-Pr; Fri, 15 Jul 2022 07:01:36 -0700 Received: by xhdvnc105.xilinx.com (Postfix, from userid 2896) id E8A2E6046A; Fri, 15 Jul 2022 19:31:21 +0530 (IST) From: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com> To: <u-boot@lists.denx.de> CC: <jagan@amarulasolutions.com>, <michal.simek@amd.com>, <git@xilinx.com>, <git@amd.com>, Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>, Ashok Reddy Soma <ashok.reddy.soma@xilinx.com> Subject: [PATCH 1/4] spi: zynq_qspi: Add child pre probe function Date: Fri, 15 Jul 2022 19:31:16 +0530 Message-ID: <1657893679-20039-2-git-send-email-ashok.reddy.soma@xilinx.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1657893679-20039-1-git-send-email-ashok.reddy.soma@xilinx.com> References: <1657893679-20039-1-git-send-email-ashok.reddy.soma@xilinx.com> MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 32cc1576-d715-48c8-d3d6-08da666a904c X-MS-TrafficTypeDiagnostic: MW4PR02MB7171:EE_ X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: T6VVgMtFVP2DkNZKuodKux6xWzVXeO+So6lKxBW06gQqELGW5S9zPGAiKB8f9xYOI5Zc1WsGfvI5Zk0SswDKsyvQqEuF736uf/KXtygRBPg+xLgFYsSsvCdhYOmX6qoKifuqRN1zjNiViCPg/KqqydQnn39/exrAzkUMeALHhcG9eDkrrzVHp4h6qPGdE50gzbTeO0mIJArgddQ1jtaKhoxzyUUIxHYIpiLIwuHIjPbXHVvLbsV8/HKDuC4cOwb76lXu/WIyBKD3a3e/y2uDuT7k8CS9+pMxRuc4omS8iPz8HUcI0IudJjDq17U7U5FwrGyd3WpcHDKb0ohS0J/i5BLRkabadjuGZOhKAGpNUY87Y+hEZpsATSw1kHYSoLe+euPp6zIp+AOQmKMejV1wr9iaieSreTirifq23v5UP16Eqp5cHCconWrDsqarb4wKCeu9lTTp6d50VBJKiz+upHs5zt931LhtGYm+U2yNk2PN3Ct93DGB3lsbkeJsnnEs1t8aZI76dqU1tWLhnByrff3hDxmznsXYGWogiXfPHozP2fk5VzHQpbWzXlWRL85FrwHAuRn7BI5QFOOo+DBS23HQPb1IG362FTo3zmsS+gHyTpBTy3gzNt+6BettJDfsgyOz23+N41sruxvMEloqDp21TImclPXXGFNefcizqUul8cf/B8hJviTq710v7yePHKebUs6GQul/iZmcrjnCulmd3jDwm5SgB8PijbE+u7vrHx/ZJtf3Y7CjL3vh8J2qhrFNKV762mJ4xSF8fYEOlMzIskv6fGDNSiMXkMzun0s9HY4oUTg+6qAPFI3muXo+nmNFpF/zakRtYbnaHN1YYGcNmjXZGeQcU7kKIg1Mswk= X-Forefront-Antispam-Report: CIP:149.199.62.198; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapexch02.xlnx.xilinx.com; PTR:unknown-62-198.xilinx.com; CAT:NONE; SFS:(13230016)(4636009)(396003)(136003)(346002)(376002)(39860400002)(40470700004)(36840700001)(46966006)(107886003)(186003)(40460700003)(82310400005)(47076005)(426003)(83380400001)(336012)(7636003)(40480700001)(82740400003)(356005)(36860700001)(2616005)(41300700001)(70586007)(6666004)(70206006)(26005)(6266002)(478600001)(6916009)(54906003)(42186006)(316002)(2906002)(4326008)(8676002)(8936002)(5660300002)(36756003)(102446001); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jul 2022 14:01:49.8617 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 32cc1576-d715-48c8-d3d6-08da666a904c X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.62.198]; Helo=[xsj-pvapexch02.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: SN1NAM02FT0034.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR02MB7171 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean |
Series |
Xilinx zynq_qspi updates
|
expand
|
diff --git a/drivers/spi/zynq_qspi.c b/drivers/spi/zynq_qspi.c index b69d992b28..066a0c6002 100644 --- a/drivers/spi/zynq_qspi.c +++ b/drivers/spi/zynq_qspi.c @@ -94,6 +94,7 @@ struct zynq_qspi_priv { u8 mode; u8 fifo_depth; u32 freq; /* required frequency */ + u32 max_hz; const void *tx_buf; void *rx_buf; unsigned len; @@ -174,6 +175,16 @@ static void zynq_qspi_init_hw(struct zynq_qspi_priv *priv) writel(ZYNQ_QSPI_ENR_SPI_EN_MASK, ®s->enr); } +static int zynq_qspi_child_pre_probe(struct udevice *bus) +{ + struct spi_slave *slave = dev_get_parent_priv(bus); + struct zynq_qspi_priv *priv = dev_get_priv(bus->parent); + + priv->max_hz = slave->max_hz; + + return 0; +} + static int zynq_qspi_probe(struct udevice *bus) { struct zynq_qspi_plat *plat = dev_get_plat(bus); @@ -746,4 +757,5 @@ U_BOOT_DRIVER(zynq_qspi) = { .plat_auto = sizeof(struct zynq_qspi_plat), .priv_auto = sizeof(struct zynq_qspi_priv), .probe = zynq_qspi_probe, + .child_pre_probe = zynq_qspi_child_pre_probe, };