From patchwork Wed Nov 20 22:26:05 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 292879 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 116822C0094 for ; Thu, 21 Nov 2013 09:27:11 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0B5DF4A7CB; Wed, 20 Nov 2013 23:26:56 +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 sbtgs8fUu4wf; Wed, 20 Nov 2013 23:26:55 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 565AE4A7EC; Wed, 20 Nov 2013 23:26:46 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 469D64A723 for ; Wed, 20 Nov 2013 23:26:38 +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 8OA-6R4acBIr for ; Wed, 20 Nov 2013 23:26:32 +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-yh0-f54.google.com (mail-yh0-f54.google.com [209.85.213.54]) by theia.denx.de (Postfix) with ESMTPS id 505C84A7B0 for ; Wed, 20 Nov 2013 23:26:21 +0100 (CET) Received: by mail-yh0-f54.google.com with SMTP id a41so5170707yho.41 for ; Wed, 20 Nov 2013 14:26:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=tXjp+K8dz9QhDT0hog6HsinVlXTEUeBYuOoUnWbA/k8=; b=BBWlsebygMpkaorKJqH+lmsXoniAm+Qicqr5CWiytGf1cScjG3ZlpKYfovO8B90pDt Z8bG+Gh0DgpQxO2+lNXqa4UxAKUhVBFDMzyfXBaXwzskjmwekTV3s4lyAS3aumVqiN0r AIEexLh/aAny+d8qDY/DR0so7M16c/9t0JlpvGy4dkoDsyk3ENSFCA+KxdxrXtmieNVr DZcSBHKxD4Qi8kodBcrnuvHX/3FueKnOz+X5OJZ07xSpxk9ktXCG7v/MAvlg0mh6l+nh Vyakh6jTsDY0fkTgyzhN1kg2ngmNISVbRX+fxmlexF+onhIrw3+np6Y47kgrTf+7zld4 pr8A== X-Received: by 10.236.176.67 with SMTP id a43mr2645483yhm.68.1384986380403; Wed, 20 Nov 2013 14:26:20 -0800 (PST) Received: from localhost.localdomain ([177.194.40.144]) by mx.google.com with ESMTPSA id w8sm45241310yhg.8.2013.11.20.14.26.18 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 20 Nov 2013 14:26:19 -0800 (PST) From: Fabio Estevam To: sbabic@denx.de Date: Wed, 20 Nov 2013 20:26:05 -0200 Message-Id: <1384986366-14003-3-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1384986366-14003-1-git-send-email-festevam@gmail.com> References: <1384986366-14003-1-git-send-email-festevam@gmail.com> Cc: Fabio Estevam , u-boot@lists.denx.de Subject: [U-Boot] [PATCH 3/4] efikamx: Fix pmic_init() argument 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: Fabio Estevam On efikamx board the PMIC is connected via SPI interface, so it does not make sense to pass I2C_PMIC into the pmic_init() interface. Pass the SPI bus number via CONFIG_FSL_PMIC_BUS option instead. Signed-off-by: Fabio Estevam --- board/genesi/mx51_efikamx/efikamx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/genesi/mx51_efikamx/efikamx.c b/board/genesi/mx51_efikamx/efikamx.c index 76753f9..16769e5 100644 --- a/board/genesi/mx51_efikamx/efikamx.c +++ b/board/genesi/mx51_efikamx/efikamx.c @@ -159,7 +159,7 @@ static void power_init(void) struct pmic *p; int ret; - ret = pmic_init(I2C_PMIC); + ret = pmic_init(CONFIG_FSL_PMIC_BUS); if (ret) return;