From patchwork Tue Jun 4 08:38:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neal Frager X-Patchwork-Id: 801374 Delivered-To: patch@linaro.org Received: by 2002:a5d:65c4:0:b0:35b:5a80:51b4 with SMTP id e4csp2288370wrw; Tue, 4 Jun 2024 01:39:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUE04tI77SxD9/Sc4Sr4e2TxsERakaEIw0bxrsSROTRy4XJdV4AIGPb16LisqSzHaopZYIanndP1SglXQcmidoi X-Google-Smtp-Source: AGHT+IGEHwA/B4xDNg+msBxEYQDK6inMEADuUj3uE+G8NFLN0D2YDngw0oUze8TP5itppPCxADRJ X-Received: by 2002:a17:907:97c6:b0:a69:2553:5806 with SMTP id a640c23a62f3a-a6925535850mr287965066b.52.1717490350601; Tue, 04 Jun 2024 01:39:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717490350; cv=pass; d=google.com; s=arc-20160816; b=o3vBrXr5l+7VBnDqRJdM3y5iTYDB4fym7yf/ptE0rEpjTbyFLAytodQgLlYpf6QRfr qnHSd003mToK5Ae1kIWoWwcRCJUbvgIHdDmv3quBHAljkCKaHgndv8CydIF7i945nnaJ rCxOPEJOeTSzGROn8RITf4SVh641dWZ/Vl+bm2fveEn5YCYobnrpGG+EHzBAYnsW3Fkd 8Q3PG46zdKqiFMUUJ8PkGqQZLL9L2KMFRwxmbl2ZaONWDJWglhGILgLlfKQQAqoVxuno dcjMqVOMjD3A/P9KQhBUxO2cqayyq6NYQr7/EuQsxMKCh52fyxIZe+IfB31Hc+G3DyDn 1Fkg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=qtYbwv1tCnl/S0TX6IGCnmPwwynzWWzNAOwdyU9xXSM=; fh=ZccLLg+gcOUjTPm6aSD30VQ3qSy57ZW6jP7848c02EU=; b=T+kgrLj+kVgTILhs1IkfAmr5NueIVWlZYafhvMlzEyKo63Mr4miEboXafznM7Mw9st cnQQTu3plAmg9y9cojKJkop6wyYEiDrUoWZ1Ah4YtGaGfqET0p5aKcdyG6U2MvUyvhAb ogLDfKawliffnLYYJAANbam89KZurAxZXXo5Yk2Jlr0HBV7cW01ssiFP3++KmIsPlMSy 5pNeuSZGNrbxhgjm76VmvLll5u7zBCetOY5MArFUDPGJdi9dpYwGJPv4d47UzsRLC56N KnnQ6E0o3WqFCghsgxkuFikI4SDuNXDIczfHXZEQgwG+d2A0A6viMcLE2p2nlv2oESIA 8dSQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=O0AFMi+2; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id a640c23a62f3a-a68c20a71f9si322861766b.191.2024.06.04.01.39.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 01:39:10 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=O0AFMi+2; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4B40C88458; Tue, 4 Jun 2024 10:39:09 +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="O0AFMi+2"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5817F88464; Tue, 4 Jun 2024 10:39:08 +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=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2060c.outbound.protection.outlook.com [IPv6:2a01:111:f403:2414::60c]) (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 B580B883DB for ; Tue, 4 Jun 2024 10:39:05 +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=neal.frager@amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kE32xBJqee0K3B/HUnmmQ2Nekyuhjc5TTuNehKY4duV8Ib8Jd3RALOrObSTSH85Jq2Us7Y3+/yRgsjRR59VB9detErILMDFQx7lH2oqanrTi32DYJGCkXK5KPA5yc/oHk6EjqWNPCHGWmD61niC6jnVGQjg39YzzPzuAMRgixrW4wySYpdWnV0doLa3qan1st7A3Wmn/Q6zISqji8+veO55wrDHR01MrSGzJTGl3z68cFJouL5PkoHE56Rcx/NrXsMa3Ch054rM+Uqrg9Hxjw5Clr7IGA2vw/gowaRyslpBRwGLkPAQsmEqm1D4jGJPLYlgsIT4XKQ4cisXvxJEenw== 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=qtYbwv1tCnl/S0TX6IGCnmPwwynzWWzNAOwdyU9xXSM=; b=X64CKuJNaaeNOyP832I+CkL8xD1G99ab98BdfYulgapy1CIplCRbNzlchZhohsP+IFpBh7nNc/PS6YmUPeD/3qBP9si0giIrkCws2xd9bSKz1pMP/xOmP8lV5Mg/rdLRoCri20OjagXoYglY5P4HcxwGBoI62HGmLKlOJ0YZvJBvRp8DSB/1qOT8HaiVEBWM5mCs5BcwGoieBuWpHxfOECuIKIqrut9Pf/gH49VGLzkmE2l+90zlrUBIO0g9/SUGysxRnYy8npRknsB6yl052xawPbUu/kVMDgh4Bb+Q9JGGxgq78sj49OGpUeWB46HSrhEue36SRLcTMGsyK5zHUw== 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 (0) 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=qtYbwv1tCnl/S0TX6IGCnmPwwynzWWzNAOwdyU9xXSM=; b=O0AFMi+29ouYlP3Tst0UD/c819LMlwNJY1PnR6L5VXiH9v2V9FieOmwV5cax3aEITHhsrLjgdqlglkegrpO52Cwywo+7MB/LU48XBfSOmPoRxbDNqhOxgHwwgFayqBQeFYlpEUeM2Yc2uvpeKLcxFZv74+hjOZcXoeTCJGnrSgw= Received: from BYAPR21CA0016.namprd21.prod.outlook.com (2603:10b6:a03:114::26) by IA1PR12MB6580.namprd12.prod.outlook.com (2603:10b6:208:3a0::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.22; Tue, 4 Jun 2024 08:39:00 +0000 Received: from SJ1PEPF00001CDD.namprd05.prod.outlook.com (2603:10b6:a03:114:cafe::4) by BYAPR21CA0016.outlook.office365.com (2603:10b6:a03:114::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.6 via Frontend Transport; Tue, 4 Jun 2024 08:39:00 +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=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by SJ1PEPF00001CDD.mail.protection.outlook.com (10.167.242.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7633.15 via Frontend Transport; Tue, 4 Jun 2024 08:38:59 +0000 Received: from SATLEXMB03.amd.com (10.181.40.144) 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.35; Tue, 4 Jun 2024 03:38:58 -0500 Received: from xirengwts09.xilinx.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Tue, 4 Jun 2024 03:38:57 -0500 From: Neal Frager To: CC: , , Neal Frager Subject: [PATCH v3 1/1] arm64: zynqmp: Enable usb3 for k24 som Date: Tue, 4 Jun 2024 09:38:54 +0100 Message-ID: <20240604083854.2033917-1-neal.frager@amd.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Received-SPF: None (SATLEXMB04.amd.com: neal.frager@amd.com does not designate permitted sender hosts) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ1PEPF00001CDD:EE_|IA1PR12MB6580:EE_ X-MS-Office365-Filtering-Correlation-Id: 1c6efa2c-306a-4cd3-4819-08dc8471c7f8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230031|36860700004|376005|82310400017|1800799015; X-Microsoft-Antispam-Message-Info: U5WR4MxbtKzGiM6WfWvPkM1kCDRkrLjlBH2fGMy5sNUSg9AlZWpZJlUUnvJQY1z+3JBjZcTr19bu+4W7YeI/K2M8+MC3StIkStUpPPtvd7IVzLisAjBnrKNYcbE+ZDU4qMA39BRbPwM5dFPH1fSQAtH4Q9A1g9dcV2KDmbPSFKiaoQrcr9JUBgACGGiNeGuoF+7omxFN83KOuYnIbpA0PuT+ZcYSWRH1+6d+AdJe7ci4r/8VaIzoGoLlb2nDWmQFAOGCtpONKESZNv/tsiWaJsGbKzc3Q0PPLxyB1iZ4TYwKBOSBMGjdvY4FUgIEUigNwmMORdsyojIFm5LWyqXExJybgmqRtTvWJ+fHPKcmpHpvikt+shYw6WyBT1F87tujCrlw2fP2U4yjKZhdxELVaGD/kI+nxN6U0Kb1sSbqxJfSf09l84fpWfUrkzPf123K0jk4S5XrZvBgPGgHQorFrsjvcVkK5kWmpeTSP434O+MfErMS47MvTeZUz6fCI6HnYZUPjNIwKoGwh6orpj2OApGQ5gdGspo0pqfW1RyVEubXtJRak0+Nl//3ZAiIcxnWyjTGocV2vWkBnsyiZBRUFCjU5Qkxsbgb45YoytgSXB/tOCDMSzi6HINrG5qFUqwyzBMycwxnSG7OiCC4xlzsRdBvLzSDf3hQf7Qwr/IMNWfmpbOeqZNZmpp0hrcDZvDPLwi1zhFXVeEHYOQctVt/EhBeJnwiVsS1Et/TcpkLA6Kl5wLYy4/Sh9MrlF0AP8ucJQT7QUvOwfuP4AaPEtPFMJWkQOGqZPAFBC8vQNzqVCO4TN9M3C+GUT6nZYJIzlfiTsiWtHIYGGhVM6zW0X2BOkksGZanQTNA7AVUvBZcav3hX4iONx0c1JyW8Ls/zSWum12Mrkd2zYjZRwMV5eowHlkRTfQ8jPTF/rO74kceG4/IF5AxpAk431f7PhH0GTl/HcDNiwnnyEBvWk9UVS/bOVNYrdIybsnXyXgYObKdihWvfGn2VQ29ShB4pPSVh2+DboxVw5/VBB7JEoIyLKATLaTQ06g/Mx9ZqWz8mAdJ0CP+j6BmMig8BPmlBdYy3161zbTqA6EmbhIgschoZVEbNSuYTB6I7KnRsYQ9hRr27x9JnnG5DoZot93aJps6nQHTiqjbHcpcPECwDvayVyoJJB1V9DXiqlAPrT+wGPQt2srPYNNol+6xH5zmjsv07ZdrJtHEvfPoQCUdeHpAichIKix0EJtp+AHWLgELTo5Ylx2euankwouRkClIvjIkvoI+Tq6eLOa41Szzu9B5GIBeAtdNjDfO5Cl52j6IoOsrg3ha21sCc5XvZSwbFqWOwk8xHPqctYR9gea+P2sq/9Cq39+1ILv9NeFgv53pl8l1syTboLoZOCu1upVYGlyV4J4J X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230031)(36860700004)(376005)(82310400017)(1800799015); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jun 2024 08:38:59.9469 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1c6efa2c-306a-4cd3-4819-08dc8471c7f8 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=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: SJ1PEPF00001CDD.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB6580 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 This patch corrects the mio and pll configuration registers for using usb3 on the kd240 starter kit. Without this patch, the usb3 to sd card bridge does not initialize correctly and u-boot is unable to find the OS located on the kd240 starter kit sd card. In addition, this patch correctly configures mio76 and mio77 as gpio pins which are used as reset gpio pins on the kd240 starter kit. Signed-off-by: Neal Frager --- V1->V2: - rebased patch to latest u-boot master branch - improved git commit message V2->V3: - removed unnecessary serdes initialization from patch --- .../zynqmp/zynqmp-sm-k24-revA/psu_init_gpl.c | 23 ++++++++----------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/board/xilinx/zynqmp/zynqmp-sm-k24-revA/psu_init_gpl.c b/board/xilinx/zynqmp/zynqmp-sm-k24-revA/psu_init_gpl.c index 166e61431b..274203ffaa 100644 --- a/board/xilinx/zynqmp/zynqmp-sm-k24-revA/psu_init_gpl.c +++ b/board/xilinx/zynqmp/zynqmp-sm-k24-revA/psu_init_gpl.c @@ -528,8 +528,8 @@ static unsigned long psu_mio_init_data(void) psu_mask_write(0xFF180124, 0x000000FEU, 0x00000002U); psu_mask_write(0xFF180128, 0x000000FEU, 0x00000002U); psu_mask_write(0xFF18012C, 0x000000FEU, 0x00000002U); - psu_mask_write(0xFF180130, 0x000000FEU, 0x000000C0U); - psu_mask_write(0xFF180134, 0x000000FEU, 0x000000C0U); + psu_mask_write(0xFF180130, 0x000000FEU, 0x00000000U); + psu_mask_write(0xFF180134, 0x000000FEU, 0x00000000U); psu_mask_write(0xFF180204, 0xFFFFFFFFU, 0x50000000U); psu_mask_write(0xFF180208, 0xFFFFFFFFU, 0x00B02020U); psu_mask_write(0xFF18020C, 0x00003FFFU, 0x00000FC0U); @@ -569,21 +569,16 @@ static unsigned long psu_peripherals_init_data(void) psu_mask_write(0xFD1A0100, 0x0001807CU, 0x00000000U); psu_mask_write(0xFF5E0238, 0x001A0000U, 0x00000000U); psu_mask_write(0xFF5E023C, 0x0093C018U, 0x00000000U); - psu_mask_write(0xFF5E0230, 0x00000008U, 0x00000000U); + psu_mask_write(0xFF5E0230, 0x00000002U, 0x00000000U); psu_mask_write(0xFF5E0238, 0x00000001U, 0x00000000U); psu_mask_write(0xFF180390, 0x00000004U, 0x00000004U); psu_mask_write(0xFF5E023C, 0x00000400U, 0x00000000U); - psu_mask_write(0xFF5E0238, 0x00000040U, 0x00000000U); - psu_mask_write(0xFF180310, 0x00008000U, 0x00000000U); - psu_mask_write(0xFF180320, 0x33840000U, 0x02840000U); - psu_mask_write(0xFF18031C, 0x7FFE0000U, 0x64500000U); - psu_mask_write(0xFF180358, 0x00000008U, 0x00000008U); - psu_mask_write(0xFF180324, 0x03C00000U, 0x00000000U); + psu_mask_write(0xFF5E0238, 0x00000080U, 0x00000000U); psu_mask_write(0xFF5E0238, 0x00000400U, 0x00000000U); psu_mask_write(0xFF5E0238, 0x00008000U, 0x00000000U); psu_mask_write(0xFF5E0238, 0x00000010U, 0x00000000U); psu_mask_write(0xFF5E0238, 0x00007800U, 0x00000000U); - psu_mask_write(0xFF5E0238, 0x00000004U, 0x00000000U); + psu_mask_write(0xFF5E0238, 0x00000006U, 0x00000000U); psu_mask_write(0xFF5E0238, 0x00040000U, 0x00000000U); psu_mask_write(0xFF4B0024, 0x000000FFU, 0x000000FFU); psu_mask_write(0xFFCA5000, 0x00001FFFU, 0x00000000U); @@ -591,13 +586,15 @@ static unsigned long psu_peripherals_init_data(void) psu_mask_write(0xFFA60040, 0x80000000U, 0x80000000U); psu_mask_write(0xFF260020, 0xFFFFFFFFU, 0x05F5DD18U); psu_mask_write(0xFF260000, 0x00000001U, 0x00000001U); - psu_mask_write(0xFF5E0250, 0x00000F0FU, 0x00000202U); + psu_mask_write(0xFF0A0284, 0x03FFFFFFU, 0x01000000U); + psu_mask_write(0xFF0A0288, 0x03FFFFFFU, 0x01000000U); + psu_mask_write(0xFF0A0014, 0x03FF03FFU, 0x02FF0100U); mask_delay(1); - psu_mask_write(0xFF5E0250, 0x00000F0FU, 0x00000002U); + psu_mask_write(0xFF0A0014, 0x03FF03FFU, 0x02FF0000U); mask_delay(5); - psu_mask_write(0xFF5E0250, 0x00000F0FU, 0x00000202U); + psu_mask_write(0xFF0A0014, 0x03FF03FFU, 0x02FF0100U); return 1; }