From patchwork Tue Jun 10 20:01:21 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 31709 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f197.google.com (mail-qc0-f197.google.com [209.85.216.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id ED6392054B for ; Tue, 10 Jun 2014 20:02:37 +0000 (UTC) Received: by mail-qc0-f197.google.com with SMTP id i8sf7765101qcq.4 for ; Tue, 10 Jun 2014 13:02:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:mime-version:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list:content-type :content-transfer-encoding; bh=62MH7d3/4Fn3QiIuKPxdP4RLUNIk+rps0yP/GCS8d+o=; b=at8zKpxFht1B7KlQ36tpV0u4ijumCdm5xd+BSi4qVsjkW4T0jgbu6LyK8/RSSsruSQ 7Lly1eB8a38mt9abq80YVBtI8oQKjtf0NGq98tMIobSt8Niiy86T+Ra8BNmPRMKNM3sj brUoGtjCkUwWaPxpaBUKYJo5iTCKR5GSkCJlKJu99FUXOuM5HRQucZ1V7jdtUm8d/w4h EhQrwg7f0eP7E+HX0N2pQlHt629RD7SvUGYLcXJz8TRlxZ3akezRazHipE8E1NoecH6X i1CWG2FbB6aGVUJjyRqqAvic1dy0aP4yyjVyy296tb9cuuAoTLdp9K5NccX5vECrXs67 sHVg== X-Gm-Message-State: ALoCoQk+Qm80FMguwBV8DYp3xmxQm/hWYT5hSuHy2cQlWTvOMydMhgKHzbmfFi8lzxm+IZ/OuXEc X-Received: by 10.58.41.33 with SMTP id c1mr39634vel.2.1402430557739; Tue, 10 Jun 2014 13:02:37 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.96.201 with SMTP id k67ls2281006qge.22.gmail; Tue, 10 Jun 2014 13:02:37 -0700 (PDT) X-Received: by 10.221.4.66 with SMTP id ob2mr34891721vcb.28.1402430557548; Tue, 10 Jun 2014 13:02:37 -0700 (PDT) Received: from mail-ve0-f176.google.com (mail-ve0-f176.google.com [209.85.128.176]) by mx.google.com with ESMTPS id fa6si13465946veb.20.2014.06.10.13.02.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Jun 2014 13:02:37 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.176 as permitted sender) client-ip=209.85.128.176; Received: by mail-ve0-f176.google.com with SMTP id db12so5848609veb.35 for ; Tue, 10 Jun 2014 13:02:37 -0700 (PDT) X-Received: by 10.52.175.69 with SMTP id by5mr29084426vdc.16.1402430557469; Tue, 10 Jun 2014 13:02:37 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.54.6 with SMTP id vs6csp251521vcb; Tue, 10 Jun 2014 13:02:36 -0700 (PDT) X-Received: by 10.194.174.168 with SMTP id bt8mr45152293wjc.72.1402430556572; Tue, 10 Jun 2014 13:02:36 -0700 (PDT) Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id r3si809332wia.1.2014.06.10.13.02.35 for ; Tue, 10 Jun 2014 13:02:36 -0700 (PDT) Received-SPF: none (google.com: u-boot-bounces@lists.denx.de does not designate permitted sender hosts) client-ip=85.214.87.163; Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B96EC4A03C; Tue, 10 Jun 2014 22:02:28 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id c6eMWVWS-Euc; Tue, 10 Jun 2014 22:02:28 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B3B694A050; Tue, 10 Jun 2014 22:02:03 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8CCB8A73DD for ; Tue, 10 Jun 2014 22:01:55 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id a5erzm8FTalJ for ; Tue, 10 Jun 2014 22:01:52 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from devils.ext.ti.com (devils.ext.ti.com [198.47.26.153]) by theia.denx.de (Postfix) with ESMTPS id B5DBE4A028 for ; Tue, 10 Jun 2014 22:01:45 +0200 (CEST) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id s5AK1hMx019785; Tue, 10 Jun 2014 15:01:43 -0500 Received: from DLEE70.ent.ti.com (dlemailx.itg.ti.com [157.170.170.113]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s5AK1h2q017906; Tue, 10 Jun 2014 15:01:43 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.174.1; Tue, 10 Jun 2014 15:01:43 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s5AK1gZ3012393; Tue, 10 Jun 2014 15:01:43 -0500 From: Felipe Balbi To: Tom Rini Date: Tue, 10 Jun 2014 15:01:21 -0500 Message-ID: <1402430482-2676-5-git-send-email-balbi@ti.com> X-Mailer: git-send-email 2.0.0.rc1 In-Reply-To: <1402430482-2676-1-git-send-email-balbi@ti.com> References: <1402430482-2676-1-git-send-email-balbi@ti.com> MIME-Version: 1.0 Cc: Schuyler Patton , Vaibhav@theia.denx.de, u-boot@lists.denx.de, Steven Kipisz , "\\\"Franklin Cooper Jr.\\\"" Subject: [U-Boot] [PATCH v2 4/5] board: ti: am43xx: add AM437x SK PHY Address X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: balbi@ti.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.176 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 pass correct PHY Address when running on SK so that we have working ethernet with this board too. Signed-off-by: Felipe Balbi --- board/ti/am43xx/board.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/board/ti/am43xx/board.c b/board/ti/am43xx/board.c index 6379cef..054a452 100644 --- a/board/ti/am43xx/board.c +++ b/board/ti/am43xx/board.c @@ -594,6 +594,11 @@ int board_eth_init(bd_t *bis) writel(RMII_MODE_ENABLE | RMII_CHIPCKL_ENABLE, &cdev->miisel); cpsw_slaves[0].phy_if = PHY_INTERFACE_MODE_RMII; cpsw_slaves[0].phy_addr = 16; + } else if (board_is_sk()) { + writel(RGMII_MODE_ENABLE, &cdev->miisel); + cpsw_slaves[0].phy_if = PHY_INTERFACE_MODE_RGMII; + cpsw_slaves[0].phy_addr = 4; + cpsw_slaves[1].phy_addr = 5; } else { writel(RGMII_MODE_ENABLE, &cdev->miisel); cpsw_slaves[0].phy_if = PHY_INTERFACE_MODE_RGMII;