From patchwork Sun Oct 11 16:01:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 1380404 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=uYNr8Yr2; dkim-atps=neutral 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 ozlabs.org (Postfix) with ESMTPS id 4C8RQx685xz9sSG for ; Mon, 12 Oct 2020 03:02:33 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5C28C823D6; Sun, 11 Oct 2020 18:02:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.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=gmail.com header.i=@gmail.com header.b="uYNr8Yr2"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 339AD822C8; Sun, 11 Oct 2020 18:02:18 +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=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ed1-x541.google.com (mail-ed1-x541.google.com [IPv6:2a00:1450:4864:20::541]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E14C4822C7 for ; Sun, 11 Oct 2020 18:02:15 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=marek.vasut@gmail.com Received: by mail-ed1-x541.google.com with SMTP id p13so14393839edi.7 for ; Sun, 11 Oct 2020 09:02:15 -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 :mime-version:content-transfer-encoding; bh=YF7wM8kbzhlTKpJW4mdB/XWmO9YVRysPJ/bwU4Q984Y=; b=uYNr8Yr23+OtSmb6zm/VR1zn+LtEmtBHU8yg6qqsT1lAE/Ktc1zPN880GQ1OqgoOfu 30prudKUaaZSacpj94+sSYeqCVa00ezoAXddKz9bIt6uweW92m9O4Eo4cXGESvFjrta6 2yagoU97PqByE8cHCchODSyNBXuIynnaKLh36ezBNljAQyJ1+s1w1iGaqv96dmpO2JfR ECOC/lhSeJY4TPQRvPe+LGRIsqK7FrDKkYK3/j0AzIwP3OQzBasK5QmelsmEdFACNwN3 WMQwTJBcxRUu6CVsz1UfiY+rkTaL+2KHW0Q6LlRO9tZugSoiyGojoyPi4zQfWs+kHz0G 4eQA== 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:mime-version:content-transfer-encoding; bh=YF7wM8kbzhlTKpJW4mdB/XWmO9YVRysPJ/bwU4Q984Y=; b=QiQaiR29yq7E1a+c+CeKQADbe77i9ASYInQcYIt0KK4WT3/mnfikBBi+/wI+6AHaY7 bpaMiY4fBcdnwCcePtSOWEFlDuSGTrtTHjJn9CygSdX8ikDhiC7h3imLC1gDoTnq+xJD MapdF9KUqgnVnsI0xs9rVxZFsLY5pIe8ijYrMdf0GV5QPpAu7TzYTKxpWANOBwcyevU4 YZL2rJHYA0SqDFDfnvGEq1YaA9rJJKT2ZQOwRRdX08LAXp9ktZqxtfBVz+42wRyItD1O iwxnKcqpRzmADA/RXoNwn28GKxNFE7EGWHhXY+Aa5tGfY+7Vtj2MqX9HRk6By+2PhTFO TWHg== X-Gm-Message-State: AOAM5310PoLa9SaewcE1bHbBk6PU6B5LoOBxWhq8U7pHYHr7I0URS7kK VqXnbqXbtMpECcAixuUqw5QEDO/zbYQllw== X-Google-Smtp-Source: ABdhPJyfCQed0tSyXbk2qgtEvCxAsLv4YUEhCSzxACUUiI7Lhg0Uj1zIEL6y4kRwuc2dV7HGezBXpQ== X-Received: by 2002:a05:6402:3089:: with SMTP id de9mr10049322edb.368.1602432135229; Sun, 11 Oct 2020 09:02:15 -0700 (PDT) Received: from localhost.localdomain (ip-89-176-112-137.net.upcbroadband.cz. [89.176.112.137]) by smtp.gmail.com with ESMTPSA id me12sm9380673ejb.108.2020.10.11.09.02.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Oct 2020 09:02:13 -0700 (PDT) From: Marek Vasut X-Google-Original-From: Marek Vasut To: u-boot@lists.denx.de Cc: Marek Vasut , Nobuhiro Iwamatsu Subject: [PATCH 2/2] clk: renesas: Synchronize Gen2 MSTP teardown tables Date: Sun, 11 Oct 2020 18:01:57 +0200 Message-Id: <20201011160157.574440-2-marek.vasut+renesas@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201011160157.574440-1-marek.vasut+renesas@gmail.com> References: <20201011160157.574440-1-marek.vasut+renesas@gmail.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.102.3 at phobos.denx.de X-Virus-Status: Clean Synchronize Gen2 MSTP teardown tables with datasheet Rev.2.00 Feb 01, 2016. This corrects the following bits: - added H2 MSTP3[10] SCIF2 - added H2/M2/E2 MSTP7[29] TCON - removed E2 MSTP5[22] Thermal Sensor - removed E2 MSTP10[31,24:22] SRC0, SRC7:9 Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- drivers/clk/renesas/r8a7790-cpg-mssr.c | 4 ++-- drivers/clk/renesas/r8a7791-cpg-mssr.c | 2 +- drivers/clk/renesas/r8a7794-cpg-mssr.c | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/clk/renesas/r8a7790-cpg-mssr.c b/drivers/clk/renesas/r8a7790-cpg-mssr.c index 7451f53ba3..6f4aa6f0ca 100644 --- a/drivers/clk/renesas/r8a7790-cpg-mssr.c +++ b/drivers/clk/renesas/r8a7790-cpg-mssr.c @@ -239,11 +239,11 @@ static const struct mstp_stop_table r8a7790_mstp_table[] = { { 0x00640801, 0x400000, 0x00640801, 0x0 }, { 0xDB6E9BDF, 0x0, 0xDB6E9BDF, 0x0 }, { 0x300DA1FC, 0x2010, 0x300DA1FC, 0x0 }, - { 0xF08CF831, 0x0, 0xF08CF831, 0x0 }, + { 0xF08CFC31, 0x0, 0xF08CFC31, 0x0 }, { 0x80000184, 0x180, 0x80000184, 0x0 }, { 0x44C00046, 0x0, 0x44C00046, 0x0 }, { 0x0, 0x0, 0x0, 0x0 }, /* SMSTP6 is not present on Gen2 */ - { 0x07F30718, 0x200000, 0x07F30718, 0x0 }, + { 0x27F30718, 0x200000, 0x27F30718, 0x0 }, { 0x01F0FF84, 0x0, 0x01F0FF84, 0x0 }, { 0xF5979FCF, 0x0, 0xF5979FCF, 0x0 }, { 0xFFFEFFE0, 0x0, 0xFFFEFFE0, 0x0 }, diff --git a/drivers/clk/renesas/r8a7791-cpg-mssr.c b/drivers/clk/renesas/r8a7791-cpg-mssr.c index 25fd489609..3f02f419a4 100644 --- a/drivers/clk/renesas/r8a7791-cpg-mssr.c +++ b/drivers/clk/renesas/r8a7791-cpg-mssr.c @@ -245,7 +245,7 @@ static const struct mstp_stop_table r8a7791_mstp_table[] = { { 0x800001C4, 0x180, 0x800001C4, 0x0 }, { 0x44C00046, 0x0, 0x44C00046, 0x0 }, { 0x0, 0x0, 0x0, 0x0 }, /* SMSTP6 is not present on Gen2 */ - { 0x05BFE618, 0x200000, 0x05BFE618, 0x0 }, + { 0x25BFE618, 0x200000, 0x25BFE618, 0x0 }, { 0x40C0FE85, 0x0, 0x40C0FE85, 0x0 }, { 0xFF979FFF, 0x0, 0xFF979FFF, 0x0 }, { 0xFFFEFFE0, 0x0, 0xFFFEFFE0, 0x0 }, diff --git a/drivers/clk/renesas/r8a7794-cpg-mssr.c b/drivers/clk/renesas/r8a7794-cpg-mssr.c index 7093e0d42c..53b55b679d 100644 --- a/drivers/clk/renesas/r8a7794-cpg-mssr.c +++ b/drivers/clk/renesas/r8a7794-cpg-mssr.c @@ -218,12 +218,12 @@ static const struct mstp_stop_table r8a7794_mstp_table[] = { { 0x100D21FC, 0x2000, 0x100D21FC, 0x0 }, { 0xE084D810, 0x0, 0xE084D810, 0x0 }, { 0x800001C4, 0x180, 0x800001C4, 0x0 }, - { 0x40C00044, 0x0, 0x40C00044, 0x0 }, + { 0x40800044, 0x0, 0x40800044, 0x0 }, { 0x0, 0x0, 0x0, 0x0 }, /* SMSTP6 is not present on Gen2 */ - { 0x013FE618, 0x80000, 0x013FE618, 0x0 }, + { 0x21BFE618, 0x80000, 0x21BFE618, 0x0 }, { 0x40803C05, 0x0, 0x40803C05, 0x0 }, { 0xFB879FEE, 0x0, 0xFB879FEE, 0x0 }, - { 0xFFFEFFE0, 0x0, 0xFFFEFFE0, 0x0 }, + { 0x7E3EFFE0, 0x0, 0x7E3EFFE0, 0x0 }, { 0x000001C0, 0x0, 0x000001C0, 0x0 }, };