Message ID | 20210625130547.2177920-2-maxime@cerno.tech |
---|---|
State | RFC |
Delegated to: | Andre Przywara |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> 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=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=cerno.tech header.i=@cerno.tech header.a=rsa-sha256 header.s=fm3 header.b=NefyNhP+; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=nowb5cOn; dkim-atps=neutral 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)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GBHM93rN6z9sW8 for <incoming@patchwork.ozlabs.org>; Fri, 25 Jun 2021 23:06:29 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 51FAB82C29; Fri, 25 Jun 2021 15:06:12 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=cerno.tech 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=cerno.tech header.i=@cerno.tech header.b="NefyNhP+"; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="nowb5cOn"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8834A82C0F; Fri, 25 Jun 2021 15:05:59 +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,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.2 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1DA5A82C09 for <u-boot@lists.denx.de>; Fri, 25 Jun 2021 15:05:54 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=cerno.tech Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxime@cerno.tech Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 56B705C013B; Fri, 25 Jun 2021 09:05:53 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Fri, 25 Jun 2021 09:05:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm3; bh=34L8RfdOBZqFn RJ3UXJJvjZ+CxpNP7y/2C+kzRcEUe0=; b=NefyNhP+vtXoC3mtKBc2aff8YSZ+u 4oi/FeA2yRKJrhTDCS6KDUVW+OKl6V/PZgz4movy97HKd3NRBwvH0gq8M2NC5lA0 XrsymHUUH66MZEK5i3C9i5+dWuZxUy7880xiVBOgQyK45tN8HX6U5OMjLPWxMErX LkYFbURBbFu8dkpO8V2TC9qXtmtLdZw/AsO9TtFAb4BeKtdygjZRuYioSvuQjzhZ vq9iFb4kfQkrUELE5KFuejOJUwGp/gSAZehsQFteReKCVg0m56a/nKseZMIZPVJi Wv/+BEEC7MAcBtWNAUFCuMiJo3ATkQYssOmrQcUtdBXlXVHTyCUymhOOA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=34L8RfdOBZqFnRJ3UXJJvjZ+CxpNP7y/2C+kzRcEUe0=; b=nowb5cOn fa04khsiXFAxqzIHD2pgz+MpXbIItOHom7xcNu1ePWJaiiWi9yJmeFdkHPwfQjYp 4xJSUVNNtnQQHRWv1DODswK1RzN1kFcUgNTeuF7416BOOyHmSyjamyUS0ixwWrNI EJXDpcUFzw62mMAqg0dG22gXeaPI5c/tRdh1VIRN+7LR0nD9BplrRl+7oSH2oMK9 xw8EQsiATuXRZhiohX1K8QK9nNC09ZfQDD9gJIqcudY91E2iuWMs4HQ88g6h2w1V GdlQ55/ql7knV70x5/0g4n1J3zYAjKPnaR23CgqKia+QKRtu6ucE/quwiiT6Em8W SL02gR38t5UdYA== X-ME-Sender: <xms:sdTVYGxnTbvONXuVmtdt_imIYZPpvbcr7aj378sR3ax61bP6l7wphA> <xme:sdTVYCQtZpLxnpyTY5SIJrVUTg0gry9EYlcsZzp7Xbcp6P_ygHA9y8aC6cv9hicOq lLrjSWdOX_fgdZZtTs> X-ME-Received: <xmr:sdTVYIXon-53uuDp7yBYv1h2goo-UCF5j__qg94K7RgVQQ3RG5Uxl2tqd_kOtwFL5j17KHAVfpoR22L-Hjpe1WcMWHoU5tirdY_i> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeegjedgheeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeforgigihhm vgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrth htvghrnhepvdekleevfeffkeejhfffueelteelfeduieefheduudfggffhhfffheevveeh hedvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmh grgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: <xmx:sdTVYMjqfDqbRnUYP5m_lFiLkNO9IXTVfTF_QMIhJpbePC_Bj56VsA> <xmx:sdTVYIBrwz5tJ_3kg-TyX2KhnALO0EBkaNKE4KF174RLWaY6lRgSpA> <xmx:sdTVYNJhsOZ1r-3lQgRUzMNR8jvQ_OFYvUduUmJyfIzb9rjMtIylvw> <xmx:sdTVYGBIBd8xc0HyEjxMD1J95NCX7pwk64H4woYSa9LiAxcb8lbUqw> Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 25 Jun 2021 09:05:52 -0400 (EDT) From: Maxime Ripard <maxime@cerno.tech> To: u-boot@lists.denx.de, Andre Przywara <andre.przywara@arm.com> Cc: Peng Fan <peng.fan@nxp.com>, Li Jun <jun.li@nxp.com>, Marek Vasut <marex@denx.de>, Tom Rini <trini@konsulko.com>, Miquel Raynal <miquel.raynal@bootlin.com>, Jagan Teki <jagan@amarulasolutions.com>, Maxime Ripard <maxime@cerno.tech> Subject: [PATCH 01/12] Revert "sunxi: spl: remove DMA related settings of the NAND controller" Date: Fri, 25 Jun 2021 15:05:36 +0200 Message-Id: <20210625130547.2177920-2-maxime@cerno.tech> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210625130547.2177920-1-maxime@cerno.tech> References: <20210625130547.2177920-1-maxime@cerno.tech> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean |
Series |
Random Fixes for the CHIP Pro
|
expand
|
diff --git a/board/sunxi/board.c b/board/sunxi/board.c index 21651a1bfca4..80c222114f9a 100644 --- a/board/sunxi/board.c +++ b/board/sunxi/board.c @@ -395,6 +395,11 @@ static void nand_clock_setup(void) #if defined CONFIG_MACH_SUN6I || defined CONFIG_MACH_SUN8I || \ defined CONFIG_MACH_SUN9I || defined CONFIG_MACH_SUN50I setbits_le32(&ccm->ahb_reset0_cfg, (1 << AHB_GATE_OFFSET_NAND0)); +#endif +#ifdef CONFIG_MACH_SUN9I + setbits_le32(&ccm->ahb_gate1, (1 << AHB_GATE_OFFSET_DMA)); +#else + setbits_le32(&ccm->ahb_gate0, (1 << AHB_GATE_OFFSET_DMA)); #endif setbits_le32(&ccm->nand0_clk_cfg, CCM_NAND_CTRL_ENABLE | AHB_DIV_1); }