From patchwork Fri Oct 17 06:05:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikhil Badola X-Patchwork-Id: 400419 X-Patchwork-Delegate: yorksun@freescale.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 71FE61400A8 for ; Fri, 17 Oct 2014 17:06:12 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1A5F34B606; Fri, 17 Oct 2014 08:06:10 +0200 (CEST) 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 J3zc-rb583ir; Fri, 17 Oct 2014 08:06:09 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 548E84B608; Fri, 17 Oct 2014 08:06:09 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C42334B608 for ; Fri, 17 Oct 2014 08:06:04 +0200 (CEST) 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 Ji9NE4Mc3JVx for ; Fri, 17 Oct 2014 08:06:04 +0200 (CEST) X-Greylist: delayed 8615 seconds by postgrey-1.32 at theia; Fri, 17 Oct 2014 08:06:00 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 na01-by2-obe.outbound.protection.outlook.com (mail-by2on0142.outbound.protection.outlook.com [207.46.100.142]) by theia.denx.de (Postfix) with ESMTPS id 0B6C74B606 for ; Fri, 17 Oct 2014 08:05:59 +0200 (CEST) Received: from BN3PR0301CA0058.namprd03.prod.outlook.com (25.160.152.154) by BN1PR0301MB0596.namprd03.prod.outlook.com (25.160.170.23) with Microsoft SMTP Server (TLS) id 15.0.1049.19; Fri, 17 Oct 2014 06:05:56 +0000 Received: from BL2FFO11FD019.protection.gbl (2a01:111:f400:7c09::138) by BN3PR0301CA0058.outlook.office365.com (2a01:111:e400:401e::26) with Microsoft SMTP Server (TLS) id 15.0.1054.13 via Frontend Transport; Fri, 17 Oct 2014 06:05:56 +0000 Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11FD019.mail.protection.outlook.com (10.173.161.37) with Microsoft SMTP Server (TLS) id 15.0.1039.16 via Frontend Transport; Fri, 17 Oct 2014 06:05:55 +0000 Received: from localhost.ap.freescale.net (B46172-11.ap.freescale.net [10.232.40.247]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id s9H65ohM003292; Thu, 16 Oct 2014 23:05:54 -0700 From: Nikhil Badola To: Date: Fri, 17 Oct 2014 11:35:46 +0530 Message-ID: <1413525946-14503-1-git-send-email-nikhil.badola@freescale.com> X-Mailer: git-send-email 1.7.11.7 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:CAL; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(199003)(189002)(62966002)(76482002)(84676001)(50226001)(31966008)(19580405001)(89996001)(46102003)(50986999)(97736003)(87936001)(88136002)(6806004)(44976005)(4396001)(86362001)(85852003)(92566001)(104166001)(68736004)(92726001)(93916002)(50466002)(21056001)(48376002)(85306004)(20776003)(47776003)(87286001)(36756003)(76506005)(102836001)(80022003)(99396003)(26826002)(19580395003)(104016003)(120916001)(64706001)(33646002)(2351001)(95666004)(106466001)(77156001)(107046002)(110136001)(105606002)(229853001); DIR:OUT; SFP:1102; SCL:1; SRVR:BN1PR0301MB0596; H:tx30smr01.am.freescale.net; FPR:; MLV:ovrnspm; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:; MIME-Version: 1.0 X-Microsoft-Antispam: UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:BN1PR0301MB0596; X-Forefront-PRVS: 0367A50BB1 Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nikhil.badola@freescale.com; X-OriginatorOrg: freescale.com Subject: [U-Boot] [PATCH 1/2] drivers: usb: fsl: Define USB configs for LS102XA X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.13 Precedence: list List-Id: U-Boot discussion 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 Define USB configs for LS1021XA such as CONFIG_SYS_FSL_USB1_ADDR, CONFIG_USB_MAX_CONTROLLER_COUNT Signed-off-by: Nikhil Badola --- arch/arm/include/asm/arch-ls102xa/config.h | 4 ++++ include/usb/ehci-fsl.h | 3 +++ 2 files changed, 7 insertions(+) diff --git a/arch/arm/include/asm/arch-ls102xa/config.h b/arch/arm/include/asm/arch-ls102xa/config.h index a500b5b..cbf41da 100644 --- a/arch/arm/include/asm/arch-ls102xa/config.h +++ b/arch/arm/include/asm/arch-ls102xa/config.h @@ -25,7 +25,10 @@ #define CONFIG_SYS_NS16550_COM1 (CONFIG_SYS_IMMR + 0x011c0500) #define CONFIG_SYS_NS16550_COM2 (CONFIG_SYS_IMMR + 0x011d0500) #define CONFIG_SYS_DCU_ADDR (CONFIG_SYS_IMMR + 0x01ce0000) +#define CONFIG_SYS_LS102XA_USB1_ADDR \ + (CONFIG_SYS_IMMR + CONFIG_SYS_LS102XA_USB1_OFFSET) +#define CONFIG_SYS_LS102XA_USB1_OFFSET 0x07600000 #define CONFIG_SYS_TSEC1_OFFSET 0x01d10000 #define CONFIG_SYS_TSEC2_OFFSET 0x01d50000 #define CONFIG_SYS_TSEC3_OFFSET 0x01d90000 @@ -76,6 +79,7 @@ #define CONFIG_SYS_FSL_IFC_BANK_COUNT 8 #define CONFIG_NUM_DDR_CONTROLLERS 1 #define CONFIG_SYS_FSL_DDR_VER FSL_DDR_VER_5_0 +#define CONFIG_USB_MAX_CONTROLLER_COUNT 1 #else #error SoC not defined #endif diff --git a/include/usb/ehci-fsl.h b/include/usb/ehci-fsl.h index dd77ad6..897018b 100644 --- a/include/usb/ehci-fsl.h +++ b/include/usb/ehci-fsl.h @@ -163,6 +163,9 @@ #elif defined(CONFIG_MPC512X) #define CONFIG_SYS_FSL_USB1_ADDR CONFIG_SYS_MPC512x_USB1_ADDR #define CONFIG_SYS_FSL_USB2_ADDR 0 +#elif defined(CONFIG_LS102XA) +#define CONFIG_SYS_FSL_USB1_ADDR CONFIG_SYS_LS102XA_USB1_ADDR +#define CONFIG_SYS_FSL_USB2_ADDR 0 #endif /*