From patchwork Thu Jun 14 10:45:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ley Foon Tan X-Patchwork-Id: 929210 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=none dis=none) header.from=intel.com Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 415nzr0wNZz9s01 for ; Thu, 14 Jun 2018 12:45:42 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 6DD00C21DC1; Thu, 14 Jun 2018 02:45:35 +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=none 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 CFFE9C21C6A; Thu, 14 Jun 2018 02:45:32 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 3A9B9C21C6A; Thu, 14 Jun 2018 02:45:32 +0000 (UTC) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lists.denx.de (Postfix) with ESMTPS id 9528FC21BE5 for ; Thu, 14 Jun 2018 02:45:30 +0000 (UTC) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Jun 2018 19:45:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,221,1526367600"; d="scan'208";a="63009256" Received: from lftan-mobl.gar.corp.intel.com (HELO ubuntu) ([10.226.248.78]) by fmsmga004.fm.intel.com with SMTP; 13 Jun 2018 19:45:24 -0700 Received: by ubuntu (sSMTP sendmail emulation); Thu, 14 Jun 2018 18:45:24 +0800 From: Ley Foon Tan To: u-boot@lists.denx.de Date: Thu, 14 Jun 2018 18:45:18 +0800 Message-Id: <1528973123-21858-1-git-send-email-ley.foon.tan@intel.com> X-Mailer: git-send-email 2.7.4 Cc: Marek Vasut , Tom Rini , Joe Hershberger , Chin Liang See Subject: [U-Boot] [PATCH v6 0/5] drivers: Add reset ctrl to drivers 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: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Add reset ctrl to dwmmc socfpga, designware Ethernet and ns16550 serial drivers. A reset property is an optional feature, so only print out a warning and do not fail if a reset property is not present. If a reset property is discovered, then use it to deassert, thus bringing the IP out of reset. v6: - Include change history to patches and cover letter - Added Joe's Acked-by in designware emac patch. v5: https://patchwork.ozlabs.org/cover/924857/ - Rename CONFIG_SPL_RESET_SUPPORT to CONFIG_SPL_DM_RESET - Change to use CONFIG_IS_ENABLED(DM_RESET) in reset.h - Added Simon's Reviewed-by in dwmmc, 16550 serial and designware emac patches. v4: https://patchwork.ozlabs.org/cover/923883/ - Add patch to check CONFIG_SPL_RESET_SUPPORT in reset.h v3: https://patchwork.ozlabs.org/cover/910018/ - remove #ifdef CONFIG_DM_RESET switch - add maintainer emails v2: https://patchwork.ozlabs.org/cover/908667/ - remove 'return' in designware emac driver - keep reset control in socfpga_dw_mmc.c because it didn't call to common dwmmc probe function when in SPL. - add reviewed-by in ns16550 patch v1: https://patchwork.ozlabs.org/cover/905519/ Ley Foon Tan (5): reset: Rename CONFIG_SPL_RESET_SUPPORT to CONFIG_SPL_DM_RESET include: reset: Change to use CONFIG_IS_ENABLED(DM_RESET) mmc: dwmmc: socfpga: Add reset ctrl to driver serial: ns16550: Add reset ctrl to driver net: designware: Add reset ctrl to driver arch/arm/mach-stm32mp/Kconfig | 2 +- common/spl/Kconfig | 2 +- drivers/Makefile | 2 +- drivers/mmc/socfpga_dw_mmc.c | 17 +++++++++++++++++ drivers/net/designware.c | 8 ++++++++ drivers/serial/ns16550.c | 8 ++++++++ include/reset.h | 2 +- 7 files changed, 37 insertions(+), 4 deletions(-)