From patchwork Mon Aug 21 07:20:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lokesh Vutla X-Patchwork-Id: 803870 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="juP9wNb6"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3xbQTB1633z9t3F for ; Mon, 21 Aug 2017 17:35:26 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id BAB58C21C26; Mon, 21 Aug 2017 07:32:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id B23B3C2212A; Mon, 21 Aug 2017 07:25:54 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 5FAF4C220D5; Mon, 21 Aug 2017 07:25:30 +0000 (UTC) Received: from lelnx193.ext.ti.com (lelnx193.ext.ti.com [198.47.27.77]) by lists.denx.de (Postfix) with ESMTPS id 95345C22012 for ; Mon, 21 Aug 2017 07:25:25 +0000 (UTC) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id v7L7PO20000414; Mon, 21 Aug 2017 02:25:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1503300324; bh=Hmje8mDtkHqsSZDIoZAQF2jCHt2oLT2ErJDl3+xcuU0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=juP9wNb6bv6VZ38SjWw0jf3k61WudtFMMYZwP1p34cFV6gBfNf6ZVLh7JgdZmePxL GqcxjukmxbNJ1q/T4SxfD5xm+PYUUPgq0jjmMTGIGPRqxRdpMSkfhN03d4IRu7P5xL wiZidMdn2wuuHPqav5gjPalvcL61upUf9Bqx+cSc= Received: from DLEE106.ent.ti.com (dlee106.ent.ti.com [157.170.170.36]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id v7L7POid004064; Mon, 21 Aug 2017 02:25:24 -0500 Received: from DLEE107.ent.ti.com (157.170.170.37) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.845.34; Mon, 21 Aug 2017 02:25:23 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.845.34 via Frontend Transport; Mon, 21 Aug 2017 02:25:23 -0500 Received: from a0131933.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id v7L7P3Zj010673; Mon, 21 Aug 2017 02:25:22 -0500 From: Lokesh Vutla To: Tom Rini , Date: Mon, 21 Aug 2017 12:50:57 +0530 Message-ID: <20170821072101.29375-10-lokeshvutla@ti.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170821072101.29375-1-lokeshvutla@ti.com> References: <20170821072101.29375-1-lokeshvutla@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Cc: Tero Kristo Subject: [U-Boot] [PATCH v2 09/13] board: ti: dra76-evm: Add support for powering on mmc ldo X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" ldo4 is used to poweron mmc on dra76-evm. Enable it. Reviewed-by: Tom Rini Signed-off-by: Lokesh Vutla --- board/ti/dra7xx/evm.c | 2 ++ include/palmas.h | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/board/ti/dra7xx/evm.c b/board/ti/dra7xx/evm.c index ad63abd759..87b7403070 100644 --- a/board/ti/dra7xx/evm.c +++ b/board/ti/dra7xx/evm.c @@ -837,6 +837,8 @@ void board_mmc_poweron_ldo(uint voltage) else if (voltage == LDO_VOLT_1V8) voltage = 0xa; lp873x_mmc1_poweron_ldo(voltage); + } else if (board_is_dra76x_evm()) { + palmas_mmc1_poweron_ldo(LDO4_VOLTAGE, LDO4_CTRL, voltage); } else { palmas_mmc1_poweron_ldo(LDO1_VOLTAGE, LDO1_CTRL, voltage); } diff --git a/include/palmas.h b/include/palmas.h index 404c2b3ca7..d366c98d22 100644 --- a/include/palmas.h +++ b/include/palmas.h @@ -38,6 +38,10 @@ #define LDO2_CTRL 0x52 #define LDO2_VOLTAGE 0x53 +/* LDO2 control/voltage */ +#define LDO4_CTRL 0x5e +#define LDO4_VOLTAGE 0x5f + /* LDO9 control/voltage */ #define LDO9_CTRL 0x60 #define LDO9_VOLTAGE 0x61