From patchwork Wed Mar 26 17:56:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 334026 X-Patchwork-Delegate: promsoft@gmail.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 29D45140085 for ; Thu, 27 Mar 2014 04:57:21 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8076A4B630; Wed, 26 Mar 2014 18:57:19 +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 jTmjpNjt6Ir9; Wed, 26 Mar 2014 18:57:19 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 435284B5FF; Wed, 26 Mar 2014 18:57:12 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6401B4B605 for ; Wed, 26 Mar 2014 18:57:07 +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 Lth0uq1q0Axj for ; Wed, 26 Mar 2014 18:57:04 +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-pb0-f73.google.com (mail-pb0-f73.google.com [209.85.160.73]) by theia.denx.de (Postfix) with ESMTPS id 3FB904B5FF for ; Wed, 26 Mar 2014 18:57:00 +0100 (CET) Received: by mail-pb0-f73.google.com with SMTP id rp16so291667pbb.4 for ; Wed, 26 Mar 2014 10:56:59 -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:mime-version:content-type:content-transfer-encoding; bh=sdmbHaH2DZcbRV2NtCwFXgO/BQQj7gtTMJx/deH5eV8=; b=nE91qYBLn/W+O05pwV98bptmDJvcj2N1iwvubsVtczk6tDyu919ox19SXGn00Dp0ix dQU8sl39k1d6iSMlPX6BmH+1wgSKjtNIYZqueaWQZhNN9mLEhxASXeq/Qgqi5h/bwJYu lebtWp7pJkHJ+/3FG+SOpveEQUaDtR6wEq0udM6TDW3hLhErjh5sXJMKVHZFl+yeLcQz yte/jVQA1dV6Ok41z5jFa/wOMxGWAFwzPJuqazm8GIbPgULr1YFdTnjs8GnqaYbPik+0 c6U7iBaAUT4TtQMDwVJAsWfxBZd/Zsd967aEzYU/iFHmGcff27Ai6kzbLVVD8XW9SMub H/3Q== X-Gm-Message-State: ALoCoQnrPKPYIkNJpFMEY6UdztNHb2lkdzIp194B3Pq2bmroX8nPfR+pXqZ4zM8hoNtdF1kOhtERih/i4KG9G4/Pof3VsaFk4a/LRX78PtBW+uKdUN+hJu+X0m57gVTBtQFVFYS6hRw2vfFFUhBAu0T58gD+I9hLd19S99KJdcY0sR///vrQ339ePQ7eO9BRfPw6JI5mmY8X X-Received: by 10.66.122.69 with SMTP id lq5mr2136001pab.17.1395856619361; Wed, 26 Mar 2014 10:56:59 -0700 (PDT) Received: from corp2gmr1-2.hot.corp.google.com (corp2gmr1-2.hot.corp.google.com [172.24.189.93]) by gmr-mx.google.com with ESMTPS id g21si3152629yhe.3.2014.03.26.10.56.59 for (version=TLSv1.1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 26 Mar 2014 10:56:59 -0700 (PDT) Received: from kaki.bld.corp.google.com (kaki.bld.corp.google.com [172.29.216.32]) by corp2gmr1-2.hot.corp.google.com (Postfix) with ESMTP id 3478A5A4217; Wed, 26 Mar 2014 10:56:59 -0700 (PDT) Received: by kaki.bld.corp.google.com (Postfix, from userid 121222) id D775F221C9A; Wed, 26 Mar 2014 11:56:58 -0600 (MDT) From: Simon Glass To: =?UTF-8?q?=C5=81ukasz=20Majewski?= , U-Boot Mailing List Date: Wed, 26 Mar 2014 11:56:25 -0600 Message-Id: <1395856590-21917-6-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 1.9.1.423.g4596e3a In-Reply-To: <1395856590-21917-1-git-send-email-sjg@chromium.org> References: <1395856590-21917-1-git-send-email-sjg@chromium.org> MIME-Version: 1.0 Cc: Aaron Durbin , u-boot-review@google.com, Rajeshwari Shinde , Tom Rini Subject: [U-Boot] [PATCH 05/10] exynos5: support tps65090 pmic 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 From: Aaron Durbin The TSP65090 is a PMIC on some exynos5 boards. The init function is called for the TPS65090 pmic. If that device is not a part of the device tree (returns -ENODEV) then continue. Otherwise return a failure. Signed-off-by: Aaron Durbin Signed-off-by: Simon Glass Reviewed-by: Simon Glass Acked-by: Lukasz Majewski --- board/samsung/common/board.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/board/samsung/common/board.c b/board/samsung/common/board.c index 3866495..654bdb6 100644 --- a/board/samsung/common/board.c +++ b/board/samsung/common/board.c @@ -23,6 +23,7 @@ #include #include #include +#include DECLARE_GLOBAL_DATA_PTR; @@ -261,6 +262,12 @@ int power_init_board(void) ret = max77686_init(); #endif + /* The TPS65090 may not be in the device tree. If so, it is not + * an error. */ + ret = tps65090_init(); + if (ret == 0 || ret == -ENODEV) + return 0; + return ret; } #endif