From patchwork Sun Aug 5 22:36:57 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nobuhiro Iwamatsu X-Patchwork-Id: 175216 X-Patchwork-Delegate: albert.aribaud@free.fr Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 565402C0082 for ; Mon, 6 Aug 2012 08:28:25 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7749528143; Mon, 6 Aug 2012 00:28:22 +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 GlTVOeAKKHPR; Mon, 6 Aug 2012 00:28:22 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A718528157; Mon, 6 Aug 2012 00:28:18 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C067B2813D for ; Mon, 6 Aug 2012 00:28:14 +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 EhsPPpxrF1zT for ; Mon, 6 Aug 2012 00:28:14 +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 mail-pb0-f44.google.com (mail-pb0-f44.google.com [209.85.160.44]) by theia.denx.de (Postfix) with ESMTPS id E056B28138 for ; Mon, 6 Aug 2012 00:28:13 +0200 (CEST) Received: by pbbrr4 with SMTP id rr4so2921290pbb.3 for ; Sun, 05 Aug 2012 15:28:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=oHeUyjAJxBaBWVZpmIfb1obr7SJ+lKfJ4HLWdeXnBAg=; b=BfAjtmNnezsrKY29WJLmUZwuoIoU7Bw1Dg5bc58KrHxg+Y/VUNXCgLgySXkhph91VD hsNbMPKk0zD+TVFuvHmr2TGWi3EbM6iohIfGrebhfpzVqkUXDTZucG9cvenPbJotBBMp Hxifs0sQslI6Ox2CpytoqrBrrQKLlF2fuEnfTtHnWlkW8O2lVYrZ4ay1fPY2MaqYIf9V M5F7ctxw036rNrMjqM4Mq47cP4ggXiPuwV4Uh92Xpc9JlZa5bvcCdEO1JXDSLpHsUGHj n/RfHrubM2z5YGbo0/+sKwHGWGv4x4zlHt3gQqktI8O8K3wZ0O0AckYTf5QS75SaWuv3 En7w== Received: by 10.68.220.104 with SMTP id pv8mr14362380pbc.119.1344205692029; Sun, 05 Aug 2012 15:28:12 -0700 (PDT) Received: from xps-iwamatsu.renesas.com (49.14.32.202.bf.2iij.net. [202.32.14.49]) by mx.google.com with ESMTPS id qi8sm7539159pbc.36.2012.08.05.15.28.10 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 05 Aug 2012 15:28:11 -0700 (PDT) From: Nobuhiro Iwamatsu To: u-boot@lists.denx.de, Albert Aribaud Date: Mon, 6 Aug 2012 07:36:57 +0900 Message-Id: <1344206217-20325-2-git-send-email-nobuhiro.iwamatsu.yj@renesas.com> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1344206217-20325-1-git-send-email-nobuhiro.iwamatsu.yj@renesas.com> References: <1344206217-20325-1-git-send-email-nobuhiro.iwamatsu.yj@renesas.com> X-Gm-Message-State: ALoCoQn3pMUF2CDIN/Y8/gMD3J2bFRqYV0whYXufAOwQ5DsAp5+lC7Hfh8mAULHTknhST2Z7Al7G Cc: Nobuhiro Iwamatsu Subject: [U-Boot] [PATCH 2/2] arm: rmobile: Add cpu_eth_init function X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de This supports ethernet driver of RMOBILE R8A7740. Signed-off-by: Nobuhiro Iwamatsu --- arch/arm/cpu/armv7/rmobile/Makefile | 2 +- arch/arm/cpu/armv7/rmobile/emac.c | 36 +++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 arch/arm/cpu/armv7/rmobile/emac.c diff --git a/arch/arm/cpu/armv7/rmobile/Makefile b/arch/arm/cpu/armv7/rmobile/Makefile index 4e0eb35..b9663fa 100644 --- a/arch/arm/cpu/armv7/rmobile/Makefile +++ b/arch/arm/cpu/armv7/rmobile/Makefile @@ -26,7 +26,7 @@ include $(TOPDIR)/config.mk LIB = $(obj)lib$(SOC).o SOBJS = lowlevel_init.o -COBJS += cpu_info.o board.o +COBJS += cpu_info.o board.o emac.o COBJS-$(CONFIG_GLOBAL_TIMER) += timer.o COBJS-$(CONFIG_TMU_TIMER) += timer_tmu.o COBJS-$(CONFIG_SH73A0) += pfc-sh73a0.o cpu_info-sh73a0.o diff --git a/arch/arm/cpu/armv7/rmobile/emac.c b/arch/arm/cpu/armv7/rmobile/emac.c new file mode 100644 index 0000000..da5269e --- /dev/null +++ b/arch/arm/cpu/armv7/rmobile/emac.c @@ -0,0 +1,36 @@ +/* + * RMOBILE EtherMAC initialization. + * + * Copyright (C) 2012 Renesas Solutions Corp. + * Copyright (C) 2012 Nobuhiro Iwamatsu + * + * See file CREDITS for list of people who contributed to this + * project. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc. + */ + +#include +#include +#include + +int cpu_eth_init(bd_t *bis) +{ + int ret = -ENODEV; +#ifdef CONFIG_SH_ETHER + ret = sh_eth_initialize(bis); +#endif + return ret; +}