Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7FBA5C61DA4 for ; Mon, 6 Feb 2023 10:01:21 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3569585ADF; Mon, 6 Feb 2023 11:01:18 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1675677678; bh=o827GhhW3AA0K9To+/1Jnw6jLNUSrR6Fx+XSvD4VCdo=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=zuziGOgFX07Slh10yZ0ieBtk8C/L4sKhZrpwfz5a6iQ7kbkG1pZgC1peIug/lGpHZ VUpXbgNBIvAPyur9ospPV6Z+bfE5pMg7nsXBdPNph7FdqRMswPyvS786z0TnV/UVYn +d9xQuiJYiAll7Qbn9+z0suPT5razN6CtOksPyNN7S4asCzuocODDVXR3mcziOwfbP wHieXEKbCM8mRLV1HQaJpRXjlAFxpn6whRl0Nz4zZjsLfBv10AlHyVVmRir2WBE6Gy rVsEk/GHyQMquZd8MSdkAlMXsF4BVqQkbki/0BKCD5u0Dtn9SPI/7M7uyWxteYvX+R TcwdEocHbGslg== Received: by phobos.denx.de (Postfix, from userid 109) id 03CB785ACD; Mon, 6 Feb 2023 11:01:16 +0100 (CET) Received: from mout-u-204.mailbox.org (mout-u-204.mailbox.org [IPv6:2001:67c:2050:101:465::204]) (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 0A5B5859B5 for ; Mon, 6 Feb 2023 11:01:13 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sr@denx.de Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-204.mailbox.org (Postfix) with ESMTPS id 4P9MGZ5vgVz9sT9; Mon, 6 Feb 2023 11:01:10 +0100 (CET) Message-ID: <75f261ce-ae1b-0d25-cc79-1dd431efa76c@denx.de> Date: Mon, 6 Feb 2023 11:01:09 +0100 MIME-Version: 1.0 Subject: Re: [PATCH] arm: mvebu: Power up 2nd SATA port for Thecus N2350 Content-Language: en-US To: Tony Dinh , U-Boot Mailing List Cc: Tom Rini , =?UTF-8?B?UGFsaSBSb2jvv71y?= References: <20230205212829.28392-1-mibodhi@gmail.com> From: Stefan Roese In-Reply-To: <20230205212829.28392-1-mibodhi@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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.6 at phobos.denx.de X-Virus-Status: Clean Hi Tony, On 2/5/23 22:28, Tony Dinh wrote: > Currently, only the 1st SATA port is powered up (by GPIO1 12). > Add GPIO1 13 in board initialization to power up the 2nd SATA port. > > Note that this patch depends on the initial add-support patch: > https://patchwork.ozlabs.org/project/uboot/patch/20230201231306.7010-1-mibodhi@gmail.com/ > > Signed-off-by: Tony Dinh > --- > > board/thecus/n2350/n2350.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/board/thecus/n2350/n2350.c b/board/thecus/n2350/n2350.c > index 4cfdfba662..58028a0695 100644 > --- a/board/thecus/n2350/n2350.c > +++ b/board/thecus/n2350/n2350.c > @@ -25,7 +25,7 @@ DECLARE_GLOBAL_DATA_PTR; > #define N2350_GPP_OUT_ENA_LOW (~(BIT(20) | BIT(21) | BIT(24))) > #define N2350_GPP_OUT_ENA_MID (~(BIT(12) | BIT(13) | BIT(16) | BIT(19) | BIT(22))) > #define N2350_GPP_OUT_VAL_LOW 0x1200000 > -#define N2350_GPP_OUT_VAL_MID 0x1001 > +#define N2350_GPP_OUT_VAL_MID 0x3001 It's perhaps better to use (BIT(12) | ...) here as well. This makes it easier to see, which GPIOs are used IMHO. Thanks, Stefan