From patchwork Thu Aug 23 11:41:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sekhar Nori X-Patchwork-Id: 144926 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp76183ljw; Thu, 23 Aug 2018 04:43:41 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZgu36rmaFPnlaxydQDFGzcLYLNWC2zDbtUv3a+o0iSLJepb6oi8xy4plydgExvHlxXcElT X-Received: by 2002:a50:ba59:: with SMTP id 25-v6mr8622045eds.214.1535024621341; Thu, 23 Aug 2018 04:43:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535024621; cv=none; d=google.com; s=arc-20160816; b=yYmuODP9GF9tymYWhlTPOLdGY59Bg0zDgbGp+ngiIPPa5d+/cLFOCYH1eMzsbDzZPZ nx1Zwtyp9adHCAyM+I+prBcM+WlTotXrTJyLJH5W7Y3rXRXqHdB7aA5XvrtZ22r+3lUH u4B6sX/aytI0rDVJBCABjrdz86vQ4GmaAWym6Z3RQAmVlaN/nGptOQ8FKak2rBkoblDE x/rmN8blUFBe5A7LcJSX1Z190rnYy2D2vsr/EbUJLqdiCu9UTjcoHxuyD9MT9ImxvCT6 pXnydRnxplbA+v47XE8J6LpDvNlNW3rp1yf8GhkUesxfhkXbjEVD7yoV+knA8Dg0PT9r 0J9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:arc-authentication-results; bh=6O5cH6zmB1Hmop5CB7lH02/x6BsHkGG6msAIJOs5VhE=; b=lSUVUCL7PwFm0zoiOds64vgzv8yaG0XnWLtMhypr0HSs+BvXtgM9qwyBaUMxIWkGMf dpP3/Kfu0RfCmZUS9hqjcaCkf7LBty/+HH3agbt+1QCMioSfDb2EtMssShxySIxzyHGi B2iZKMhAG+uz4wE/KhxESlS7bNWBmNm/d1NpWlwz0Qex2lO/NyLVlyCoA+JxSfx0mhU2 U61CGNSsMD24/j2uqOnGe8Cwy4M91O/we8VMMp+SAFKJtsRPYNs5ADx+3DIoM9TfnZ33 AbYk9FzPy9Tqtv4UTeQne66laCd38sv8pe9pMlWst0a/gWp6q/rFL62n6uNqs+sOpiYB O9NQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b="PjEB/sIy"; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id b15-v6si3188274edm.391.2018.08.23.04.43.41; Thu, 23 Aug 2018 04:43:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b="PjEB/sIy"; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: by lists.denx.de (Postfix, from userid 105) id F115BC21DAF; Thu, 23 Aug 2018 11:42:18 +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 8BE15C21F7E; Thu, 23 Aug 2018 11:41:52 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 362E5C21F7D; Thu, 23 Aug 2018 11:41:43 +0000 (UTC) Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lists.denx.de (Postfix) with ESMTPS id 1963AC21EEB for ; Thu, 23 Aug 2018 11:41:39 +0000 (UTC) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id w7NBfaZF113669; Thu, 23 Aug 2018 06:41:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1535024496; bh=EJa0vet0GELEQa9J4G1PpBgctYCRpjdBbLJ9Ul9CXTk=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=PjEB/sIy8PQqZ1PKNf4sPz/+RC0SRsb4HGfeXKxhus63cDLRrfObfUFYLdydfxLmY SoE4J4MYpAyOrbwDiC/Xi6ABbm8iICVRaWUWiMLq3oZXh/OCqkGB2vWe3ECwnReiGi 1J4Or2U/zEwYvK1cBvBakYdoORGN1DCkP/bsKYUw= Received: from DFLE102.ent.ti.com (dfle102.ent.ti.com [10.64.6.23]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w7NBfaVa004720; Thu, 23 Aug 2018 06:41:36 -0500 Received: from DFLE105.ent.ti.com (10.64.6.26) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Thu, 23 Aug 2018 06:41:36 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Thu, 23 Aug 2018 06:41:36 -0500 Received: from psplinux063.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w7NBfWhr003432; Thu, 23 Aug 2018 06:41:34 -0500 From: Sekhar Nori To: Joe Hershberger , Tom Rini , Lokesh Vutla Date: Thu, 23 Aug 2018 17:11:29 +0530 Message-ID: <20180823114131.8684-2-nsekhar@ti.com> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180823114131.8684-1-nsekhar@ti.com> References: <20180823114131.8684-1-nsekhar@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Cc: u-boot@lists.denx.de, William Mills Subject: [U-Boot] [PATCH 1/3] drivers: net: cpsw: add support to update phy address 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" On some boards using TI CPSW, it may be possible that PHY address was not latched correctly, and the actual address that the phy responds on is different from that set in device-tree. For example, see this problem report on beaglebone black: https://groups.google.com/d/msg/beagleboard/9mctrG26Mc8/1FuI_i5KW10J Add support to check for this condition and use the detected phy address when its safe to do so. Also, add a public API that exposes the phy address of a given slave. This can be used to update device-tree that is passed to Linux kernel. Signed-off-by: Sekhar Nori Reviewed-by: Tom Rini --- drivers/net/cpsw.c | 29 +++++++++++++++++++++++++++++ include/cpsw.h | 1 + 2 files changed, 30 insertions(+) diff --git a/drivers/net/cpsw.c b/drivers/net/cpsw.c index c31695eba9dd..8e2a48cfd678 100644 --- a/drivers/net/cpsw.c +++ b/drivers/net/cpsw.c @@ -1008,6 +1008,25 @@ static int cpsw_phy_init(struct cpsw_priv *priv, struct cpsw_slave *slave) return 1; } +static void cpsw_phy_addr_update(struct cpsw_priv *priv) +{ + struct cpsw_platform_data *data = &priv->data; + u16 alive = mdio_regs->alive & GENMASK(15, 0); + int active = data->active_slave; + int new_addr = ffs(alive) - 1; + + /* + * If there is only one phy alive and its address does not match + * that of active slave, then phy address can safely be updated. + */ + if (hweight16(alive) == 1 && + data->slave_data[active].phy_addr != new_addr) { + printf("Updated phy address for CPSW#%d, old: %d, new: %d\n", + active, data->slave_data[active].phy_addr, new_addr); + data->slave_data[active].phy_addr = new_addr; + } +} + int _cpsw_register(struct cpsw_priv *priv) { struct cpsw_slave *slave; @@ -1034,6 +1053,9 @@ int _cpsw_register(struct cpsw_priv *priv) } cpsw_mdio_init(priv->dev->name, data->mdio_base, data->mdio_div); + + cpsw_phy_addr_update(priv); + priv->bus = miiphy_get_dev_by_name(priv->dev->name); for_active_slave(slave, priv) cpsw_phy_init(priv, slave); @@ -1458,6 +1480,13 @@ static int cpsw_eth_ofdata_to_platdata(struct udevice *dev) return 0; } +int cpsw_get_slave_phy_addr(struct udevice *dev, int slave) +{ + struct cpsw_priv *priv = dev_get_priv(dev); + struct cpsw_platform_data *data = &priv->data; + + return data->slave_data[slave].phy_addr; +} static const struct udevice_id cpsw_eth_ids[] = { { .compatible = "ti,cpsw" }, diff --git a/include/cpsw.h b/include/cpsw.h index f135e7bfe0cc..9f8ce8850f51 100644 --- a/include/cpsw.h +++ b/include/cpsw.h @@ -54,5 +54,6 @@ struct cpsw_platform_data { int cpsw_register(struct cpsw_platform_data *data); int ti_cm_get_macid(struct udevice *dev, int slave, u8 *mac_addr); +int cpsw_get_slave_phy_addr(struct udevice *dev, int slave); #endif /* _CPSW_H_ */ From patchwork Thu Aug 23 11:41:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sekhar Nori X-Patchwork-Id: 144924 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp75230ljw; Thu, 23 Aug 2018 04:42:19 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzXiWzuzE0dlotf0A8e/XrTSoZSqvDdOM+1z9jWALB/0hTqVoW+58+hV9aJCLpDn9A0iYHx X-Received: by 2002:a50:9306:: with SMTP id m6-v6mr26078094eda.206.1535024539863; Thu, 23 Aug 2018 04:42:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535024539; cv=none; d=google.com; s=arc-20160816; b=dbQVoiJyWVqHe8zl7u75aKLXqD0n7je/UJEnVal2A4Jb/N8QY8oSLfF1FFaCsA0z2q erS6n/cBeAsFq7wAzRtnBgAcXTUD6f4DngU8F136uAsJW+PbhreWyZrIau1ZQazl50ai l3AKnXdSlxVL/dwxdrzHEPi9aQqiDnDrOXlBwgodpSu9hCaSvSEMHhSFyG1kwnmTL1x8 iBT5zlqbpLGQCv+JLHBYcb+5MoQycaORKXqYBrzstd8Ls4z2uCaGv8THVSIBcC3FNQaZ RwC26fs3DxgmP3qG/nJ7qA+qWDue8y1yYRibVEge60F9RSe6jHrim8L/r+HPDqMOyct9 o1yA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:arc-authentication-results; bh=C1Y4rQjQfU66ZRaoXntHq1xvJ3hj5K0aCWzgSu3oJPw=; b=yEVSTTcobI1VgQMEx/MGjHXr6eD9Jj8IIDp31nafV3qM8GafGdDNnqdv5eApt6rZC5 ATB1e+1ywyfLpdNkrxZ97X6co0+J7917Fq6WhRVhQodPilEyDinsxpSv+NcDmyftMt8/ 9Q5gbP+1F29oV0XTGZjACFHDdAk/eQO6Jv5aUJrCOBeAl7A6JAwaZDOuYkBy2sDIB0Cv 00FNyROZnVcdVn688prux1QOWWF30hVpNjpZLqf03dj8XB5l/2AYIe6Wlmj0XJ/2ThBF /tTNJhNmt7mg9Fdz+A7cfGrYQzo8i+4LY5ZpJzui0mNhU7VnQMCo/Rgulh5/mZcyh+xH Hz3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=LyvYeWPZ; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id v14-v6si432933ede.25.2018.08.23.04.42.19; Thu, 23 Aug 2018 04:42:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=LyvYeWPZ; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: by lists.denx.de (Postfix, from userid 105) id 73CC2C21F1C; Thu, 23 Aug 2018 11:42:01 +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 790B5C21F6E; Thu, 23 Aug 2018 11:41:49 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 6FCBCC21F59; Thu, 23 Aug 2018 11:41:43 +0000 (UTC) Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lists.denx.de (Postfix) with ESMTPS id 68EDCC21DAF for ; Thu, 23 Aug 2018 11:41:40 +0000 (UTC) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id w7NBfddo022226; Thu, 23 Aug 2018 06:41:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1535024499; bh=aNDT4oulqMaLT1eCBpsn3gi9OH6f79gEca3JE17CKLI=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=LyvYeWPZCMHd8okSrFgh51BLizCDXmfsWC4mCJiyw6afwqOE2kgGqNcTDRi8Sf1h9 zfY322fTbnqmhv3TAAJkU1wajefP2fTaQfAvc2/1666JTtnPFOASSO3Vxf7KDjLi8W KIWHmM5lY15BM7VjOO+emwA0GJmdwK030jkH/Hts= Received: from DLEE106.ent.ti.com (dlee106.ent.ti.com [157.170.170.36]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w7NBfdJh010538; Thu, 23 Aug 2018 06:41:39 -0500 Received: from DLEE100.ent.ti.com (157.170.170.30) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Thu, 23 Aug 2018 06:41:38 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Thu, 23 Aug 2018 06:41:38 -0500 Received: from psplinux063.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w7NBfWhs003432; Thu, 23 Aug 2018 06:41:37 -0500 From: Sekhar Nori To: Joe Hershberger , Tom Rini , Lokesh Vutla Date: Thu, 23 Aug 2018 17:11:30 +0530 Message-ID: <20180823114131.8684-3-nsekhar@ti.com> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180823114131.8684-1-nsekhar@ti.com> References: <20180823114131.8684-1-nsekhar@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Cc: u-boot@lists.denx.de, William Mills Subject: [U-Boot] [PATCH 2/3] board: ti: am335x: add support to fixup phy address 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" On beaglebone black, it can so happen that PHY address is not latched correctly on reset and board boots with PHY responding to a different address than that programmed in device-tree. For example, see this report: https://groups.google.com/d/msg/beagleboard/9mctrG26Mc8/1FuI_i5KW10J Workaround this by fixing up device-tree passed to kernel by using the PHY address detected in hardware. Beaglebone itself uses only one ethernet port and its DT currently uses phy_id (obsoleted). But the function has been written to handle multiple ports and phy_id as well as phy-handle to make the function more generically useful. Signed-off-by: Sekhar Nori Reviewed-by: Tom Rini --- board/ti/am335x/board.c | 78 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c index a359d20021fd..13845251afb5 100644 --- a/board/ti/am335x/board.c +++ b/board/ti/am335x/board.c @@ -608,6 +608,84 @@ static struct clk_synth cdce913_data = { }; #endif +#if defined(CONFIG_OF_BOARD_SETUP) && defined(CONFIG_OF_CONTROL) && \ + defined(CONFIG_DM_ETH) && defined(CONFIG_DRIVER_TI_CPSW) + +#define MAX_CPSW_SLAVES 2 + +/* At the moment, we do not want to stop booting for any failures here */ +int ft_board_setup(void *fdt, bd_t *bd) +{ + const char *slave_path, *enet_name; + int enetnode, slavenode, phynode; + struct udevice *ethdev; + char alias[16]; + u32 phy_id[2]; + int phy_addr; + int i, ret; + + /* phy address fixup needed only on beagle bone family */ + if (!board_is_beaglebonex()) + goto done; + + for (i = 0; i < MAX_CPSW_SLAVES; i++) { + sprintf(alias, "ethernet%d", i); + + slave_path = fdt_get_alias(fdt, alias); + if (!slave_path) + continue; + + slavenode = fdt_path_offset(fdt, slave_path); + if (slavenode < 0) + continue; + + enetnode = fdt_parent_offset(fdt, slavenode); + enet_name = fdt_get_name(fdt, enetnode, NULL); + + ethdev = eth_get_dev_by_name(enet_name); + if (!ethdev) + continue; + + phy_addr = cpsw_get_slave_phy_addr(ethdev, i); + + /* check for phy_id as well as phy-handle properties */ + ret = fdtdec_get_int_array_count(fdt, slavenode, "phy_id", + phy_id, 2); + if (ret == 2) { + if (phy_id[1] != phy_addr) { + printf("fixing up phy_id for %s, old: %d, new: %d\n", + alias, phy_id[1], phy_addr); + + phy_id[0] = cpu_to_fdt32(phy_id[0]); + phy_id[1] = cpu_to_fdt32(phy_addr); + do_fixup_by_path(fdt, slave_path, "phy_id", + phy_id, sizeof(phy_id), 0); + } + } else { + phynode = fdtdec_lookup_phandle(fdt, slavenode, + "phy-handle"); + if (phynode < 0) + continue; + + ret = fdtdec_get_int(fdt, phynode, "reg", -ENOENT); + if (ret < 0) + continue; + + if (ret != phy_addr) { + printf("fixing up phy-handle for %s, old: %d, new: %d\n", + alias, ret, phy_addr); + + fdt_setprop_u32(fdt, phynode, "reg", + cpu_to_fdt32(phy_addr)); + } + } + } + +done: + return 0; +} +#endif + /* * Basic board specific setup. Pinmux has been handled already. */ From patchwork Thu Aug 23 11:41:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sekhar Nori X-Patchwork-Id: 144925 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp76145ljw; Thu, 23 Aug 2018 04:43:37 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbxJoRPLOpgbaZZ/b8DEthF5c86FFCKNJ2PNKvzGQJt26mtcxfzgq52U1+5r1HJEMfRlX57 X-Received: by 2002:a50:aed8:: with SMTP id f24-v6mr8515945edd.271.1535024617420; Thu, 23 Aug 2018 04:43:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535024617; cv=none; d=google.com; s=arc-20160816; b=o146RZT9mLIU8dDCQaeJdrzD8chge+kAAAI28Obj/wKD9LyfC41DaiviyuDOvnnXQM 4SsFSWHVZUcTkS4qrChM4XXQ8UGCts+UHG0M/ctDstthCgqAVpdTVSW5ezvCurqS7Unm gHyDykDsUc/K5mJUkNheoPcqQXzTtsVKY5rugpz1j+Iz1yjL80ogH/8QkFHUkSMKttTX 3B0gRl4lrV5Hz5+t6eaPEmk05dUW5gp/kJErZiqPNZeU3jP+qpqEP7WUlCmTogrv7G4Y h2K9SamIv22FdX9x6lJdnjuMnUAWBNGdgRchbgvv2F23Fp3Nqfskgh4YSv+Z6kGIAIeV SxcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:arc-authentication-results; bh=Ll3VmgkFfyYAGM7lY6kj1HYRsyqhIHknw68ix3DCtAY=; b=j7NXXFgXUvvKd+p3nLG7otxGl7FQBhmM6E8RR3iR95un6anJUHjCsPIO1rns8/3pWu ryIShCr/jC0g6iFfsD2beBuLAtoSA+uOV8i2s/xDopy+alTbWxnlqFJlLvirlZ1a0jMw intpaFy0mlRN0+QPV1W5nAYWobhiTasAe4qPfpHIonVmdudgFqBQvm5qawQdWcDtzbbu RCXI0d9uncB1FhDTQ0krDlPotEk62e2ShMwUktbb9/9gwSVn6x8TH6Vq2FbWFffjS6xi E3J/SPTRD3A/DHi3G76/Aw37yP35V0DXfbZ9Me02Vgc464c3rEEgaloEi7yqFvxrs7Ms Tsng== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=UaUa1+sZ; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id t5-v6si1874118edj.219.2018.08.23.04.43.37; Thu, 23 Aug 2018 04:43:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=UaUa1+sZ; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: by lists.denx.de (Postfix, from userid 105) id DF346C21ECA; Thu, 23 Aug 2018 11:42:35 +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 6AE7CC21EFC; Thu, 23 Aug 2018 11:42:09 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id AE455C21EFD; Thu, 23 Aug 2018 11:41:45 +0000 (UTC) Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lists.denx.de (Postfix) with ESMTPS id 807E1C21F59 for ; Thu, 23 Aug 2018 11:41:42 +0000 (UTC) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id w7NBffKa022234; Thu, 23 Aug 2018 06:41:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1535024501; bh=dYuxgBh+sjN09SLhwXbB5X9WhL0XYRSZzufk8setiQQ=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=UaUa1+sZyK4piuhXGZt7XlE0vi8DKQdp9eDTuxWr/PSnt+51pJS3eEjSASVXvm/UL JSHWa0IGJRoDFXxxI4ZDNuAychm4sXigbmHkKK8e3FsBsdWysM2qfipQ4+B/XmGYWj 3pNFN5XgZ1CU/ReIKM/T5CakYQeF6/o56k7XB8+s= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w7NBffaO010580; Thu, 23 Aug 2018 06:41:41 -0500 Received: from DLEE102.ent.ti.com (157.170.170.32) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Thu, 23 Aug 2018 06:41:40 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Thu, 23 Aug 2018 06:41:40 -0500 Received: from psplinux063.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w7NBfWht003432; Thu, 23 Aug 2018 06:41:39 -0500 From: Sekhar Nori To: Joe Hershberger , Tom Rini , Lokesh Vutla Date: Thu, 23 Aug 2018 17:11:31 +0530 Message-ID: <20180823114131.8684-4-nsekhar@ti.com> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180823114131.8684-1-nsekhar@ti.com> References: <20180823114131.8684-1-nsekhar@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Cc: u-boot@lists.denx.de, William Mills Subject: [U-Boot] [PATCH 3/3] configs: am335x_evm: enable OF_BOARD_SETUP 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" Enable CONFIG_OF_BOARD_SETUP as it is needed for Beaglebone black to overwrite the Ethernet phy address present in DT in case the phy latches on to a different address. Signed-off-by: Sekhar Nori Reviewed-by: Tom Rini --- configs/am335x_evm_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am335x_evm_defconfig b/configs/am335x_evm_defconfig index 06fdcd7a86a8..8627d75b1de3 100644 --- a/configs/am335x_evm_defconfig +++ b/configs/am335x_evm_defconfig @@ -6,6 +6,7 @@ CONFIG_SPL=y CONFIG_DEFAULT_DEVICE_TREE="am335x-evm" CONFIG_DISTRO_DEFAULTS=y CONFIG_SPL_LOAD_FIT=y +CONFIG_OF_BOARD_SETUP=y CONFIG_BOOTCOMMAND="if test ${boot_fit} -eq 1; then run update_to_fit; fi; run findfdt; run init_console; run envboot; run distro_bootcmd" CONFIG_SYS_CONSOLE_INFO_QUIET=y CONFIG_VERSION_VARIABLE=y