From patchwork Tue Nov 21 15:13:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Jacques Hiblot X-Patchwork-Id: 840092 X-Patchwork-Delegate: jh80.chung@samsung.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="Y5rj/2uR"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3yh8MB1s0Cz9s72 for ; Wed, 22 Nov 2017 02:16:54 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id D8F99C21DDF; Tue, 21 Nov 2017 15:15:31 +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 07558C21F9A; Tue, 21 Nov 2017 15:15:29 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 90A44C21F7E; Tue, 21 Nov 2017 15:14:24 +0000 (UTC) Received: from fllnx209.ext.ti.com (fllnx209.ext.ti.com [198.47.19.16]) by lists.denx.de (Postfix) with ESMTPS id 9DB27C21EE3 for ; Tue, 21 Nov 2017 15:14:20 +0000 (UTC) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id vALFDI0t020002; Tue, 21 Nov 2017 09:13:18 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1511277198; bh=9IvzeVFii0pzh1LWkUdkbOZopsnDbFGTp5M5KtDFkHE=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Y5rj/2uRCzenwhpgaUHMmx/0ZFtKZCq6RPSkD3z/j3uOjNpZBEfE4RdeHA9GKK1M3 J0cefwIlh+vuSSWaQugh78Khz/5GbCsDw5smf71rF8GEy6Uhk5EDh7gDgTY2mPJeIa cBl6Bjc1dxqvLXyveGyy9Df5b09e1UcpPZdNnzsM= Received: from DFLE106.ent.ti.com (dfle106.ent.ti.com [10.64.6.27]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id vALFDDkT006171; Tue, 21 Nov 2017 09:13:13 -0600 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.845.34; Tue, 21 Nov 2017 09:13:12 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.845.34 via Frontend Transport; Tue, 21 Nov 2017 09:13:12 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id vALFDBCQ024221; Tue, 21 Nov 2017 09:13:12 -0600 From: Jean-Jacques Hiblot To: , , , , Date: Tue, 21 Nov 2017 16:13:05 +0100 Message-ID: <1511277188-2923-3-git-send-email-jjhiblot@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1511277188-2923-1-git-send-email-jjhiblot@ti.com> References: <1511277188-2923-1-git-send-email-jjhiblot@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH 2/5] mmc: dm: support "mmc-ddr-1_2v" and "mmc-hs200-1_2v" boolean properties 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" Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Lukasz Majewski --- drivers/mmc/mmc-uclass.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/mmc/mmc-uclass.c b/drivers/mmc/mmc-uclass.c index 48fafce..9723129 100644 --- a/drivers/mmc/mmc-uclass.c +++ b/drivers/mmc/mmc-uclass.c @@ -161,8 +161,12 @@ int mmc_of_parse(const void *fdt, int node, struct mmc_config *cfg) cfg->host_caps |= MMC_CAP(UHS_DDR50); if (fdtdec_get_bool(fdt, node, "mmc-ddr-1_8v")) cfg->host_caps |= MMC_CAP(MMC_DDR_52); + if (fdtdec_get_bool(fdt, node, "mmc-ddr-1_2v")) + cfg->host_caps |= MMC_CAP(MMC_DDR_52); if (fdtdec_get_bool(fdt, node, "mmc-hs200-1_8v")) cfg->host_caps |= MMC_CAP(MMC_HS_200); + if (fdtdec_get_bool(fdt, node, "mmc-hs200-1_2v")) + cfg->host_caps |= MMC_CAP(MMC_HS_200); return 0; }