From patchwork Mon Jun 24 04:03:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 1121052 X-Patchwork-Delegate: uboot@andestech.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=wdc.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=wdc.com header.i=@wdc.com header.b="mfj1Qbe/"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=sharedspace.onmicrosoft.com header.i=@sharedspace.onmicrosoft.com header.b="YiMbJBQq"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45XG4d1RRnz9s4Y for ; Mon, 24 Jun 2019 14:08:48 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 2791FC21F34; Mon, 24 Jun 2019 04:08:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id A137BC21F47; Mon, 24 Jun 2019 04:03:33 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 08BE7C21F05; Mon, 24 Jun 2019 04:03:11 +0000 (UTC) Received: from esa1.hgst.iphmx.com (esa1.hgst.iphmx.com [68.232.141.245]) by lists.denx.de (Postfix) with ESMTPS id 2F406C21F05 for ; Mon, 24 Jun 2019 04:03:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1561348987; x=1592884987; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=Vadi+ZSy3oZlEY6a0Vxh2cAVIJmeDfXxgnxQYfWnZPE=; b=mfj1Qbe//Jn2uV99DokTQyClhYPqB3WOe8l6VKKtgoeJPMOmrw/iY6BM lFZ1RWJQ8CxXUTqRDlyN0sul6SCfC8n+XkC1npWdcXxI5eLg5wsV93mnR LsDDkt7ZASXpEbmPsVScGMhfLcwUkRfZ0UdQUl7hukbwKM4Ul5aHAntor LtSXXpkERofzRiTTW11TJo8QiApqWAdPxuYQubgcso2oPQrSJgZcyyvde loWE5MlY8JJMnXR0NuzZWUaEe0oyQKoZ6y73TCy+SmuHgZ2hewvXYFu23 jCiFsn6imzQ0JJXB9hCAykZ1OSLkTJZF80OSngbKvUalbsSA4codtKj5Z A==; X-IronPort-AV: E=Sophos;i="5.63,411,1557158400"; d="scan'208";a="217715292" Received: from mail-co1nam03lp2058.outbound.protection.outlook.com (HELO NAM03-CO1-obe.outbound.protection.outlook.com) ([104.47.40.58]) by ob1.hgst.iphmx.com with ESMTP; 24 Jun 2019 12:03:05 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector2-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Vadi+ZSy3oZlEY6a0Vxh2cAVIJmeDfXxgnxQYfWnZPE=; b=YiMbJBQqLZ9I2buDe45LGAF9lEwzzuxghJLtRT7uzsxusmTLNQOD4RckYRwI5P40l0c9l6+O803Lv8pJdJKyt5gpPuwHjujSPqx+MRlZubqDFTXmfz+hRvi71XU+LKRWWXdiNbSzLqN0FBdZB5i889qm5/rx5st4VlnExnoc8T4= Received: from MN2PR04MB6061.namprd04.prod.outlook.com (20.178.246.15) by MN2PR04MB5725.namprd04.prod.outlook.com (20.179.22.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2008.16; Mon, 24 Jun 2019 04:03:04 +0000 Received: from MN2PR04MB6061.namprd04.prod.outlook.com ([fe80::84da:b4e7:4612:48b]) by MN2PR04MB6061.namprd04.prod.outlook.com ([fe80::84da:b4e7:4612:48b%7]) with mapi id 15.20.2008.014; Mon, 24 Jun 2019 04:03:04 +0000 From: Anup Patel To: Rick Chen , Bin Meng , Lukas Auer , Simon Glass Thread-Topic: [PATCH v7 5/9] clk: sifive: Drop GEMGXL clock driver Thread-Index: AQHVKkG4+3iwZWAcTESBl4+eAooFfw== Date: Mon, 24 Jun 2019 04:03:03 +0000 Message-ID: <20190624040212.3726-6-anup.patel@wdc.com> References: <20190624040212.3726-1-anup.patel@wdc.com> In-Reply-To: <20190624040212.3726-1-anup.patel@wdc.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: MAXPR01CA0101.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:5d::19) To MN2PR04MB6061.namprd04.prod.outlook.com (2603:10b6:208:d8::15) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Anup.Patel@wdc.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-originating-ip: [129.253.179.161] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 7ab09bc6-403b-4afc-6bab-08d6f858db2f x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020); SRVR:MN2PR04MB5725; x-ms-traffictypediagnostic: MN2PR04MB5725: wdcipoutbound: EOP-TRUE x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4941; x-forefront-prvs: 007814487B x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(136003)(366004)(396003)(376002)(346002)(39860400002)(189003)(199004)(36756003)(14454004)(72206003)(14444005)(256004)(316002)(7416002)(3846002)(6116002)(86362001)(110136005)(6486002)(6436002)(99286004)(2906002)(478600001)(8676002)(81156014)(50226002)(8936002)(81166006)(25786009)(305945005)(186003)(4326008)(71190400001)(71200400001)(54906003)(66066001)(446003)(66446008)(7736002)(66476007)(66556008)(64756008)(44832011)(2616005)(476003)(11346002)(5660300002)(66946007)(73956011)(486006)(1076003)(53936002)(68736007)(6512007)(52116002)(386003)(6506007)(102836004)(26005)(76176011); DIR:OUT; SFP:1102; SCL:1; SRVR:MN2PR04MB5725; H:MN2PR04MB6061.namprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: CMOk5oekL9j75Kjz+Lu5uRjufracbqBhdsU5bks85bk6+z3s417k3y2IXkI8PcQnL2GB8VHNxQpbdYQxMadstSzD4cxDNNpf5iGYZu1ReKwhDwkEG6KWj1ffZouaSBDym/DoiySQDBSfV/L+P8udDKpl+6cGCrFiKr21McFVkt4TsfZ9IO10c3jbmt75Z6a3hnO5NvhXTsY9rZBjZP9ydgXzC+sLs1t3uxZgBeofD7F+uZA10x15sONA/EpAEz8Qe+/R6142d/MyAjwgyIbY71WH8BBcLDaFaPZuTz7dvKD3SUQV2hgzRuHdW+rSWyI/dDu4OllojEhJJA1EWEuUiYmTwjMW97jzJIlGLzAoofzCt0IVjkeB5zWxsYMkKzKTROT1R2Hna+o64SHbJtCsJoF5dXReXzoj9ByPkvJzQEE= MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7ab09bc6-403b-4afc-6bab-08d6f858db2f X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jun 2019 04:03:04.2579 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Anup.Patel@wdc.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR04MB5725 Cc: U-Boot Mailing List , Palmer Dabbelt , Joe Hershberger , Alistair Francis Subject: [U-Boot] [PATCH v7 5/9] clk: sifive: Drop GEMGXL clock driver X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" The GEMGXL clock driver is now directly part of Cadence MACB ethernet driver in upstream Linux kernel. There is no separate GEMGXL clock driver in upstream Linux kernel hence we drop GEMGXL clock driver from U-Boot as well. Signed-off-by: Anup Patel Reviewed-by: Bin Meng --- board/sifive/fu540/Kconfig | 1 - drivers/clk/sifive/Kconfig | 7 ---- drivers/clk/sifive/Makefile | 2 -- drivers/clk/sifive/gemgxl-mgmt.c | 60 -------------------------------- 4 files changed, 70 deletions(-) delete mode 100644 drivers/clk/sifive/gemgxl-mgmt.c diff --git a/board/sifive/fu540/Kconfig b/board/sifive/fu540/Kconfig index 8eb5e304ab..f46437901d 100644 --- a/board/sifive/fu540/Kconfig +++ b/board/sifive/fu540/Kconfig @@ -28,7 +28,6 @@ config BOARD_SPECIFIC_OPTIONS # dummy imply CMD_PING imply CLK_SIFIVE imply CLK_SIFIVE_FU540_PRCI - imply CLK_SIFIVE_GEMGXL_MGMT imply DOS_PARTITION imply EFI_PARTITION imply IP_DYN diff --git a/drivers/clk/sifive/Kconfig b/drivers/clk/sifive/Kconfig index d90be1943f..c4d0a1f9b1 100644 --- a/drivers/clk/sifive/Kconfig +++ b/drivers/clk/sifive/Kconfig @@ -14,10 +14,3 @@ config CLK_SIFIVE_FU540_PRCI Supports the Power Reset Clock interface (PRCI) IP block found in FU540 SoCs. If this kernel is meant to run on a SiFive FU540 SoC, enable this driver. - -config CLK_SIFIVE_GEMGXL_MGMT - bool "GEMGXL management for SiFive FU540 SoCs" - depends on CLK_SIFIVE - help - Supports the GEMGXL management IP block found in FU540 SoCs to - control GEM TX clock operation mode for 10/100/1000 Mbps. diff --git a/drivers/clk/sifive/Makefile b/drivers/clk/sifive/Makefile index 0813360ca7..b224279afb 100644 --- a/drivers/clk/sifive/Makefile +++ b/drivers/clk/sifive/Makefile @@ -1,5 +1,3 @@ # SPDX-License-Identifier: GPL-2.0+ obj-$(CONFIG_CLK_SIFIVE_FU540_PRCI) += fu540-prci.o - -obj-$(CONFIG_CLK_SIFIVE_GEMGXL_MGMT) += gemgxl-mgmt.o diff --git a/drivers/clk/sifive/gemgxl-mgmt.c b/drivers/clk/sifive/gemgxl-mgmt.c deleted file mode 100644 index eb37416b5e..0000000000 --- a/drivers/clk/sifive/gemgxl-mgmt.c +++ /dev/null @@ -1,60 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* - * Copyright (C) 2019, Bin Meng - */ - -#include -#include -#include -#include - -struct gemgxl_mgmt_regs { - __u32 tx_clk_sel; -}; - -struct gemgxl_mgmt_platdata { - struct gemgxl_mgmt_regs *regs; -}; - -static int gemgxl_mgmt_ofdata_to_platdata(struct udevice *dev) -{ - struct gemgxl_mgmt_platdata *plat = dev_get_platdata(dev); - - plat->regs = (struct gemgxl_mgmt_regs *)dev_read_addr(dev); - - return 0; -} - -static ulong gemgxl_mgmt_set_rate(struct clk *clk, ulong rate) -{ - struct gemgxl_mgmt_platdata *plat = dev_get_platdata(clk->dev); - - /* - * GEMGXL TX clock operation mode: - * - * 0 = GMII mode. Use 125 MHz gemgxlclk from PRCI in TX logic - * and output clock on GMII output signal GTX_CLK - * 1 = MII mode. Use MII input signal TX_CLK in TX logic - */ - writel(rate != 125000000, &plat->regs->tx_clk_sel); - - return 0; -} - -const struct clk_ops gemgxl_mgmt_ops = { - .set_rate = gemgxl_mgmt_set_rate, -}; - -static const struct udevice_id gemgxl_mgmt_match[] = { - { .compatible = "sifive,cadencegemgxlmgmt0", }, - { /* sentinel */ } -}; - -U_BOOT_DRIVER(sifive_gemgxl_mgmt) = { - .name = "sifive-gemgxl-mgmt", - .id = UCLASS_CLK, - .of_match = gemgxl_mgmt_match, - .ofdata_to_platdata = gemgxl_mgmt_ofdata_to_platdata, - .platdata_auto_alloc_size = sizeof(struct gemgxl_mgmt_platdata), - .ops = &gemgxl_mgmt_ops, -};