From patchwork Wed Apr 23 04:53:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Harvey X-Patchwork-Id: 341697 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 3E101140088 for ; Wed, 23 Apr 2014 14:54:32 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DDA204B164; Wed, 23 Apr 2014 06:54:29 +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 Kjue5PyN3ufF; Wed, 23 Apr 2014 06:54:29 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 919114B58F; Wed, 23 Apr 2014 06:54:24 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id F33ED4B5F1 for ; Wed, 23 Apr 2014 06:54:17 +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 2I-JM8Gv61hi for ; Wed, 23 Apr 2014 06:54:14 +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 mail-pa0-f53.google.com (mail-pa0-f53.google.com [209.85.220.53]) by theia.denx.de (Postfix) with ESMTPS id 6F2864B164 for ; Wed, 23 Apr 2014 06:54:10 +0200 (CEST) Received: by mail-pa0-f53.google.com with SMTP id ld10so370973pab.12 for ; Tue, 22 Apr 2014 21:54:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=EjI8MODyrBx3Ghx4xg54LFfxql55IqKvyQ1agL6dyb4=; b=gueYMCWd34noytK2JphbKGwLOYWxpObROJTGXeAy2Mx9QA9bL7aGXuc/+dp5CSF5OT uLkMNNrsiHaM178EX5awI7SCnE+VYYSnIKLdkQKOS2CYCiRhqvu4r6y6mwxpOpOkZLDO VF9f6n1v7n1cwSl96rOiA48nAe7mS1eVbXg0BnxdE4gtGAJWaUQRmKN5ekvA7nnuKkDG ZKYAC4eNCQL/Q+ZrMh63nAM7isKGZ3l0AJTUW0F/oPRrZFfyuDiinnYsD1CAp06w/3b0 YEuIiQOpSQAO71d4HC18iYtceZkQ6zNXoj1FOHONCoOtHKlXS2FY6NIAnWs+FaURncnO ImYw== X-Gm-Message-State: ALoCoQla0DRbspPqTawZONOSD9C7ZYdcE+t2UGSZMqSktc/3m8gFmRg4BdKdrs37LIGKl6kNW5qM X-Received: by 10.68.132.42 with SMTP id or10mr17129756pbb.80.1398228848740; Tue, 22 Apr 2014 21:54:08 -0700 (PDT) Received: from tharvey-gw.gw (68-189-91-139.static.snlo.ca.charter.com. [68.189.91.139]) by mx.google.com with ESMTPSA id vf7sm88662591pbc.5.2014.04.22.21.54.07 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 22 Apr 2014 21:54:07 -0700 (PDT) From: Tim Harvey To: Stefano Babic , Tom Rini Date: Tue, 22 Apr 2014 21:53:57 -0700 Message-Id: <1398228839-29780-3-git-send-email-tharvey@gateworks.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1398228839-29780-1-git-send-email-tharvey@gateworks.com> References: <1398228839-29780-1-git-send-email-tharvey@gateworks.com> Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH 2/4] ventana: use non-generic pfuze100 init 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 Signed-off-by: Tim Harvey --- board/gateworks/gw_ventana/gw_ventana.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/board/gateworks/gw_ventana/gw_ventana.c b/board/gateworks/gw_ventana/gw_ventana.c index c130e2c..48e90e0 100644 --- a/board/gateworks/gw_ventana/gw_ventana.c +++ b/board/gateworks/gw_ventana/gw_ventana.c @@ -1077,10 +1077,11 @@ int misc_init_r(void) } /* configure PFUZE100 PMIC (not used on all Ventana baseboards) */ - if ((board_type == GW54xx || board_type == GW54proto) && - !pmic_init(I2C_PMIC)) { + power_pfuze100_init(I2C_PMIC); + if (board_type == GW54xx || board_type == GW54proto) { struct pmic *p = pmic_get("PFUZE100_PMIC"); u32 reg; + if (p && !pmic_probe(p)) { pmic_reg_read(p, PFUZE100_DEVICEID, ®); printf("PMIC: PFUZE100 ID=0x%02x\n", reg);