From patchwork Mon Jun 24 03:25:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 1121025 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="J3H+GXus"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=sharedspace.onmicrosoft.com header.i=@sharedspace.onmicrosoft.com header.b="w7uAcTY8"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45XF8m47Psz9s4Y for ; Mon, 24 Jun 2019 13:27:20 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 42C36C21F0B; Mon, 24 Jun 2019 03:26:32 +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 1FE06C21F19; Mon, 24 Jun 2019 03:26:08 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 62252C21EEF; Mon, 24 Jun 2019 03:25:40 +0000 (UTC) Received: from esa1.hgst.iphmx.com (esa1.hgst.iphmx.com [68.232.141.245]) by lists.denx.de (Postfix) with ESMTPS id DA1CAC21EFB for ; Mon, 24 Jun 2019 03:25:35 +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=1561346736; x=1592882736; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=Vadi+ZSy3oZlEY6a0Vxh2cAVIJmeDfXxgnxQYfWnZPE=; b=J3H+GXuse8w4zuhqMFrszsy+Yc77PpXwqw0FXsIqh26te1I1+4WNSqf8 jccKjPMuecpIMmsP9XgFcPNafynG2t/Nv5BTKINiKzDmNUnv+0zwnfJs2 iwK7DqULmQ/+Cyag7b/TCVnEY/M+Hd+8H0caNYUOsfX0TLnWB3a9uANPd t0Aw7TLEJWsKBf5inrR0Tualoob9SrK8beymZVe82tFl0DiEsv8gY+XMw 1/yBj/JcTv9VXCK6NG4uJDeCTIO0kxPfpivUlKxD+ihXLVt87gmM9EU/w dgOmzWKxDW4gNWUatel73pRNG3HS7YqQXldb0xOYErBd52kNFnRuG8deA g==; X-IronPort-AV: E=Sophos;i="5.63,410,1557158400"; d="scan'208";a="217712935" Received: from mail-dm3nam03lp2054.outbound.protection.outlook.com (HELO NAM03-DM3-obe.outbound.protection.outlook.com) ([104.47.41.54]) by ob1.hgst.iphmx.com with ESMTP; 24 Jun 2019 11:25:34 +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=w7uAcTY8SbVCGMR5Z3Wuut7Yz5ahQUkU+bmqAPx25sjJ2/g6uUIsjuCd0+YRYP7b2oVcwgB69Q7yUCYOr7dNxpZOjri8HMshPl4vMD2afcvGbXZJ2eKpoy2bXuaA1hyCxCZDqDxco+0nwwMzwa1ToeyJarV4QevM0rLWs1hEeLQ= Received: from MN2PR04MB6061.namprd04.prod.outlook.com (20.178.246.15) by MN2PR04MB5551.namprd04.prod.outlook.com (20.178.248.225) 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 03:25:33 +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 03:25:33 +0000 From: Anup Patel To: Rick Chen , Bin Meng , Lukas Auer , Simon Glass Thread-Topic: [PATCH v6 5/8] clk: sifive: Drop GEMGXL clock driver Thread-Index: AQHVKjx77HUhkpFY7EauQ9/5QoGq7w== Date: Mon, 24 Jun 2019 03:25:33 +0000 Message-ID: <20190624032431.20854-6-anup.patel@wdc.com> References: <20190624032431.20854-1-anup.patel@wdc.com> In-Reply-To: <20190624032431.20854-1-anup.patel@wdc.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: MA1PR0101CA0057.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:20::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: e938508d-074e-4d00-8f1c-08d6f8539d99 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:MN2PR04MB5551; x-ms-traffictypediagnostic: MN2PR04MB5551: 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)(396003)(366004)(346002)(376002)(39860400002)(189003)(199004)(256004)(11346002)(316002)(478600001)(72206003)(1076003)(8676002)(54906003)(5660300002)(110136005)(14454004)(50226002)(52116002)(99286004)(7736002)(6436002)(81156014)(81166006)(53936002)(66946007)(66556008)(2906002)(8936002)(66476007)(305945005)(86362001)(73956011)(6512007)(64756008)(66446008)(71190400001)(14444005)(446003)(2616005)(3846002)(25786009)(4326008)(36756003)(71200400001)(476003)(44832011)(68736007)(6486002)(7416002)(102836004)(6506007)(386003)(26005)(186003)(76176011)(66066001)(6116002)(486006); DIR:OUT; SFP:1102; SCL:1; SRVR:MN2PR04MB5551; 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: e7Ik99NwSuvG2ztFpSvWFZUjfMORXzuyl8Pq9O2mq02xDV5c3cTFOTQflDKF0sv17JuU7nNDUux+tPpVfgxfvD8ZU4qbArOaFdmGYUt8GYuuZNdFzq3DL6xiOTwNDtM5OmxBC6FeS1v2TDARC0IVhEuy5soThFy11GzQdaGK0Kn4pONt8X3i3VhSK4yOy3pk52uER6fGVC3Fjb33/6gjA+Qtf3l0lvH0xmZ9igSzdwOmb9GCtj2vlwSUl6JkjSS29/SAkkn86e18YyGm3KKRYO1qwW+28SkDqquQm6RZhqiUuF8CW8+msJ7naZ2iQDikybPB0IKh3QjV6kHHmRuYbhUxmGZ/mRFmwCQDuY+bfFpYukIdQuPTF8fuJEiyDfZU7V8NH/jtHUvwg+GA6OXcpwuHz6nLCl2iX7/da+LcTss= MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: e938508d-074e-4d00-8f1c-08d6f8539d99 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jun 2019 03:25:33.4131 (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: MN2PR04MB5551 Cc: U-Boot Mailing List , Palmer Dabbelt , Joe Hershberger , Alistair Francis Subject: [U-Boot] [PATCH v6 5/8] 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, -};