{"id":803870,"url":"http://patchwork.ozlabs.org/api/patches/803870/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/20170821072101.29375-10-lokeshvutla@ti.com/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/projects/18/?format=json","name":"U-Boot","link_name":"uboot","list_id":"u-boot.lists.denx.de","list_email":"u-boot@lists.denx.de","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20170821072101.29375-10-lokeshvutla@ti.com>","list_archive_url":null,"date":"2017-08-21T07:20:57","name":"[U-Boot,v2,09/13] board: ti: dra76-evm: Add support for powering on mmc ldo","commit_ref":null,"pull_url":null,"state":"accepted","archived":false,"hash":"5f32e0ecae56eda2f93ec795ebb22a1de0d150df","submitter":{"id":14145,"url":"http://patchwork.ozlabs.org/api/people/14145/?format=json","name":"Lokesh Vutla","email":"lokeshvutla@ti.com"},"delegate":{"id":3651,"url":"http://patchwork.ozlabs.org/api/users/3651/?format=json","username":"trini","first_name":"Tom","last_name":"Rini","email":"trini@ti.com"},"mbox":"http://patchwork.ozlabs.org/project/uboot/patch/20170821072101.29375-10-lokeshvutla@ti.com/mbox/","series":[],"comments":"http://patchwork.ozlabs.org/api/patches/803870/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/803870/checks/","tags":{},"related":[],"headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=ti.com header.i=@ti.com header.b=\"juP9wNb6\";\n\tdkim-atps=neutral"],"Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xbQTB1633z9t3F\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 21 Aug 2017 17:35:26 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid BAB58C21C26; Mon, 21 Aug 2017 07:32:30 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id B23B3C2212A;\n\tMon, 21 Aug 2017 07:25:54 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid 5FAF4C220D5; Mon, 21 Aug 2017 07:25:30 +0000 (UTC)","from lelnx193.ext.ti.com (lelnx193.ext.ti.com [198.47.27.77])\n\tby lists.denx.de (Postfix) with ESMTPS id 95345C22012\n\tfor <u-boot@lists.denx.de>; Mon, 21 Aug 2017 07:25:25 +0000 (UTC)","from dlelxv90.itg.ti.com ([172.17.2.17])\n\tby lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id v7L7PO20000414; \n\tMon, 21 Aug 2017 02:25:24 -0500","from DLEE106.ent.ti.com (dlee106.ent.ti.com [157.170.170.36])\n\tby dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id v7L7POid004064; \n\tMon, 21 Aug 2017 02:25:24 -0500","from DLEE107.ent.ti.com (157.170.170.37) by DLEE106.ent.ti.com\n\t(157.170.170.36) with Microsoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.845.34;\n\tMon, 21 Aug 2017 02:25:23 -0500","from dflp32.itg.ti.com (10.64.6.15) by DLEE107.ent.ti.com\n\t(157.170.170.37) with Microsoft SMTP Server (version=TLS1_0,\n\tcipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.845.34 via Frontend\n\tTransport; Mon, 21 Aug 2017 02:25:23 -0500","from a0131933.india.ti.com (ileax41-snat.itg.ti.com\n\t[10.172.224.153])\n\tby dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id v7L7P3Zj010673;\n\tMon, 21 Aug 2017 02:25:22 -0500"],"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,\n\tT_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com;\n\ts=ti-com-17Q1; t=1503300324;\n\tbh=Hmje8mDtkHqsSZDIoZAQF2jCHt2oLT2ErJDl3+xcuU0=;\n\th=From:To:CC:Subject:Date:In-Reply-To:References;\n\tb=juP9wNb6bv6VZ38SjWw0jf3k61WudtFMMYZwP1p34cFV6gBfNf6ZVLh7JgdZmePxL\n\tGqcxjukmxbNJ1q/T4SxfD5xm+PYUUPgq0jjmMTGIGPRqxRdpMSkfhN03d4IRu7P5xL\n\twiZidMdn2wuuHPqav5gjPalvcL61upUf9Bqx+cSc=","From":"Lokesh Vutla <lokeshvutla@ti.com>","To":"Tom Rini <trini@konsulko.com>, <u-boot@lists.denx.de>","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 <t-kristo@ti.com>","Subject":"[U-Boot] [PATCH v2 09/13] board: ti: dra76-evm: Add support for\n\tpowering on mmc ldo","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.18","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<http://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"base64","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>"},"content":"ldo4 is used to poweron mmc on dra76-evm. Enable it.\n\nReviewed-by: Tom Rini <trini@konsulko.com>\nSigned-off-by: Lokesh Vutla <lokeshvutla@ti.com>\n---\n board/ti/dra7xx/evm.c | 2 ++\n include/palmas.h      | 4 ++++\n 2 files changed, 6 insertions(+)","diff":"diff --git a/board/ti/dra7xx/evm.c b/board/ti/dra7xx/evm.c\nindex ad63abd759..87b7403070 100644\n--- a/board/ti/dra7xx/evm.c\n+++ b/board/ti/dra7xx/evm.c\n@@ -837,6 +837,8 @@ void board_mmc_poweron_ldo(uint voltage)\n \t\telse if (voltage == LDO_VOLT_1V8)\n \t\t\tvoltage = 0xa;\n \t\tlp873x_mmc1_poweron_ldo(voltage);\n+\t} else if (board_is_dra76x_evm()) {\n+\t\tpalmas_mmc1_poweron_ldo(LDO4_VOLTAGE, LDO4_CTRL, voltage);\n \t} else {\n \t\tpalmas_mmc1_poweron_ldo(LDO1_VOLTAGE, LDO1_CTRL, voltage);\n \t}\ndiff --git a/include/palmas.h b/include/palmas.h\nindex 404c2b3ca7..d366c98d22 100644\n--- a/include/palmas.h\n+++ b/include/palmas.h\n@@ -38,6 +38,10 @@\n #define LDO2_CTRL\t\t0x52\n #define LDO2_VOLTAGE\t\t0x53\n \n+/* LDO2 control/voltage */\n+#define LDO4_CTRL\t\t0x5e\n+#define LDO4_VOLTAGE\t\t0x5f\n+\n /* LDO9 control/voltage */\n #define LDO9_CTRL\t\t0x60\n #define LDO9_VOLTAGE\t\t0x61\n","prefixes":["U-Boot","v2","09/13"]}