From patchwork Wed Apr 13 17:13:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philippe REYNES X-Patchwork-Id: 1616869 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=softathome1.onmicrosoft.com header.i=@softathome1.onmicrosoft.com header.a=rsa-sha256 header.s=selector1-softathome1-onmicrosoft-com header.b=dD/VSJt6; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Kdq2b31Bkz9sGP for ; Thu, 14 Apr 2022 03:14:31 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1AF6E83E57; Wed, 13 Apr 2022 19:13:58 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=softathome.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=softathome1.onmicrosoft.com header.i=@softathome1.onmicrosoft.com header.b="dD/VSJt6"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A307483E40; Wed, 13 Apr 2022 19:13:51 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from FRA01-PR2-obe.outbound.protection.outlook.com (mail-pr2fra01on0627.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e18::627]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 932DA83E44 for ; Wed, 13 Apr 2022 19:13:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=softathome.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=philippe.reynes@softathome.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OEUx5110fppRG9XAfaWfR0rx5LHLCmpk9Vu2Hj3pkyv9WgsVoMNKFTWPhEyjtejDc9fEbJeAQGZ0R17pBqWHAus/X7lFy9Jihd2NRQUvLP685c+2Xw+pqv42bLRLdy91lKZAWdGT5gwbvc/7+QP9PtV66hCh+1QcL4c7VixGBCu68D7+BoqDUg8PqbPV5Qc8ie/JvQOMTV4drd8sw2EWUoX4KcQiKtzmuEqh9ycvQv9kuWnMiLrpIZCOgOzZM4ewidFI/WuzXYXhoHZ326g34S68t+I5d5EkZrgGepVxno3BZ/+Rlu/nI9PCWpCtWb+h6SYGDhrt0+4KIHiKiBCaBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=6rLcEJPyi7E2YmYe1MOjc8ZTN3XOYO1Q3ks/QXW2sCA=; b=ZXivLVCVPOE2s/DkCAh/PZ2q3NjaVOnkzPDorsLRS1JqmoiEv/q7ebVhsFAokAh/CvCGaUsW+WmrSFSe0JsdwUACzYnWecG1mlLHjixxZdfkjHaoHzlrKejcmacwdSQ2i4anF1oxEWdE2xP/wMuusvXYAsDYjJHrm/TjbrEorFRO654429YWN6kpU/dzoO1VYPPKEs4yFTaHcSZ9tsfCDcOE4Anft2mdNaj3WULrZ6NE3TfhdrTY4ti5zuM7V3+VFPOpsVAcqjqKGof1rOaqWJad6p/r1oakMEJpSl1LX9ehKbVfYmq9eR70CodvcQEOFJE5/uyXF/hevDp1UJj0cA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.6.166.170) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=softathome.com; dmarc=bestguesspass action=none header.from=softathome.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=softathome1.onmicrosoft.com; s=selector1-softathome1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6rLcEJPyi7E2YmYe1MOjc8ZTN3XOYO1Q3ks/QXW2sCA=; b=dD/VSJt6bFSRpkEF1SgeZGPJN2+aVncpYDfIXLvYM7c6pZK8OIpiUCAXJUUH1zWTh33ZfEc8Rdh8dYZJF04f4X/XXXAZ7DOr9EJnsZ/889RAdCgkVZqVGNIIljNC43RmwrrBpi75UwHIB9lPQxIW4p85bGdZULVKQVfb75eIZLDEAjvHWQs2tgniJuu6Zat4YiwTsFSkZDP/x2JRa2re1U4W+oJ4SzOkSNgtd1Y48z0orglHzVn+9Y+6UkY5dsbkBwAoBV5AkmScEl8QWlXiCao1JbytyM4dpDe5rlxDTqobQb4mY1HyhODafXEwChDP/3N2iHYNnamgYrUVxpVctQ== Received: from MR2P264CA0028.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500::16) by PR0P264MB2156.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:16d::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.29; Wed, 13 Apr 2022 17:13:45 +0000 Received: from MR2FRA01FT009.eop-fra01.prod.protection.outlook.com (2603:10a6:500:0:cafe::78) by MR2P264CA0028.outlook.office365.com (2603:10a6:500::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.20 via Frontend Transport; Wed, 13 Apr 2022 17:13:45 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.6.166.170) smtp.mailfrom=softathome.com; dkim=none (message not signed) header.d=none;dmarc=bestguesspass action=none header.from=softathome.com; Received-SPF: Pass (protection.outlook.com: domain of softathome.com designates 149.6.166.170 as permitted sender) receiver=protection.outlook.com; client-ip=149.6.166.170; helo=proxy.softathome.com; Received: from proxy.softathome.com (149.6.166.170) by MR2FRA01FT009.mail.protection.outlook.com (10.152.50.175) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.19 via Frontend Transport; Wed, 13 Apr 2022 17:13:44 +0000 Received: from sah1lpt571.softathome.com (unknown [192.168.75.67]) by proxy.softathome.com (Postfix) with ESMTPSA id 80F4520061; Wed, 13 Apr 2022 19:13:44 +0200 (CEST) From: Philippe Reynes To: peng.fan@nxp.com, jh80.chung@samsung.com Cc: u-boot@lists.denx.de, Philippe Reynes Subject: [PATCH 1/4] drivers: mmc: bcm63158_sdhci: initial support Date: Wed, 13 Apr 2022 19:13:40 +0200 Message-Id: <20220413171343.178153-2-philippe.reynes@softathome.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220413171343.178153-1-philippe.reynes@softathome.com> References: <20220413171343.178153-1-philippe.reynes@softathome.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ea4c841b-2f6d-496f-532c-08da1d70f74b X-MS-TrafficTypeDiagnostic: PR0P264MB2156:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: g95NeS/RKHH5e6SQV5Db9T4J3DBpzYzdmdkUcMLJjsKK+8/UWUNdtnIhIY9IQHKobut+meHXHI32L+fUDwlmMCK28AvMo/r89tCP1fp/80n7HMQ7l0WGYCFQhIAfxo3YX+nmzqPErqUktq8yXZtRRA91xTbE5uopP4Lk45XHYJVdN8QeR2akYKcWD3RcKnkIghYHVi45Lbc3wbWDRnElufT43H/dv66ZVMIMhgKiPqXMhpHBf1u5Dh1ieZDQmoS/l3ew7/LZAIby/VYBSUDgf+WshnBJ6hrggFVQpR7SRo56gY7+DnqxIMPPt+ZleTFKJk7ors0x9fdgVxYWM0jgZxJ45C378wFajOUt3twidngnwDQyanAO/TspVRMQZ4Y7AK0tOI/c9fDsmNlWSxT9bi4arHfrSDFZZu8rSefyJrmZDKVVMpv5eF677C0kgCfzkq+8QeL6Yp7xywVKXskue2Ad01gEWlvxqnh+YUqmEY07ZhuujyvcA/1IeZb5hzWxVGn/t7/uR9lVApcHeNQY3YZ025wiFdzsgT1xIqjOy6cU1tN1SeIBMUd3pMSc9i0JzX8NWnOdIcmicqoSlO6zxj00yIT1lFTMnrHrS4LyLOCnCvvipPrgCaCRE9ktLiifcVOAHd9F3j69gla04TIJX9RlRhQZx59l5tUMQPaqTQAsca/r1rOXEbCT+kkzvkYGZOU7ij84FftY+ncW99pJMQ== X-Forefront-Antispam-Report: CIP:149.6.166.170; CTRY:FR; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:proxy.softathome.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230001)(4636009)(46966006)(36840700001)(40470700004)(70206006)(40460700003)(36860700001)(1076003)(86362001)(186003)(6266002)(7696005)(36756003)(81166007)(356005)(508600001)(426003)(82960400001)(2906002)(26005)(82310400005)(8936002)(2616005)(70586007)(336012)(107886003)(44832011)(47076005)(316002)(6966003)(5660300002)(8676002)(6666004)(4326008)(83380400001)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: softathome.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Apr 2022 17:13:44.8016 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ea4c841b-2f6d-496f-532c-08da1d70f74b X-MS-Exchange-CrossTenant-Id: aa10e044-e405-4c10-8353-36b4d0cce511 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=aa10e044-e405-4c10-8353-36b4d0cce511; Ip=[149.6.166.170]; Helo=[proxy.softathome.com] X-MS-Exchange-CrossTenant-AuthSource: MR2FRA01FT009.eop-fra01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR0P264MB2156 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean Adds a driver to support shdci on bcm63158. Signed-off-by: Philippe Reynes --- drivers/mmc/Kconfig | 12 +++ drivers/mmc/Makefile | 1 + drivers/mmc/bcm63158_sdhci.c | 153 +++++++++++++++++++++++++++++++++++ 3 files changed, 166 insertions(+) create mode 100644 drivers/mmc/bcm63158_sdhci.c diff --git a/drivers/mmc/Kconfig b/drivers/mmc/Kconfig index f04cc44e19..a08e8245cf 100644 --- a/drivers/mmc/Kconfig +++ b/drivers/mmc/Kconfig @@ -520,6 +520,18 @@ config MMC_SDHCI_BCM2835 If unsure, say N. +config MMC_SDHCI_BCM63158 + bool "SDHCI support for the BCM63158 SD/MMC Controller" + depends on ARCH_BCM63158 + depends on MMC_SDHCI + help + This selects the BCM63158 SD/MMC controller. + + If you have a BCM63158 platform with SD or MMC devices, + say Y here. + + If unsure, say N. + config MMC_SDHCI_BCMSTB tristate "SDHCI support for the BCMSTB SD/MMC Controller" depends on MMC_SDHCI diff --git a/drivers/mmc/Makefile b/drivers/mmc/Makefile index 17ebc04203..5cebd55549 100644 --- a/drivers/mmc/Makefile +++ b/drivers/mmc/Makefile @@ -55,6 +55,7 @@ obj-$(CONFIG_MMC_SDHCI) += sdhci.o obj-$(CONFIG_MMC_SDHCI_ASPEED) += aspeed_sdhci.o obj-$(CONFIG_MMC_SDHCI_ATMEL) += atmel_sdhci.o obj-$(CONFIG_MMC_SDHCI_BCM2835) += bcm2835_sdhci.o +obj-$(CONFIG_MMC_SDHCI_BCM63158) += bcm63158_sdhci.o obj-$(CONFIG_MMC_SDHCI_BCMSTB) += bcmstb_sdhci.o obj-$(CONFIG_MMC_SDHCI_CADENCE) += sdhci-cadence.o obj-$(CONFIG_MMC_SDHCI_AM654) += am654_sdhci.o diff --git a/drivers/mmc/bcm63158_sdhci.c b/drivers/mmc/bcm63158_sdhci.c new file mode 100644 index 0000000000..42295d113d --- /dev/null +++ b/drivers/mmc/bcm63158_sdhci.c @@ -0,0 +1,153 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2022 Philippe Reynes + * + * based on: + * drivers/mmc/bcmstb_sdhci.c + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +/* 400KHz is max freq for card ID etc. Use that as min */ +#define MIN_FREQ 400000 + +#define BCM63158_MMC_BOOT_MAIN_CTL_REG 0x0 +#define BCM63158_MMC_BOOT_STATUS_REG 0x4 +#define BCM63158_MMC_BOOT_MODE_MASK 1 + +struct sdhci_bcm63158_plat { + struct mmc_config cfg; + struct mmc mmc; +}; + +static int sdhci_bcm63158_bind(struct udevice *dev) +{ + struct sdhci_bcm63158_plat *plat = dev_get_plat(dev); + + return sdhci_bind(dev, &plat->mmc, &plat->cfg); +} + +static int sdhci_bcm63158_set_normal_mode(void *boot_regs) +{ + void *boot_main_ctl_reg = boot_regs + BCM63158_MMC_BOOT_MAIN_CTL_REG; + void *boot_status_reg = boot_regs + BCM63158_MMC_BOOT_STATUS_REG; + u32 status; + int i, max_retry = 10; + int ret = -1; + + status = readl(boot_status_reg); + if ((status & BCM63158_MMC_BOOT_MODE_MASK) == 0) { + ret = 0; + goto out; + } + + clrbits_32(boot_main_ctl_reg, BCM63158_MMC_BOOT_MODE_MASK); + + for (i = 0; i < max_retry; i++) { + status = readl(boot_status_reg); + if ((status & BCM63158_MMC_BOOT_MODE_MASK) == 0) { + ret = 0; + goto out; + } + + mdelay(10); + } + + log_err("%s: can't set mode normal\n", __func__); + + out: + return ret; +} + +static int sdhci_bcm63158_probe(struct udevice *dev) +{ + struct mmc_uclass_priv *upriv = dev_get_uclass_priv(dev); + struct sdhci_bcm63158_plat *plat = dev_get_plat(dev); + struct sdhci_host *host = dev_get_priv(dev); + struct resource res; + void *boot_regs; + int ret; + + host->name = dev->name; + + /* Get sdhci controller base address */ + ret = dev_read_resource_byname(dev, "sdhci-base", &res); + if (ret) { + dev_err(dev, "can't get regs sdhci-base address(ret = %d)!\n", ret); + return ret; + } + + host->quirks |= SDHCI_QUIRK_WAIT_SEND_CMD; + host->ioaddr = devm_ioremap(dev, res.start, resource_size(&res)); + if (IS_ERR(host->ioaddr)) + return PTR_ERR(host->ioaddr); + + /* Get sdhci boot controller base address */ + ret = dev_read_resource_byname(dev, "sdhci-boot", &res); + if (ret) { + dev_err(dev, "can't get regs sdhci-boot address(ret = %d)!\n", ret); + return ret; + } + + boot_regs = devm_ioremap(dev, res.start, resource_size(&res)); + if (IS_ERR(boot_regs)) + return PTR_ERR(boot_regs); + + /* Set normal mode instead of boot mode */ + ret = sdhci_bcm63158_set_normal_mode(boot_regs); + if (ret) + return ret; + + ret = mmc_of_parse(dev, &plat->cfg); + if (ret) + return ret; + + /* + * see commit: + * 425d83346d7 ("mmc: bcm: fix uninitialized pointer deref on probe") + * + * Since commit + * 3d296365e4e8 ("mmc: sdhci: Add support for sdhci-caps-mask") + * the function sdhci_setup_cfg() xpects a valid sdhci_host mmc field. + */ + host->mmc = &plat->mmc; + host->mmc->dev = dev; + + /* Use default max frequency from caps register */ + ret = sdhci_setup_cfg(&plat->cfg, host, + 0, + MIN_FREQ); + if (ret) + return ret; + + upriv->mmc = &plat->mmc; + host->mmc = &plat->mmc; + host->mmc->priv = host; + + return sdhci_probe(dev); +} + +static const struct udevice_id sdhci_bcm63158_match[] = { + { .compatible = "brcm,bcm63158-sdhci" }, + { } +}; + +U_BOOT_DRIVER(sdhci_bcm63158) = { + .name = "sdhci-bcm63158", + .id = UCLASS_MMC, + .of_match = sdhci_bcm63158_match, + .ops = &sdhci_ops, + .bind = sdhci_bcm63158_bind, + .probe = sdhci_bcm63158_probe, + .priv_auto = sizeof(struct sdhci_host), + .plat_auto = sizeof(struct sdhci_bcm63158_plat), +}; From patchwork Wed Apr 13 17:13:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philippe REYNES X-Patchwork-Id: 1616868 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=softathome1.onmicrosoft.com header.i=@softathome1.onmicrosoft.com header.a=rsa-sha256 header.s=selector1-softathome1-onmicrosoft-com header.b=S0R/d+t6; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Kdq2K38gCz9sGP for ; Thu, 14 Apr 2022 03:14:17 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 213BF83E5F; Wed, 13 Apr 2022 19:13:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=softathome.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=softathome1.onmicrosoft.com header.i=@softathome1.onmicrosoft.com header.b="S0R/d+t6"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2570583E56; Wed, 13 Apr 2022 19:13:51 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from FRA01-PR2-obe.outbound.protection.outlook.com (mail-pr2fra01on0630.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e18::630]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2950383ABE for ; Wed, 13 Apr 2022 19:13:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=softathome.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=philippe.reynes@softathome.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LwwSWwLej/fTo77HWtM01mHRwOrzm7BUCbKOHKjF+eoiFfalXf1hORdJuqJnxx3BdV5KGbi7UJH0iPs495XrnQezVxu/oNmlS2ebnx7zmUQZQ7fH+hMd4LCzPj6UfE04kIgIrOibHTbcXMfjLCjF6bMtDh247gtRTgba+mOqRJEQ2ecCi7X/ChVkgUssBoRtx6kTfDx9Mk2omLuKHs4M/hzJs8BFlxx3w0SyWCmrFmRrXXlnwzE7RyU221GCDGlu25y6No1HbidTQtiqLQWTcjROu0vlteCakugtkynANEHzzH5gaAcF/B4wkbu50HG+zio0gNN4VJHS8JBJQKDj+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=D4uBqCzp0aru2TdSTpddFpYeioa/DySbrFPaR/Arhw0=; b=AMRwniCuYRuP05GAoYyJ9U+9JY2iqaK7KFq+n5UCea+H+zVBKRc5EBttlimWqNiRxhYLRjXRttpSV2kJ1qQ3pyg89wARzwaQMGZXyhNiBxTmlkyFd2KYNpAZm2v4OVHSWVgdbAV8njftDhqpWOHuSHr5lRYClczgL7dGHPieXS+Dbfd8+YqTknNHVW7pQWhJoKQxsQp1QLRYVf8KVizeXBDQ8aNiGB5+Z4afgKfggvU8SPS/K1w66ZchXSQoixZ2rlrXiQHgHlMSDNmqw7LBeZC6FDqTC8CatACUFjSKf/PB8BosoB7zGtVqYyjonbJKBK2uqeqEZbDx6aC95EC/Yw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.6.166.170) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=softathome.com; dmarc=bestguesspass action=none header.from=softathome.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=softathome1.onmicrosoft.com; s=selector1-softathome1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=D4uBqCzp0aru2TdSTpddFpYeioa/DySbrFPaR/Arhw0=; b=S0R/d+t69UEM5RpDVqoXxmhNPwt9CZab2fMaJDUPmV1KlQ4cQy+APD6XPB5pVW21AQwW7Q9IPL41yqiJVd496ktjmT6buCDtJZ6jWNVg9HJNA7XK+BMy7oVUG4h4TC/vB74bEfFwKfwV5iAz/Xdp10qQzSMBM0dYwzwq1JrkJLlHb0ulRcQtq4nNpJnIaEVApP3NHxrAjZ7/NwY9/WGgK7eZmLfD3qTe/qcUhNcnBA0TalKb64LR2QnNYZKPGBMaguzGX+4FBp2LUxAlLsX/icq7MLTS2nTmeNqYwDopn7HiqDgIxlVD5bBqRnSAGYRdu8kkvaqzpvMgMwvXCJ/2ww== Received: from PR1P264CA0036.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:19f::23) by PR0P264MB2405.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:1e0::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.29; Wed, 13 Apr 2022 17:13:44 +0000 Received: from PR2FRA01FT008.eop-fra01.prod.protection.outlook.com (2603:10a6:102:19f:cafe::5f) by PR1P264CA0036.outlook.office365.com (2603:10a6:102:19f::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.18 via Frontend Transport; Wed, 13 Apr 2022 17:13:44 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.6.166.170) smtp.mailfrom=softathome.com; dkim=none (message not signed) header.d=none;dmarc=bestguesspass action=none header.from=softathome.com; Received-SPF: Pass (protection.outlook.com: domain of softathome.com designates 149.6.166.170 as permitted sender) receiver=protection.outlook.com; client-ip=149.6.166.170; helo=proxy.softathome.com; Received: from proxy.softathome.com (149.6.166.170) by PR2FRA01FT008.mail.protection.outlook.com (10.152.48.101) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.19 via Frontend Transport; Wed, 13 Apr 2022 17:13:44 +0000 Received: from sah1lpt571.softathome.com (unknown [192.168.75.67]) by proxy.softathome.com (Postfix) with ESMTPSA id 85C3C20077; Wed, 13 Apr 2022 19:13:44 +0200 (CEST) From: Philippe Reynes To: peng.fan@nxp.com, jh80.chung@samsung.com Cc: u-boot@lists.denx.de, Philippe Reynes Subject: [PATCH 2/4] arch: arm: dts: bcm63158.dtsi: add mmc support Date: Wed, 13 Apr 2022 19:13:41 +0200 Message-Id: <20220413171343.178153-3-philippe.reynes@softathome.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220413171343.178153-1-philippe.reynes@softathome.com> References: <20220413171343.178153-1-philippe.reynes@softathome.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: edf0d687-466a-4cd6-fd13-08da1d70f732 X-MS-TrafficTypeDiagnostic: PR0P264MB2405:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: clL04XusbTtml5BkbXFF8PmudI44TOoM+eybq5qXv0VCNaSBf7rne5qb0vK0Ai0HN6MoLtwzaBaDznJObXfaYvEFSujskGu7snTK/x5QEVBM2dpXonEiiXS7kO7mdqyEn40+0pk+9ImP3/2KP84Pv6SmtsadJ7Ar5g8UKB0MQtXEDNT45ML3Tjm8k/KcHtZKxNfFOIEC3ocYXE0iEobKY7x7Vmdy8bGTCp4OYZcNOXCVZVT5Nq3/Vekb64b3S89qJT5s/5gCI9bckLV9tuhNnOpsZpjDNJdml02lZO4OHAPOQ0cayahr/A4yU/2OsLd+xSahb511+mb2tezv7TpZvD3JOL3CPfzC1yGnn+3zIQ7Zms9LcS32NJZOEWN/tOi9GkspLVSax2bMsPaClQSGQINVPUUHQflhKGtpFUUx/26IAMKZZhw3PWGFC417E2FDUTgqbvKUMTYOJys3ChcobDOOk76Pzx6rpMgVB8kiC/VqTbVCjDnoFSDxDuK6tf92H4aAg2czmF2lCU91XVLWu8tnJDHKEB4kEeu0MV5sQ416bQ4CbbjRifHDh5TPuWi8cyj8WjZj9YEyTv9e9I3DdjqLIp8N+5JTnEUbs8CgcaMLfX+aXUiq3l+hZormXvye1F14+f3sMAm8Bm8i5jRKHro0lHVxBCWY5G4dKuk6j/5YZxTbcMhvbs6SRO2zhC56uu7jfrngupyQgcgHtZgSCw== X-Forefront-Antispam-Report: CIP:149.6.166.170; CTRY:FR; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:proxy.softathome.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230001)(4636009)(36840700001)(40470700004)(46966006)(40460700003)(186003)(36860700001)(1076003)(2616005)(70206006)(81166007)(8676002)(508600001)(82960400001)(70586007)(4326008)(4744005)(44832011)(426003)(316002)(6966003)(356005)(82310400005)(5660300002)(83380400001)(336012)(107886003)(26005)(47076005)(86362001)(2906002)(7696005)(6666004)(6266002)(36756003)(8936002)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: softathome.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Apr 2022 17:13:44.6734 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: edf0d687-466a-4cd6-fd13-08da1d70f732 X-MS-Exchange-CrossTenant-Id: aa10e044-e405-4c10-8353-36b4d0cce511 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=aa10e044-e405-4c10-8353-36b4d0cce511; Ip=[149.6.166.170]; Helo=[proxy.softathome.com] X-MS-Exchange-CrossTenant-AuthSource: PR2FRA01FT008.eop-fra01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR0P264MB2405 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean Adds the support of sdhci on bcm63158. Signed-off-by: Philippe Reynes --- arch/arm/dts/bcm63158.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/dts/bcm63158.dtsi b/arch/arm/dts/bcm63158.dtsi index 7dd2858438..4e0f5f2dbd 100644 --- a/arch/arm/dts/bcm63158.dtsi +++ b/arch/arm/dts/bcm63158.dtsi @@ -229,5 +229,14 @@ status = "disabled"; }; + + sdhci: sdhci { + compatible = "brcm,bcm63158-sdhci"; + reg-names = "sdhci-base", "sdhci-boot"; + reg = <0x00000000 0xff810000 0x00000000 0x00000100>, + <0x00000000 0xff810200 0x00000000 0x00000040>; + bus-width = <0x00000008>; + no-1-8-v; + }; }; }; From patchwork Wed Apr 13 17:13:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philippe REYNES X-Patchwork-Id: 1616866 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=softathome1.onmicrosoft.com header.i=@softathome1.onmicrosoft.com header.a=rsa-sha256 header.s=selector1-softathome1-onmicrosoft-com header.b=OuOR2whS; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Kdq240wzSz9sGP for ; Thu, 14 Apr 2022 03:14:02 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4B31783DFE; Wed, 13 Apr 2022 19:13:49 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=softathome.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=softathome1.onmicrosoft.com header.i=@softathome1.onmicrosoft.com header.b="OuOR2whS"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8EA5283E56; Wed, 13 Apr 2022 19:13:48 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from FRA01-PR2-obe.outbound.protection.outlook.com (mail-pr2fra01on0624.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e18::624]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4263C83AE2 for ; Wed, 13 Apr 2022 19:13:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=softathome.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=philippe.reynes@softathome.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=F54JroJ0eU0gQdAHPA0b6uWSUIDinrBFfxrZmZQ18tgPDOKBBAm/W2Dd/cSAY3akAM7kOn+BExmrcf60+OAWeMuoftUZZ/5tjwL0GMb1UHCbF1SOBkzXEBaVpHLMT3ZuTdcjqs/6+CpE5pcLX9ct9Kb//0Ho8dSvdR0cCTAh63j2pmy4+jhYrrDbqkSiiewRStCmnNFqP/oUAEZ5RW9wV3k7al9yggyYfKezTz2EuF54NGPSR4Y5bkpKhiBpMXlJGipWBybckl2xWGJ3nsjj/sGj/Xd7Tt0TR0ANAHrE0v22aK/js3b2ecnjPxzjrxBtnIqRfmcQ5hkaOMbupUyOGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=PO3Be3FV7XoUp2aFGHw9H4p7pPSONfn8PeQ2NGKagLg=; b=aXb0sCFNo0dtdgecAx3lcYdKPSDoJisoT5ITdJ8KjFBHtlVhfJv4zjn+7fMA8m0cVkmHatXTJ+P/4ms7CTzUKz4QokBw/PeY7yo1gxUi9qux92oh2qTlvpqi9YoGMqnbBTSpg4kOzo+ThVUczoSpp/W7aMV6pU2yYio78C4GzBbBK9vERzxtAPrcyRsR/9hzVcnpg3W3hxkWss3y3uZPhbuH6yAZhkvGvFAp7NBdCKXdGMbJz875Agvwnq3uTgmRr4TZY1ROU+PfI02vJnAjNkZX261uvcvQn70a54D4uM+qljYKAhBFX1GDKoNievgr9HhSqn4BJhA5jCqLmN/z8g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.6.166.170) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=softathome.com; dmarc=bestguesspass action=none header.from=softathome.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=softathome1.onmicrosoft.com; s=selector1-softathome1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PO3Be3FV7XoUp2aFGHw9H4p7pPSONfn8PeQ2NGKagLg=; b=OuOR2whS1ciGwWETNfGzOttLAsi7tlYZBppt1GraEwZ9fpqF3+EskmHAwDgNjMLXAj824G3DKdA2bMQts3xTeEZKBZB28nPqpMUj7iDXvvFLQVaipOQ6JFmsXRnbEBFaFGc3Qnt6knjTds10lCSAbdJaNAoyUVd2d3fvW322ljHFCff/pKyivHtrE9xhG1bGjaUpoj5b2j9wH4PODZ3J66QsoEWuyUjsaVsmAtpvCVveyQmv4iDMHW+eW6ZcBbj8hHhpaIWqW8otFdBTd4a0p5ncCNzbGdQJWQRswDqg+pW0uJy8yJQThZ19INltTeglTo79jfB7MHd5aBCH1tT4hQ== Received: from PR3P192CA0012.EURP192.PROD.OUTLOOK.COM (2603:10a6:102:56::17) by PR1P264MB1901.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:1b2::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.29; Wed, 13 Apr 2022 17:13:44 +0000 Received: from PR2FRA01FT013.eop-fra01.prod.protection.outlook.com (2603:10a6:102:56:cafe::e7) by PR3P192CA0012.outlook.office365.com (2603:10a6:102:56::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.20 via Frontend Transport; Wed, 13 Apr 2022 17:13:44 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.6.166.170) smtp.mailfrom=softathome.com; dkim=none (message not signed) header.d=none;dmarc=bestguesspass action=none header.from=softathome.com; Received-SPF: Pass (protection.outlook.com: domain of softathome.com designates 149.6.166.170 as permitted sender) receiver=protection.outlook.com; client-ip=149.6.166.170; helo=proxy.softathome.com; Received: from proxy.softathome.com (149.6.166.170) by PR2FRA01FT013.mail.protection.outlook.com (10.152.48.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.19 via Frontend Transport; Wed, 13 Apr 2022 17:13:44 +0000 Received: from sah1lpt571.softathome.com (unknown [192.168.75.67]) by proxy.softathome.com (Postfix) with ESMTPSA id 92ECE2007F; Wed, 13 Apr 2022 19:13:44 +0200 (CEST) From: Philippe Reynes To: peng.fan@nxp.com, jh80.chung@samsung.com Cc: u-boot@lists.denx.de, Philippe Reynes Subject: [PATCH 3/4] arch: arm: dts: bcm963158.dts: enable sdhci support Date: Wed, 13 Apr 2022 19:13:42 +0200 Message-Id: <20220413171343.178153-4-philippe.reynes@softathome.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220413171343.178153-1-philippe.reynes@softathome.com> References: <20220413171343.178153-1-philippe.reynes@softathome.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2ec8f1aa-d3ba-42b7-0db5-08da1d70f743 X-MS-TrafficTypeDiagnostic: PR1P264MB1901:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zsP4aCM0ZuTgU1gEA6edObDTSNfNnIWN5WBSPui0+eRb+GQPZ3vlenr+gsWX3L2+5LFndk5ggxFpwd6IE4d6tNFka7n47OHoOcpFSfVd8kp7/UP/NN9W4nBnNGPJStGNVToOnRkix0GCREA/N8Kox+ycSflfekdzSXaNv5CZrfINOAYf6Hw5ZiJw+FvpACAuVJVthBejfP3VZVGXz84G5ErE0xdO4f/6DSbT/UM/F2cb2Pi8HZ3CFa4zaEksquE2DREMPOzFhcpU09O7ejNUxWjjX/REBGQMzx9xmy8wIOJ4Z8Vhj+jm81r5Ug3CNjmjSDjTJTmFVAGQiXXoN3wWxCJy00b0bsZKof0AzonJtYJEh8PvY2RMTPcQ1Xbh1QS2Kgi+YbgdZwOQ6VmQVWprJqxRBX4MSLYEwVopC833BiGaLPjQK2Bg+8rl2kuVDc9aAcpN/mAgyM/vcp/tpcfFiqnNDKIiFCn6JvYzQ5OHUXJKf0GjU0b295IjO7N/wGiLWAV/oIqUxYp7jcnIXFjz7+l4N503ld0pAnoWWjOu9sRTDi5VbiBmWRxuL+VIct8HCLhIE2Heg4j36UtySv6TtbaQuB+DROGTAPDs5CJ3+OlDVIz/ZkRPCcQkN9J+oxR9OMIFPnRqLDnT7SzhqIK9M6jNgK02PWnwis9Gou46SL4uY26aSE9StjBdeaO5raU50TaZZEvdgzhp2oWEafiA1A== X-Forefront-Antispam-Report: CIP:149.6.166.170; CTRY:FR; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:proxy.softathome.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230001)(4636009)(46966006)(36840700001)(40470700004)(2616005)(7696005)(82310400005)(8936002)(6966003)(82960400001)(6266002)(40460700003)(81166007)(86362001)(107886003)(4326008)(8676002)(36860700001)(70206006)(5660300002)(70586007)(2906002)(36756003)(1076003)(316002)(356005)(47076005)(4744005)(426003)(336012)(508600001)(186003)(26005)(44832011)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: softathome.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Apr 2022 17:13:44.7787 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2ec8f1aa-d3ba-42b7-0db5-08da1d70f743 X-MS-Exchange-CrossTenant-Id: aa10e044-e405-4c10-8353-36b4d0cce511 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=aa10e044-e405-4c10-8353-36b4d0cce511; Ip=[149.6.166.170]; Helo=[proxy.softathome.com] X-MS-Exchange-CrossTenant-AuthSource: PR2FRA01FT013.eop-fra01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR1P264MB1901 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean Enable the support of sdhci on bcm63158. Signed-off-by: Philippe Reynes --- arch/arm/dts/bcm963158.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/bcm963158.dts b/arch/arm/dts/bcm963158.dts index c2bdd33274..c96fa60841 100644 --- a/arch/arm/dts/bcm963158.dts +++ b/arch/arm/dts/bcm963158.dts @@ -137,3 +137,7 @@ spi-max-frequency = <25000000>; }; }; + +&sdhci { + status = "okay"; +}; From patchwork Wed Apr 13 17:13:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philippe REYNES X-Patchwork-Id: 1616867 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=softathome1.onmicrosoft.com header.i=@softathome1.onmicrosoft.com header.a=rsa-sha256 header.s=selector1-softathome1-onmicrosoft-com header.b=afhxNv6J; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Kdq2569Pfz9sGS for ; Thu, 14 Apr 2022 03:14:05 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2715983ABE; Wed, 13 Apr 2022 19:13:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=softathome.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=softathome1.onmicrosoft.com header.i=@softathome1.onmicrosoft.com header.b="afhxNv6J"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9EF7C83AE2; Wed, 13 Apr 2022 19:13:48 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from FRA01-PR2-obe.outbound.protection.outlook.com (mail-pr2fra01on0624.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e18::624]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2FA4183DFE for ; Wed, 13 Apr 2022 19:13:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=softathome.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=philippe.reynes@softathome.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JUlN+bR7YQn6io3raiRaKwHxHHXkaXapxv3C9gTUyPQFXlZq1D97dgvMOipwN2pmb//SnihvQgZJEEdpeYU4beHyuemQe0+jEHXrC8WgOuRukoLtZ0g430E/Y2Mf2NUdcdf1qQA9qRJ/9ip9d76lqBoaC2OiC1c/3NB0AInkY7bkVb/FEO8KJfS0Re7oyKSElTt1ojefMkzTcvkhmT+zC1QIrBZpBxgsMCRBNeGofcAatLipmOuuMD94AP6nyb3iZdH9mw14L2m/VQiwosApiKIZJ463/ID0UArKn0ke38ZB0uAmNMQk1vbfZnWCr5ADt7gxXU2h5xVT+9IH8yRU/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=HzoJTelKM66tcNnRDwnEPEkAOjwQ1MmSFAY15dsuW8g=; b=VPgYqiwGiH3UDWqTdKWuOWh7tZ0Ga/qFkrUoDIFbL6G4fYUhzDEwaL4K/sC5lSqhbSsHXQzYALaLDrUlX8SsssQyq5OxcKFbBnL9U3EZvcmLD43g/xi1XTZQOHIw4Mm1bfOMvLnr98AXgKHGqKFLM/M0JA7CGwIrLR4L51A9fErw48SeCtdnHCZIyturSKq13KlUHgXzHsjSUjGg/akNqv4sEDh3NQuykjnxtArNzptyeciPl3EhvHnGuVFQPXhOXSfs3S0GEHN2qWWw3zVCy8OvKb5MXXfoiMgxuyRbDVW7O/O0qU5rMgeccxhHl9ayQdhCkFu7DSrjuqrnTAGizQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.6.166.170) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=softathome.com; dmarc=bestguesspass action=none header.from=softathome.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=softathome1.onmicrosoft.com; s=selector1-softathome1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HzoJTelKM66tcNnRDwnEPEkAOjwQ1MmSFAY15dsuW8g=; b=afhxNv6JOfRiFlGbcaXS01oRYHkzzwrbMiptLHh3Vc8HivMEOExdFG7SdSVqg5SEsFqlSPZvUB5ITpjZ6eNuCDItlOOjtWp1e9ajTKj7ZvnDG8LyDT6ClaIEvXlonFab7IAtvYuOXrs0J0Y2m+qZNxYAPIMvSiBS07KaOVCUOd+OqFuZM++pBfk7yTg+R0Bf/KQBHqHi3nW7CfOpUxECCQ1CmnDfE9+wcdTuRM2GCfn4jYqbjacroh0mIOqWAb2Jwh32KP+fbNzXXjBoeE7+tNtyk64981sDyCFJAzT3YV7LdDZL/ZbNePzTmQnowZxRF+sR48O5YH9tdkHEoEc1DQ== Received: from PR1P264CA0030.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:19f::17) by PAZP264MB3574.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:112::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.19; Wed, 13 Apr 2022 17:13:44 +0000 Received: from PR2FRA01FT008.eop-fra01.prod.protection.outlook.com (2603:10a6:102:19f:cafe::46) by PR1P264CA0030.outlook.office365.com (2603:10a6:102:19f::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.20 via Frontend Transport; Wed, 13 Apr 2022 17:13:44 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.6.166.170) smtp.mailfrom=softathome.com; dkim=none (message not signed) header.d=none;dmarc=bestguesspass action=none header.from=softathome.com; Received-SPF: Pass (protection.outlook.com: domain of softathome.com designates 149.6.166.170 as permitted sender) receiver=protection.outlook.com; client-ip=149.6.166.170; helo=proxy.softathome.com; Received: from proxy.softathome.com (149.6.166.170) by PR2FRA01FT008.mail.protection.outlook.com (10.152.48.101) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.19 via Frontend Transport; Wed, 13 Apr 2022 17:13:44 +0000 Received: from sah1lpt571.softathome.com (unknown [192.168.75.67]) by proxy.softathome.com (Postfix) with ESMTPSA id A1FDF20084; Wed, 13 Apr 2022 19:13:44 +0200 (CEST) From: Philippe Reynes To: peng.fan@nxp.com, jh80.chung@samsung.com Cc: u-boot@lists.denx.de, Philippe Reynes Subject: [PATCH 4/4] configs: bcm963158_ram_defconfig: enable mmc and gpt support Date: Wed, 13 Apr 2022 19:13:43 +0200 Message-Id: <20220413171343.178153-5-philippe.reynes@softathome.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220413171343.178153-1-philippe.reynes@softathome.com> References: <20220413171343.178153-1-philippe.reynes@softathome.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1534abee-545c-4334-0f8c-08da1d70f746 X-MS-TrafficTypeDiagnostic: PAZP264MB3574:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: b65rCm5gehQfsCdi4FDlTnXF7CGCcyYXOTPckt2GO99PSUMVErC+HcctKyEYy4PpLOQTtTEgk2hArHN8AVwWgPDjIRFdThwcAitcUoj3Nc5iXJ4LOSTA58eIWUz/7N4vSydKhg72oovuq7t49B7qRQ5GB3tqq5kJVzHuTuy9dw2JU4jMg3LLUmeGZ52ekqTxp/gU2Ab2z4wwQ+pfm6yTeSCstmGV541bMNjfs99u/OdFtiEjWs3xTPqaygucX66ckX0EMwEoDp1/K4/BQk4cD4dc3W11IX+fFtr7Bi20/I904N9xmPTyQ4c+XThdIx6PSjl4ltOyBJxoRlIrQc/hcqTx3bfcC8NCjRXOXAokgZhgoPzhcEsuSe8uYG0HaUv66fsd3SREoxXgYe8TMnwfVjObcACS1EH7alMBjaEVO1XMtFCaOHpYCfwyF0jeiBNTo6nvIisaGYDq+BNL0HpZXUN4Ox2BlG0dBn50lTpu6WtNAZSrnLDPzqdCVd0l86X1jbb1QDHHJ2uy26MM4BXDfmtrYmpxkNm/1LnxLE8PxkxCleTPyCnNnp68GUcusEAgeQ7C+6ZADe3VFlfp1LheIKB8xgxfG1tX8m1hILXbtNfcpld68TbC8VidEcuAuNGRwfk0tiX2BGcM0plW4SqoyQo5TsbzuHZ7hL+Sj/20Uq7Ei71Ghu7Er6coFkKmJgJCc0A+Hz7q7aECdQ7SfrKaLw== X-Forefront-Antispam-Report: CIP:149.6.166.170; CTRY:FR; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:proxy.softathome.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230001)(4636009)(46966006)(36840700001)(40470700004)(40460700003)(2906002)(316002)(356005)(7696005)(107886003)(70586007)(6266002)(81166007)(2616005)(70206006)(1076003)(508600001)(86362001)(82960400001)(6966003)(8936002)(5660300002)(4326008)(8676002)(36860700001)(26005)(83380400001)(36756003)(47076005)(426003)(336012)(82310400005)(44832011)(186003)(4744005)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: softathome.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Apr 2022 17:13:44.7984 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1534abee-545c-4334-0f8c-08da1d70f746 X-MS-Exchange-CrossTenant-Id: aa10e044-e405-4c10-8353-36b4d0cce511 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=aa10e044-e405-4c10-8353-36b4d0cce511; Ip=[149.6.166.170]; Helo=[proxy.softathome.com] X-MS-Exchange-CrossTenant-AuthSource: PR2FRA01FT008.eop-fra01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAZP264MB3574 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean Enable the support of emmc and gpt on bcm63158 Signed-off-by: Philippe Reynes --- configs/bcm963158_ram_defconfig | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/configs/bcm963158_ram_defconfig b/configs/bcm963158_ram_defconfig index 642faf511f..5fc89fc99d 100644 --- a/configs/bcm963158_ram_defconfig +++ b/configs/bcm963158_ram_defconfig @@ -24,21 +24,23 @@ CONFIG_HUSH_PARSER=y # CONFIG_CMD_UNZIP is not set # CONFIG_CMD_FLASH is not set CONFIG_CMD_GPIO=y +CONFIG_CMD_GPT=y +CONFIG_CMD_GPT_RENAME=y +CONFIG_CMD_MMC=y CONFIG_CMD_MTD=y CONFIG_CMD_NAND=y CONFIG_CMD_CACHE=y CONFIG_DOS_PARTITION=y CONFIG_ISO_PARTITION=y -CONFIG_EFI_PARTITION=y CONFIG_SYS_RELOC_GD_ENV_ADDR=y # CONFIG_NET is not set -CONFIG_BLK=y CONFIG_CLK=y CONFIG_BCM6345_GPIO=y CONFIG_LED=y CONFIG_LED_BCM6858=y CONFIG_LED_BLINK=y -# CONFIG_MMC is not set +CONFIG_MMC_SDHCI=y +CONFIG_MMC_SDHCI_BCM63158=y CONFIG_MTD=y CONFIG_DM_MTD=y CONFIG_MTD_RAW_NAND=y