From patchwork Tue Feb 5 21:36:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 218361 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 8509D2C02B9 for ; Wed, 6 Feb 2013 08:38:31 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A92E34A13A; Tue, 5 Feb 2013 22:38:27 +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 ABAeaD4+zQka; Tue, 5 Feb 2013 22:38:27 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7DCF94A13E; Tue, 5 Feb 2013 22:38:18 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1E7B44A122 for ; Tue, 5 Feb 2013 22:38:15 +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 76WZI-nG0sgY for ; Tue, 5 Feb 2013 22:38:12 +0100 (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-ye0-f179.google.com (mail-ye0-f179.google.com [209.85.213.179]) by theia.denx.de (Postfix) with ESMTPS id 073684A124 for ; Tue, 5 Feb 2013 22:38:09 +0100 (CET) Received: by mail-ye0-f179.google.com with SMTP id m4so204082yen.10 for ; Tue, 05 Feb 2013 13:38:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=tu+OsGOI0EMFGGyGM5R5f9PLGe05CXQ4YbcWjU9OxTA=; b=R43yxxXyRAebJgnKyci2MXWqE/g1UguHewpxAcwZSn3B8uiQeAbmiI6EY93RsDOThX lYaJ14PXyEQo4KumR2GLpLr76mIrgS6GUW/RcCXUqf56g9pavV8a00FIUQtVpoBjTUuy muCaHnfxDU6MGZZfW3/1HKSmUChVlSOp/QFSvwAiZoX+2BlTSVl69BKw+isnn8RnMIH3 bNl99A35F04cWdHvHz1aR+QRgUicj70Rq7YofxRRPvHEFVNMnli6BYn+Znr4AVzXiBHT hlCurE5849bVSjzfgm3iYD0SjWqcVBcQiwaruWtSmV2/inc7YPkp8dYKd5XiEUfUjowd 49EQ== X-Received: by 10.100.76.8 with SMTP id y8mr9132423ana.41.1360100288328; Tue, 05 Feb 2013 13:38:08 -0800 (PST) Received: from localhost.localdomain (cpe-065-184-250-089.ec.res.rr.com. [65.184.250.89]) by mx.google.com with ESMTPS id s34sm16367047yhe.9.2013.02.05.13.38.07 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 05 Feb 2013 13:38:07 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Date: Tue, 5 Feb 2013 16:36:25 -0500 Message-Id: <1360100186-19149-3-git-send-email-trini@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1360100186-19149-1-git-send-email-trini@ti.com> References: <1360100186-19149-1-git-send-email-trini@ti.com> Cc: Ilya Yanok Subject: [U-Boot] [PATCH v2 2/3] 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 From: Ilya Yanok 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 2b584e0..1c8b617 100644 --- a/arch/arm/cpu/armv7/omap-common/boot-common.c +++ b/arch/arm/cpu/armv7/omap-common/boot-common.c @@ -55,6 +55,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