From patchwork Fri Sep 26 08:25:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhao Qiang X-Patchwork-Id: 393568 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 8E02F140144 for ; Fri, 26 Sep 2014 18:26:12 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 376F14A036; Fri, 26 Sep 2014 10:26:11 +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 gqQf59UJfHTu; Fri, 26 Sep 2014 10:26:10 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E5C0A4A02A; Fri, 26 Sep 2014 10:26:07 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C263A4A02A for ; Fri, 26 Sep 2014 10:26:03 +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 6WIQtggmw0ft for ; Fri, 26 Sep 2014 10:26:00 +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 na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bon0110.outbound.protection.outlook.com [157.56.111.110]) by theia.denx.de (Postfix) with ESMTPS id 058F64A029 for ; Fri, 26 Sep 2014 10:25:57 +0200 (CEST) Received: from BY2PR03CA045.namprd03.prod.outlook.com (10.141.249.18) by BY2PR03MB160.namprd03.prod.outlook.com (10.242.36.22) with Microsoft SMTP Server (TLS) id 15.0.1034.13; Fri, 26 Sep 2014 08:25:54 +0000 Received: from BN1AFFO11FD027.protection.gbl (2a01:111:f400:7c10::187) by BY2PR03CA045.outlook.office365.com (2a01:111:e400:2c5d::18) with Microsoft SMTP Server (TLS) id 15.0.1039.15 via Frontend Transport; Fri, 26 Sep 2014 08:25:54 +0000 Received: from az84smr01.freescale.net (192.88.158.2) by BN1AFFO11FD027.mail.protection.outlook.com (10.58.52.87) with Microsoft SMTP Server (TLS) id 15.0.1029.15 via Frontend Transport; Fri, 26 Sep 2014 08:25:54 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id s8Q8Plah025748; Fri, 26 Sep 2014 01:25:51 -0700 From: Zhao Qiang To: , Date: Fri, 26 Sep 2014 16:25:33 +0800 Message-ID: <1411719933-12710-2-git-send-email-B45475@freescale.com> X-Mailer: git-send-email 2.1.0.27.g96db324 In-Reply-To: <1411719933-12710-1-git-send-email-B45475@freescale.com> References: <1411719933-12710-1-git-send-email-B45475@freescale.com> X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:CAL; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(189002)(199003)(81342003)(92726001)(93916002)(31966008)(50986999)(92566001)(81542003)(83072002)(79102003)(87936001)(62966002)(85852003)(87286001)(80022003)(46102003)(20776003)(4396001)(74502003)(95666004)(102836001)(89996001)(50226001)(47776003)(19580405001)(85306004)(64706001)(76482002)(6806004)(44976005)(83322001)(104016003)(106466001)(76176999)(105606002)(68736004)(229853001)(97736003)(77156001)(104166001)(36756003)(120916001)(77982003)(90102001)(74662003)(81156004)(107046002)(10300001)(19580395003)(88136002)(84676001)(50466002)(21056001)(48376002)(69596002)(99396003)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:BY2PR03MB160; H:az84smr01.freescale.net; FPR:; MLV:sfv; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Antispam: UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:BY2PR03MB160; X-Forefront-PRVS: 03468CBA43 Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=qiang.zhao@freescale.com; X-OriginatorOrg: freescale.com Cc: Zhao Qiang , R63061@freescale.com Subject: [U-Boot] [PATCH 4/4] qe: add qe support for ls1021a-twr board 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: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Signed-off-by: Zhao Qiang --- board/freescale/ls1021atwr/ls1021atwr.c | 7 +++++++ include/configs/ls1021atwr.h | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/board/freescale/ls1021atwr/ls1021atwr.c b/board/freescale/ls1021atwr/ls1021atwr.c index b522ff2..da09d6e 100644 --- a/board/freescale/ls1021atwr/ls1021atwr.c +++ b/board/freescale/ls1021atwr/ls1021atwr.c @@ -16,6 +16,9 @@ #include #include #include +#ifdef CONFIG_U_QE +#include "../../../drivers/qe/qe.h" +#endif DECLARE_GLOBAL_DATA_PTR; @@ -277,6 +280,10 @@ int board_init(void) config_serdes_mux(); #endif +#ifdef CONFIG_U_QE + u_qe_init(); +#endif + return 0; } diff --git a/include/configs/ls1021atwr.h b/include/configs/ls1021atwr.h index 45b2272..b09c2c7 100644 --- a/include/configs/ls1021atwr.h +++ b/include/configs/ls1021atwr.h @@ -48,6 +48,10 @@ #define CONFIG_SYS_HAS_SERDES +#if !defined(CONFIG_SDCARD) && !defined(CONFIG_NAND) && !defined(CONFIG_SPI) +#define CONFIG_U_QE +#endif + /* * IFC Definitions */ @@ -274,6 +278,8 @@ #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE /* start of monitor */ +#define CONFIG_SYS_QE_FW_ADDR 0x67f40000 + /* * Environment */