From patchwork Mon Dec 31 16:32:40 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilya Yanok X-Patchwork-Id: 208882 X-Patchwork-Delegate: trini@ti.com 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 C3F372C00A9 for ; Tue, 1 Jan 2013 03:38:39 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id BAFA54A018; Mon, 31 Dec 2012 17:38:36 +0100 (CET) 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 TlGTDf0ffKpk; Mon, 31 Dec 2012 17:38:36 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id AD2EC4A019; Mon, 31 Dec 2012 17:38:34 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 06C5A4A019 for ; Mon, 31 Dec 2012 17:38:33 +0100 (CET) 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 DiTk1clwSi8d for ; Mon, 31 Dec 2012 17:38:32 +0100 (CET) X-Greylist: delayed 337 seconds by postgrey-1.27 at theia; Mon, 31 Dec 2012 17:38:30 CET 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-la0-f48.google.com (mail-la0-f48.google.com [209.85.215.48]) by theia.denx.de (Postfix) with ESMTPS id 0DE534A018 for ; Mon, 31 Dec 2012 17:38:30 +0100 (CET) Received: by mail-la0-f48.google.com with SMTP id ej20so4040503lab.21 for ; Mon, 31 Dec 2012 08:38:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=hy6FYMPt8eJjsMsjFm4fTdZymXbvXbGXsRX1x0zqk3A=; b=m256adycKvO2os5rhsdgpUHYmq+z0dgzGeRJyaRLYAF8mowtREF8+Ig5YNRGmj0RZs +U0Q+i9UA1VHZjQzO+Xo5imtpzfna8qBfkDuT28Vv3qFbCf1afJj/wm71ELbASTO9ldm bB2Pj4e7qoVMm6V6YfiJJV2/i29aD1D5StEvrSY3uopSa8YddjKu5K1CjvC/aQrh/iyX CSP31CVHDYUgAW/hI5oAZmrs6IAA7hrGYGX4DvC5MpDoPhrmNm2dfSJTcukmOP1fp8sV p5U79XZ4uNaIncO/7J1L2s6O4sKKiK+TEaC1kjULklrQQ1bIODDYW6HtZayUVEn8owBR ShzA== X-Received: by 10.152.106.163 with SMTP id gv3mr39040576lab.55.1356971576197; Mon, 31 Dec 2012 08:32:56 -0800 (PST) Received: from localhost.localdomain ([188.134.70.194]) by mx.google.com with ESMTPS id gr12sm15574996lab.3.2012.12.31.08.32.54 (version=SSLv3 cipher=OTHER); Mon, 31 Dec 2012 08:32:55 -0800 (PST) From: Ilya Yanok To: u-boot@lists.denx.de, Tom Rini Date: Mon, 31 Dec 2012 20:32:40 +0400 Message-Id: <1356971563-23478-3-git-send-email-ilya.yanok@cogentembedded.com> X-Mailer: git-send-email 1.8.0.2 In-Reply-To: <1356971563-23478-1-git-send-email-ilya.yanok@cogentembedded.com> References: <1356971563-23478-1-git-send-email-ilya.yanok@cogentembedded.com> X-Gm-Message-State: ALoCoQkxcTXnivZM796wghBZY0ookKmhGESlUnO0khnyyIj1NqyCmrphq+Vyx1s0m5bQZLPyaXbB Cc: Ilya Yanok Subject: [U-Boot] [PATCH 2/5] am33xx: support for booting via usbeth 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 patch adds BOOT_DEVICE define for USB booting and fixes spl_board_init function to call arch_misc_init (this is the place there musb is initialized). Signed-off-by: Ilya Yanok --- arch/arm/cpu/armv7/omap-common/boot-common.c | 3 +++ arch/arm/include/asm/arch-am33xx/spl.h | 1 + 2 files changed, 4 insertions(+) diff --git a/arch/arm/cpu/armv7/omap-common/boot-common.c b/arch/arm/cpu/armv7/omap-common/boot-common.c index 0f19141..99dc9d8 100644 --- a/arch/arm/cpu/armv7/omap-common/boot-common.c +++ b/arch/arm/cpu/armv7/omap-common/boot-common.c @@ -54,6 +54,9 @@ void spl_board_init(void) #ifdef CONFIG_SPL_NAND_SUPPORT gpmc_init(); #endif +#if defined(CONFIG_AM33XX) && defined(CONFIG_SPL_MUSB_NEW_SUPPORT) + arch_misc_init(); +#endif } int board_mmc_init(bd_t *bis) diff --git a/arch/arm/include/asm/arch-am33xx/spl.h b/arch/arm/include/asm/arch-am33xx/spl.h index 644ff35..e961ce0 100644 --- a/arch/arm/include/asm/arch-am33xx/spl.h +++ b/arch/arm/include/asm/arch-am33xx/spl.h @@ -29,6 +29,7 @@ #define BOOT_DEVICE_MMC2 9 /* eMMC or daughter card */ #define BOOT_DEVICE_SPI 11 #define BOOT_DEVICE_UART 65 +#define BOOT_DEVICE_USBETH 68 #define BOOT_DEVICE_CPGMAC 70 #define BOOT_DEVICE_MMC2_2 0xFF #endif