From patchwork Wed Mar 13 16:48:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Goldschmidt X-Patchwork-Id: 1056141 X-Patchwork-Delegate: marek.vasut@gmail.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; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="igZiU5GU"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 44KHqj5Y9Rz9s3l for ; Thu, 14 Mar 2019 03:49:21 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 5D21CC22000; Wed, 13 Mar 2019 16:49:13 +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=FREEMAIL_FROM, 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 E8D68C22026; Wed, 13 Mar 2019 16:48:56 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 86627C21D72; Wed, 13 Mar 2019 16:48:55 +0000 (UTC) Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) by lists.denx.de (Postfix) with ESMTPS id 3654FC21C93 for ; Wed, 13 Mar 2019 16:48:55 +0000 (UTC) Received: by mail-wm1-f66.google.com with SMTP id e16so15624wme.1 for ; Wed, 13 Mar 2019 09:48:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=01ApVXCg8K9Wd88BJiLCwRsjkPNeKpjjTkcT7uf4g3M=; b=igZiU5GUQO8oiakI3HwGde67yTV27cuSHGNtTZ57SzO2A1K+mQSEsWvMJfiTEljU5D T2NCf9k/FFqmbxz2MeCP3A2Nr4EBYAD/jPjkn5JWIzclhyymqn8RgxS8zbkm4uaeEuNr 4aGimlq8ANm2S/1yjvxQExvF/5iQl6pgPjHksP89WxLkIwLgFQDz2rF+KS6FAVVHupYt RhPoIeeg8jgFzuLEffyeLRwj0d/VjqbKEV1D/W29pkZhmGm/iBoX3ZnfMjU+7sbcfoe3 Is4XvguInC8whIV+ix6FWps10PxFUEo/NZ7l2l1kez6Jq7++FgiHGbQiobPzkDt7uoyc bn5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=01ApVXCg8K9Wd88BJiLCwRsjkPNeKpjjTkcT7uf4g3M=; b=HMoZVD671q+1fbjs4v5PaOUmsz9jln3SJVnuZ295jL8tr1tTvPRxIYUGmeWs0uZSOB IKZzArajbeIPFfdlSbq07LCjo1z3SdFW36PbV1uV+8i0NdqW5YzmHybRw040lACRm6Jw PE5PAxsrq1Wbc8em/eVvOMV4PPq6RayZRL9D3Lg7ri6VUaFilWnKQ3jYQFS0xBU9TMIK aFQlDU0Qb4x0BW1Pb9iu1U9GKGyuktqth9dJo5F/32f0/sorrfwYmVud9BTJmWWh/JP3 SXYmbdFdon3MGHE0Jmf4gheDSjsmFztNf6Xpdi1oWaY1b8YdXyUr3lne0K61pigcT1P2 nRtA== X-Gm-Message-State: APjAAAXmCfbAUsr0mt5Lhkokd9ErfmpNWwa74WjLi8Heds8d5ygFy+m0 r8RQ5+a6+DSLHmuvhDI3iPU= X-Google-Smtp-Source: APXvYqxZn79CLjUNPN3Yt3+u8LTapHaO6d6JWw6PYlcNL+cBpkC7LMhBojWIFgn8BkgIuZLF9+7J4w== X-Received: by 2002:a1c:1f51:: with SMTP id f78mr2789064wmf.28.1552495734781; Wed, 13 Mar 2019 09:48:54 -0700 (PDT) Received: from ubuntu.home ([2a02:8071:6a3:700:a087:9044:6211:ba43]) by smtp.gmail.com with ESMTPSA id x24sm2509331wmi.5.2019.03.13.09.48.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Mar 2019 09:48:54 -0700 (PDT) From: Simon Goldschmidt To: Marek Vasut Date: Wed, 13 Mar 2019 17:48:36 +0100 Message-Id: <20190313164839.32296-2-simon.k.r.goldschmidt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190313164839.32296-1-simon.k.r.goldschmidt@gmail.com> References: <20190313164839.32296-1-simon.k.r.goldschmidt@gmail.com> Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH v2 1/4] i2c: designware: fix reset handling on socfpga gen5 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" Using this driver on socfpga gen5 with DM_I2C enabled leads to a data abort as the 'i2c' reset property cannot be found (the gen5 dtsi does not provide reset-names). The actual bug was to check 'if (&priv->reset_ctl)', which is never false. While at it, convert the driver to use 'reset_get_bulk' instead of looking at a specific named reset and also make it release the reset on driver remove before starting the OS. Fixes: 622597dee4f6 ("i2c: designware: add reset ctrl to driver") Signed-off-by: Simon Goldschmidt Reviewed-by: Heiko Schocher --- Changes in v2: None drivers/i2c/designware_i2c.c | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/drivers/i2c/designware_i2c.c b/drivers/i2c/designware_i2c.c index 63e40823f1..9ccc2411a6 100644 --- a/drivers/i2c/designware_i2c.c +++ b/drivers/i2c/designware_i2c.c @@ -34,7 +34,7 @@ static struct dw_scl_sda_cfg byt_config = { struct dw_i2c { struct i2c_regs *regs; struct dw_scl_sda_cfg *scl_sda_cfg; - struct reset_ctl reset_ctl; + struct reset_ctl_bulk resets; }; #ifdef CONFIG_SYS_I2C_DW_ENABLE_STATUS_UNSUPPORTED @@ -562,16 +562,22 @@ static int designware_i2c_probe(struct udevice *bus) priv->regs = (struct i2c_regs *)devfdt_get_addr_ptr(bus); } - ret = reset_get_by_name(bus, "i2c", &priv->reset_ctl); + ret = reset_get_bulk(bus, &priv->resets); if (ret) - pr_info("reset_get_by_name() failed: %d\n", ret); - - if (&priv->reset_ctl) - reset_deassert(&priv->reset_ctl); + dev_warn(bus, "Can't get reset: %d\n", ret); + else + reset_deassert_bulk(&priv->resets); return __dw_i2c_init(priv->regs, 0, 0); } +static int designware_i2c_remove(struct udevice *dev) +{ + struct dw_i2c *priv = dev_get_priv(dev); + + return reset_release_bulk(&priv->resets); +} + static int designware_i2c_bind(struct udevice *dev) { static int num_cards; @@ -613,6 +619,8 @@ U_BOOT_DRIVER(i2c_designware) = { .bind = designware_i2c_bind, .probe = designware_i2c_probe, .priv_auto_alloc_size = sizeof(struct dw_i2c), + .remove = designware_i2c_remove, + .flags = DM_FLAG_OS_PREPARE, .ops = &designware_i2c_ops, }; From patchwork Wed Mar 13 16:48:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Goldschmidt X-Patchwork-Id: 1056143 X-Patchwork-Delegate: marek.vasut@gmail.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; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="aOwbDAkH"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 44KHsh3BFDz9s3l for ; Thu, 14 Mar 2019 03:51:04 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id DB80FC2204C; Wed, 13 Mar 2019 16:49:49 +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=FREEMAIL_FROM, 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 B33C3C22053; Wed, 13 Mar 2019 16:49:08 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 29059C21FB9; Wed, 13 Mar 2019 16:49:00 +0000 (UTC) Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by lists.denx.de (Postfix) with ESMTPS id 73EEBC21FE1 for ; Wed, 13 Mar 2019 16:48:56 +0000 (UTC) Received: by mail-wm1-f65.google.com with SMTP id g20so2582434wmh.5 for ; Wed, 13 Mar 2019 09:48:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=n7vENZOmIgs1/1or/n2mu9B7xVRmZ80FWNITyQW98sA=; b=aOwbDAkHgdbArMrYQs201b2IWKrOTcApMixOdQlBVUomAgWZVMB5YWCrQVrf+tPT0b 2gVIoswHZP67qVFPxblIGs3u+IPn+BkdPZSvgcJq0mS5iAgdGxGlCkI7T4JLXaBCzTJs h/GlwuQKPJOSCfBwvYzwJOLYe6azkCEFYAzfGCYt53y1IEuWm8Xbg4oxh1NQNuWDZ5ni BOdnbh5OPoQhEWFVUKj3TxcqXcMPwsLLrpVJrXvMsrXo3DGhbW3N2pF0/ZTC3OU6oHYc i7xRHSOEJcsAStgxedqhWSQ3LObXyruRC5i2HVaWfl2K+tpmYQqvcYQEg7UiD67F/Bt8 FeGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=n7vENZOmIgs1/1or/n2mu9B7xVRmZ80FWNITyQW98sA=; b=ViBDVfsTyM3PFiKSY+BJb3boe2Kshy/C1hfeKf+5ZSe7mzoPu04T5b52YDp4X2luYX L4ypkS+ftV7QzdNvVtF4K96bby5jlalUh3/uKTHVe3HVb3egdJUNDyypTYYq4lomNZ2l D17FbnTaWWEflQY4x0MNECKl7iqFYhY8/DZUD5QO44I8HwvbM+UYdoH3b6CghZK9Oss/ 13ZsuoXSBNDCldicKO59kBtfGg2vUF9Nw7WBAzWzG0pOeQlbxLI+CtX8Ly4f68jOhfUd LLJZM5SY50QRhUaKNi4r6g3JPYZ+hdL2MFk+Blv13dI3CZGR/roBMWQwKGekq5xL06jy TAKQ== X-Gm-Message-State: APjAAAVEx9ynHOx98QGCi9tw+1i2mvktmiNf2yn1yCV3oE4wROwuXNCq kvLNFdL86LDlFgN4uURzyOo= X-Google-Smtp-Source: APXvYqxYNpQe/+4pZS/1oJ5tFceCbSEDzRhAejlazusrVao3Krw1yix+BAiq7bcqB0Wz8viVwlkvuQ== X-Received: by 2002:a1c:a007:: with SMTP id j7mr2830387wme.25.1552495736090; Wed, 13 Mar 2019 09:48:56 -0700 (PDT) Received: from ubuntu.home ([2a02:8071:6a3:700:a087:9044:6211:ba43]) by smtp.gmail.com with ESMTPSA id x24sm2509331wmi.5.2019.03.13.09.48.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Mar 2019 09:48:55 -0700 (PDT) From: Simon Goldschmidt To: Marek Vasut Date: Wed, 13 Mar 2019 17:48:37 +0100 Message-Id: <20190313164839.32296-3-simon.k.r.goldschmidt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190313164839.32296-1-simon.k.r.goldschmidt@gmail.com> References: <20190313164839.32296-1-simon.k.r.goldschmidt@gmail.com> Cc: Heinrich Schuchardt , Alexander Graf , u-boot@lists.denx.de, Stefan Roese Subject: [U-Boot] [PATCH v2 2/4] rtc: m41t62: add compatible for m41t82 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" This adds a compatible string for m41t82. This ensures that this driver can be used for m41t82 in DM mode, too (asit was usable for this model in non-DM mode before). In addition, the HT bit has to be reset during probe, since the m41t82 chip sets it when entering battery standby mode. This patch ensures this driver works on socfpga_socrates. Signed-off-by: Simon Goldschmidt --- Changes in v2: - m41t82: reset HT bit during probe drivers/rtc/m41t62.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/rtc/m41t62.c b/drivers/rtc/m41t62.c index 2ee7e00b02..6161b76712 100644 --- a/drivers/rtc/m41t62.c +++ b/drivers/rtc/m41t62.c @@ -155,6 +155,15 @@ static int m41t62_rtc_reset(struct udevice *dev) return ret; } +/* + * Make sure HT bit is cleared. This bit is set on entering battery backup + * mode, so do this before the first read access. + */ +static int m41t62_rtc_probe(struct udevice *dev) +{ + return m41t62_rtc_reset(dev); +} + static const struct rtc_ops m41t62_rtc_ops = { .get = m41t62_rtc_get, .set = m41t62_rtc_set, @@ -163,6 +172,7 @@ static const struct rtc_ops m41t62_rtc_ops = { static const struct udevice_id m41t62_rtc_ids[] = { { .compatible = "st,m41t62" }, + { .compatible = "st,m41t82" }, { .compatible = "microcrystal,rv4162" }, { } }; @@ -172,6 +182,7 @@ U_BOOT_DRIVER(rtc_m41t62) = { .id = UCLASS_RTC, .of_match = m41t62_rtc_ids, .ops = &m41t62_rtc_ops, + .probe = &m41t62_rtc_probe, }; #else /* NON DM RTC code - will be removed */ From patchwork Wed Mar 13 16:48:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Goldschmidt X-Patchwork-Id: 1056142 X-Patchwork-Delegate: marek.vasut@gmail.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; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="VMaUgrRy"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 44KHrd3XBKz9s4V for ; Thu, 14 Mar 2019 03:50:09 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 24844C22056; Wed, 13 Mar 2019 16:49: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=FREEMAIL_FROM, 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 59A47C2205F; Wed, 13 Mar 2019 16:49:08 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id DA298C21FB9; Wed, 13 Mar 2019 16:49:02 +0000 (UTC) Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by lists.denx.de (Postfix) with ESMTPS id 78FECC2205D for ; Wed, 13 Mar 2019 16:48:58 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id w2so2757943wrt.11 for ; Wed, 13 Mar 2019 09:48:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=oROeZ7eZWKSZaqXQfnUc0MqoU9IpcglShyKhkCZ0nDk=; b=VMaUgrRyWhuxoJ/e3aIAOUr2NGcdrQkBALum7HNjdbrX+mnN0j4xDeo1nH35+m/JXw WgcyDKzzkCXFeruhaRTu90TFB8mO4mvZ6NEZ/yrrHPocEgE8I/hKz9Qdj/8bhsqqY0W4 ots7gtTZ0nw+NtYtAC7UuADtuRY6pXP6Diiucu81FpXLomgsB/vbFDn6a/y46kS8rJ5P XdJWEKSExjoUBA5tfu2oHHtTcNKCZgpnFe/Y8P3+chwu7J0WW06hnN4RSev1hKq/E2iF ujrIpP4J9+yFxsPvx4yY3YGaXAnqr6mEy2AO9kMtnjuHG/HaakgIwm5212FrkcGr9/Al /grQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=oROeZ7eZWKSZaqXQfnUc0MqoU9IpcglShyKhkCZ0nDk=; b=cvI6Pm70DLkUApRJU6hw/Wjb+IJJZvtrgzqR61zHFkifMSuTHz0yZcGMT6ScjO0EYv DvqPrB/5LPTlyUlQOFRNrx2GXOhxymMdH1j09Rb+4ft9HcIfdh2XwRct+kOMhbjEccTI pufThDIx2guLgcaSWWv+QVcTYT7k51ZhgwQv+UxmG0gmTpDfyPg05hvP8GifN0knl/6N Q8FcMTUimoyX7WZvUslB7uWCbThwIvGRwSOGPPFEkhyT41sIiVQiTpywnMHcaUdr3r8k a3QCyWRu9MmKAeS+g0493NS4UueDLWSj9bQtphFyfmEO+vHC72iPJ8X3C9tQHDwOwTqH hQew== X-Gm-Message-State: APjAAAUo6txNQ7UfYx0ZPVpn4dtdCeUa80jh1OyCVCCkaesfQ+FxwXTC DmX6b8HD8YDfcJehpOFn/9M= X-Google-Smtp-Source: APXvYqwGjHt90XMcGm8/Mq9uPqsVzDDIT50qFvfryZz+0bBEtZjwsM30tRaNI9d6TYsnwTDoIyiGHg== X-Received: by 2002:a5d:4a8a:: with SMTP id o10mr8375209wrq.189.1552495738138; Wed, 13 Mar 2019 09:48:58 -0700 (PDT) Received: from ubuntu.home ([2a02:8071:6a3:700:a087:9044:6211:ba43]) by smtp.gmail.com with ESMTPSA id x24sm2509331wmi.5.2019.03.13.09.48.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Mar 2019 09:48:57 -0700 (PDT) From: Simon Goldschmidt To: Marek Vasut Date: Wed, 13 Mar 2019 17:48:38 +0100 Message-Id: <20190313164839.32296-4-simon.k.r.goldschmidt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190313164839.32296-1-simon.k.r.goldschmidt@gmail.com> References: <20190313164839.32296-1-simon.k.r.goldschmidt@gmail.com> Cc: Tom Rini , u-boot@lists.denx.de, Stefan Roese Subject: [U-Boot] [PATCH v2 3/4] arm: socfpga: socrates: make rtc work 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" This patch makes the on-board RTC work on the socfpga_socrates board. This rtc is present on the board, but it does not work (fails with a timeout). This patch adds a weak pull-up on the I2C0-SCL pin connected to the m41t82 RTC on this board. While the SDA line has a pull-up on the pcb, the pull-up on the SCL line seems to be missing. To work around this, enable the weak-pull-up feature on this pin. After applying this patch, the rtc timeout is gone and the 'date' command can access the rtc chip. Signed-off-by: Simon Goldschmidt --- Changes in v2: None board/ebv/socrates/qts/iocsr_config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/ebv/socrates/qts/iocsr_config.h b/board/ebv/socrates/qts/iocsr_config.h index 011fa2bac3..18b9c6ce4d 100644 --- a/board/ebv/socrates/qts/iocsr_config.h +++ b/board/ebv/socrates/qts/iocsr_config.h @@ -108,7 +108,7 @@ const unsigned long iocsr_scan_chain2_table[] = { 0x00018004, 0x06001209, 0x00004000, - 0x20002412, + 0x20042412, 0x00904800, 0x00000030, 0x80000000, From patchwork Wed Mar 13 16:48:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Goldschmidt X-Patchwork-Id: 1056144 X-Patchwork-Delegate: marek.vasut@gmail.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; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="AnZtCJYz"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 44KHsk3n8Vz9s4V for ; Thu, 14 Mar 2019 03:51:05 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id AE80EC21E1E; Wed, 13 Mar 2019 16:50:05 +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=FREEMAIL_FROM, 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 4108FC22040; Wed, 13 Mar 2019 16:49:14 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 6C7D9C22066; Wed, 13 Mar 2019 16:49:04 +0000 (UTC) Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by lists.denx.de (Postfix) with ESMTPS id B318DC22068 for ; Wed, 13 Mar 2019 16:48:59 +0000 (UTC) Received: by mail-wm1-f65.google.com with SMTP id x7so26213wmj.0 for ; Wed, 13 Mar 2019 09:48:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=5ejVso9bSPPnBKaHH+OrxiZDaPK4Di7rPbGnti1lpLo=; b=AnZtCJYz7I99IHD9CjXYnAZ8gPdJGgbcwIlSKunVxI5FYme80oXwOx1uWTe+XOB9l2 M8bWRVfOSotFB4GH1TV0BZkIWV5xGew8rFU5PiEtxug5IiFkJItSH9e7DGJ9D3UZcxKg IVOr7itqoGSkJe7ADQc6LNIGNrtuC+ykimBRDVnYEs1+r79B+6cTaFh/eX/JArlqEbfs Vh3DaD9DYWEmmI3VY5hwXWfKNNX/9E+wijgwiHdHlGtsdI9KaRUcupZfu5tbmmeHa0pY RfUGTT36hj+mc1pt//WOofduxvAEKmB/Ljo5xg7OoGPSM8CNRCtw42tSjmhgjd0RirAJ o8Mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=5ejVso9bSPPnBKaHH+OrxiZDaPK4Di7rPbGnti1lpLo=; b=AHP9qmlG5mLdeAjXuu7cZjyKMWjBlNziGbTKy1VuKJfk5GMsiRT991jxmCIq3e99gY XPxTbZdei8Izqfgv4JjzmF1LP7iPSeAQncBC6VCZY26UQIpvTh97Sv4dYiO+vpcnIgFA y++yQorbtD+jG7V51U1pS2PJfWlpi+IGEbD2qZ9WcJRKgT4PF1BJPdIkfvCSyD2uco39 qKD5+nZo7fJlpOGfKqqBAM451XiPlGkxw2fCE/Oq+uwztyE8FuK+at2WB6M93zf0mfFJ 1p1OAh64dEd48zSAKxI1mdyHaJcbibqEM0Awub/7WJhYFBNpPxWhogDz/iILZxWB8QT9 XwMw== X-Gm-Message-State: APjAAAUIxtMnunVshf4EIbfezPAl2hb2HvABNU6JdtM6XfxLxnRMm7Jp v5vomAYxJ/Fe+7pJEVI3We0= X-Google-Smtp-Source: APXvYqwEulYlcDCPXRHUdIvaeypu8d9oz32Q48x6Q5wvHudLr5ppJpnCI8PNYJ3ID+6jKv/vuqZ1XA== X-Received: by 2002:a1c:1d15:: with SMTP id d21mr2773908wmd.132.1552495739242; Wed, 13 Mar 2019 09:48:59 -0700 (PDT) Received: from ubuntu.home ([2a02:8071:6a3:700:a087:9044:6211:ba43]) by smtp.gmail.com with ESMTPSA id x24sm2509331wmi.5.2019.03.13.09.48.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Mar 2019 09:48:58 -0700 (PDT) From: Simon Goldschmidt To: Marek Vasut Date: Wed, 13 Mar 2019 17:48:39 +0100 Message-Id: <20190313164839.32296-5-simon.k.r.goldschmidt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190313164839.32296-1-simon.k.r.goldschmidt@gmail.com> References: <20190313164839.32296-1-simon.k.r.goldschmidt@gmail.com> Cc: Stefan Roese , u-boot@lists.denx.de Subject: [U-Boot] [PATCH v2 4/4] configs: socfpga: socrates: enable rtc support 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" This enables DM_RTC and RTC_M41T62 to enable support for the rtc on the socrates board. Signed-off-by: Simon Goldschmidt --- Changes in v2: None configs/socfpga_socrates_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/socfpga_socrates_defconfig b/configs/socfpga_socrates_defconfig index 45fd78a15c..242d938f9c 100644 --- a/configs/socfpga_socrates_defconfig +++ b/configs/socfpga_socrates_defconfig @@ -61,6 +61,8 @@ CONFIG_DM_ETH=y CONFIG_ETH_DESIGNWARE=y CONFIG_MII=y CONFIG_DM_RESET=y +CONFIG_DM_RTC=y +CONFIG_RTC_M41T62=y CONFIG_SPI=y CONFIG_CADENCE_QSPI=y CONFIG_DESIGNWARE_SPI=y