From patchwork Thu Oct 12 04:48:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "J, KEERTHY" X-Patchwork-Id: 824696 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="U/z0rlhy"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3yCJKj5sPHz9s7B for ; Thu, 12 Oct 2017 15:49:28 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 6D6BCC21E6F; Thu, 12 Oct 2017 04:49:20 +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=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 7B430C21D92; Thu, 12 Oct 2017 04:49:18 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 7589CC21D92; Thu, 12 Oct 2017 04:49:17 +0000 (UTC) Received: from lelnx193.ext.ti.com (lelnx193.ext.ti.com [198.47.27.77]) by lists.denx.de (Postfix) with ESMTPS id C3171C21D82 for ; Thu, 12 Oct 2017 04:49:16 +0000 (UTC) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id v9C4nE3U006529; Wed, 11 Oct 2017 23:49:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1507783754; bh=SvVleOLdAmEd93hgGtpT72PsUino0Zd3QA7VnqP0FBc=; h=From:To:CC:Subject:Date; b=U/z0rlhymuJHR6LayIe8CjlW8ZjPVeuE6NOitJftpdNTm10eV6XMkZVH8P37mYDEQ 1XoYMVqT/hPvxaVRQgjUyeiJzw9Km4CSfbwbwnnR+4Se6zT3o4Rrwa4Rbai2oZm86p afpNnbwLSn0xbeFsTcwKGH+DPTMUtvsumOiqaUcI= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id v9C4nEmS019787; Wed, 11 Oct 2017 23:49:14 -0500 Received: from DFLE112.ent.ti.com (10.64.6.33) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.845.34; Wed, 11 Oct 2017 23:49:14 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.845.34 via Frontend Transport; Wed, 11 Oct 2017 23:49:14 -0500 Received: from ula0393675.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 v9C4nCVH027616; Wed, 11 Oct 2017 23:49:13 -0500 From: Keerthy To: , Date: Thu, 12 Oct 2017 10:18:45 +0530 Message-ID: <1507783725-5557-1-git-send-email-j-keerthy@ti.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Cc: t-kristo@ti.com, u-boot@lists.denx.de Subject: [U-Boot] [PATCH] board: ti: dra71x-evm: Hook LDO1 of LP8733 to EN_PIN 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" All regulators are hooked to EN_Pin at reset so that EN Pin controls their state. Hook the LDO1 regulator to EN pin which at reset is not hooked. This applies only to LP8733. Signed-off-by: Keerthy Reviewed-by: Tom Rini --- board/ti/dra7xx/evm.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/board/ti/dra7xx/evm.c b/board/ti/dra7xx/evm.c index 25ffdfb..441f14f 100644 --- a/board/ti/dra7xx/evm.c +++ b/board/ti/dra7xx/evm.c @@ -682,6 +682,13 @@ int board_late_init(void) omap_die_id_serial(); omap_set_fastboot_vars(); + + /* + * Hook the LDO1 regulator to EN pin. This applies only to LP8733 + * Rest all regulators are hooked to EN Pin at reset. + */ + if (board_is_dra71x_evm()) + palmas_i2c_write_u8(LP873X_I2C_SLAVE_ADDR, 0x9, 0x7); #endif return 0; }