From patchwork Mon Jan 28 06:45:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Faiz Abbas X-Patchwork-Id: 1031686 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; dmarc=fail (p=quarantine dis=none) header.from=ti.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="Vp2x/NwU"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 43p0SP71K8z9s6w for ; Mon, 28 Jan 2019 17:43:01 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 908E4C21E26; Mon, 28 Jan 2019 06:42:57 +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_BLOCKED, 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 E0AF5C21D8E; Mon, 28 Jan 2019 06:42:55 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 96825C21C29; Mon, 28 Jan 2019 06:42:54 +0000 (UTC) Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lists.denx.de (Postfix) with ESMTPS id F0496C21BE5 for ; Mon, 28 Jan 2019 06:42:53 +0000 (UTC) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x0S6gfRg025196; Mon, 28 Jan 2019 00:42:41 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1548657761; bh=+nbZMViLRAscSdTUE5N8886k6wf8vZgS0SoctKUgJpI=; h=From:To:CC:Subject:Date; b=Vp2x/NwUapJ7DAv41vGt6PEN1x6/udnFXMBss2o+6vNAXkZF28jdRoGRL5/98iW6B 36dP8S9tlSBn2AZSK/i9XUqo+CJaasf8K6pcyIu1G5C2sfp8VNT+bnlXXnaaglz2Ye XjTQVRiIPj0aIv1zzvj5KZ1khzKKJ5thRai+a6s0= Received: from DLEE110.ent.ti.com (dlee110.ent.ti.com [157.170.170.21]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x0S6gfQl090950 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 28 Jan 2019 00:42:41 -0600 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Mon, 28 Jan 2019 00:42:40 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Mon, 28 Jan 2019 00:42:40 -0600 Received: from a0230074-OptiPlex-7010.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 x0S6gbwx006819; Mon, 28 Jan 2019 00:42:37 -0600 From: Faiz Abbas To: Date: Mon, 28 Jan 2019 12:15:18 +0530 Message-ID: <20190128064531.3331-1-faiz_abbas@ti.com> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Cc: michal.simek@xilinx.com, sivadur@xilinx.com Subject: [U-Boot] [PATCH 00/13] Add Support for eMMC in AM65x-evm 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" Add Support for eMMC in TI's AM65x-evm. The series starts by syncing the sdhci0 node from the kernel. Then it adds APIs and changes to the driver required for handling the driver's integrated phy. The current maximum supported speed is DDR52. Higher speeds and tuning support will be added in a subsequent series. Support for booting from eMMC will also be added in subsequent patches. Tested on Lokesh's branch[1] as sysfw loading for AM65x is not yet upstream. [1] https://github.com/lokeshvutla/u-boot/tree/devel/am65x-evm-boot Faiz Abbas (13): arm64: dts: k3: Sync sdhci0 node from kernel mmc: am654_mmc: Change driver name mmc: am654_sdhci: Remove quirks regmap: Add API regmap_init_mem_index() regmap: Add support for polling on a register mmc: sdhci: Add support for sdhci-caps-mask mmc: sdhci: Make sdhci_set_clock() non static arm: dts: k3: Add phy specific properties to SD card node mmc: sdhci: Make set_ios_post() return int mmc: am654_sdhci: Add Support for PHY configs: am65x_evm: Enable CONFIG_REGMAP mmc: sdhci: Add support for HOST_CONTROL2 and setting UHS timings mmc: am654_sdhci: Add a platform specific set_control_reg() callback arch/arm/dts/k3-am65-main.dtsi | 22 ++ arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 40 +-- arch/arm/dts/k3-am654-base-board.dts | 28 ++ configs/am65x_evm_a53_defconfig | 4 +- configs/am65x_evm_r5_defconfig | 4 +- drivers/core/regmap.c | 42 +++ drivers/mmc/Kconfig | 9 +- drivers/mmc/Makefile | 2 +- drivers/mmc/am654_sdhci.c | 338 +++++++++++++++++++ drivers/mmc/k3_arsan_sdhci.c | 109 ------ drivers/mmc/sdhci.c | 51 ++- drivers/mmc/xenon_sdhci.c | 4 +- drivers/mmc/zynq_sdhci.c | 31 +- include/regmap.h | 36 ++ include/sdhci.h | 22 +- 15 files changed, 551 insertions(+), 191 deletions(-) create mode 100644 drivers/mmc/am654_sdhci.c delete mode 100644 drivers/mmc/k3_arsan_sdhci.c