From patchwork Thu Sep 11 02:25:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ye.Li" X-Patchwork-Id: 388019 X-Patchwork-Delegate: sbabic@denx.de 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 7800614011B for ; Thu, 11 Sep 2014 12:26:16 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B649CA7447; Thu, 11 Sep 2014 04:26:10 +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 uHTNeXiT6vdw; Thu, 11 Sep 2014 04:26:10 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id ACD6DA7467; Thu, 11 Sep 2014 04:26:07 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C08B8A744D for ; Thu, 11 Sep 2014 04:26:01 +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 tvp4eS5kVRtB for ; Thu, 11 Sep 2014 04:25:58 +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-bl2-obe.outbound.protection.outlook.com (mail-bl2on0140.outbound.protection.outlook.com [65.55.169.140]) by theia.denx.de (Postfix) with ESMTPS id 7EE30A7445 for ; Thu, 11 Sep 2014 04:25:43 +0200 (CEST) Received: from BN3PR0301CA0078.namprd03.prod.outlook.com (25.160.152.174) by BY2PR03MB362.namprd03.prod.outlook.com (10.242.237.15) with Microsoft SMTP Server (TLS) id 15.0.1024.12; Thu, 11 Sep 2014 02:25:30 +0000 Received: from BY2FFO11FD007.protection.gbl (2a01:111:f400:7c0c::126) by BN3PR0301CA0078.outlook.office365.com (2a01:111:e400:401e::46) with Microsoft SMTP Server (TLS) id 15.0.1024.12 via Frontend Transport; Thu, 11 Sep 2014 02:25:29 +0000 Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD007.mail.protection.outlook.com (10.1.14.128) with Microsoft SMTP Server (TLS) id 15.0.1019.14 via Frontend Transport; Thu, 11 Sep 2014 02:25:29 +0000 Received: from [tx30smr01.am.freescale.net ([10.192.185.5]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id s8B2PH5b013199; Wed, 10 Sep 2014 19:25:26 -0700 From: Ye.Li To: , Date: Thu, 11 Sep 2014 10:25:04 +0800 Message-ID: <1410402305-11945-3-git-send-email-B37916@freescale.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1410402305-11945-1-git-send-email-B37916@freescale.com> References: <1410402305-11945-1-git-send-email-B37916@freescale.com> 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)(189002)(199003)(4396001)(50226001)(104166001)(87286001)(104016003)(97736003)(95666004)(83072002)(87936001)(77096002)(36756003)(89996001)(84676001)(21056001)(85852003)(62966002)(88136002)(93916002)(105606002)(92566001)(229853001)(107046002)(92726001)(81342001)(81542001)(48376002)(26826002)(64706001)(80022001)(47776003)(77982001)(20776003)(106466001)(50466002)(46102001)(19580395003)(99396002)(19580405001)(102836001)(31966008)(90102001)(76176999)(44976005)(74662001)(79102001)(77156001)(6806004)(50986999)(83322001)(74502001)(76482001)(68736004)(85306004)(32563001); DIR:OUT; SFP:1102; SCL:1; SRVR:BY2PR03MB362; H:tx30smr01.am.freescale.net; FPR:; MLV:ovrnspm; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;UriScan:; X-Forefront-PRVS: 03319F6FEF 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=Ye.Li@freescale.com; X-OriginatorOrg: freescale.com Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH v2 3/4] imx: mx6sabresd: Add clear print for pfuze200 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 Add clear print log to show pfuze200 or pfuze100 found on mx6sabresd. Signed-off-by: Ye.Li --- Changes since v1: - None board/freescale/mx6sabresd/mx6sabresd.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/board/freescale/mx6sabresd/mx6sabresd.c b/board/freescale/mx6sabresd/mx6sabresd.c index 5f65f1b..72d6562 100644 --- a/board/freescale/mx6sabresd/mx6sabresd.c +++ b/board/freescale/mx6sabresd/mx6sabresd.c @@ -472,7 +472,8 @@ static int pfuze_init(void) return ret; pmic_reg_read(p, PFUZE100_DEVICEID, ®); - printf("PMIC: PFUZE100 ID=0x%02x\n", reg); + printf("PMIC: PFUZE%s ID=0x%02x\n", + ((reg & 0xf) == 0) ? "100" : "200", reg); /* Increase VGEN3 from 2.5 to 2.8V */ pmic_reg_read(p, PFUZE100_VGEN3VOL, ®);