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 DB56EC636CC for ; Tue, 7 Feb 2023 08:19:58 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D997B85D18; Tue, 7 Feb 2023 09:19:55 +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=1675757996; bh=j52knWoiJpODrQnDJ4Ky3dBcdtvUcmi/PEo8/JE72ds=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=B+Qt2UgrsqGDjZqGVIUKByGNacoIPMZFinMLo2vdK0xnxT8R0gFA6aOSw8zopxd+W avZS9Mlr1AypmFq6d7OhVxryzCFFq/y4lY+YfFLYmfpKeis2JYRntmGgStYBRC78qq 0dWn4OQzjgDsNjVYu2nx2ASGbZ+aljTXsstcCxqBFxgyOMBbmUN23Y+WjrGZZKlgQY Oa1EPseXmE1Q51GjA+zXlD09GOTnh/uox/6IyIAX7+p1jMNHoLTTUx2qlCEtdXzv8j k3yHFxLT4g8qW2tV5RyZbmotpNHCC2qtHMaYR2g4wOxXkR1LNje+tKK6TI+DHo9ynx ddcKTC/baa2dA== Received: by phobos.denx.de (Postfix, from userid 109) id C012E85D47; Tue, 7 Feb 2023 09:19:53 +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 1807285CBD for ; Tue, 7 Feb 2023 09:19:51 +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 smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102]) (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 4P9wz86KGwz9sZS; Tue, 7 Feb 2023 09:19:48 +0100 (CET) Message-ID: <46842673-38cd-b20f-bf7d-95e0bc51d725@denx.de> Date: Tue, 7 Feb 2023 09:19:47 +0100 MIME-Version: 1.0 Subject: Re: [RESEND PATCH v2] 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: <20230207010012.1759-1-mibodhi@gmail.com> From: Stefan Roese In-Reply-To: <20230207010012.1759-1-mibodhi@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 On 2/7/23 02:00, 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 Reviewed-by: Stefan Roese Thanks, Stefan > --- > > Changes in v2: > - Use BIT macros to make it easier to see which GPIOs are used. > - Resent to correct missing BIT(0) in N2350_GPP_OUT_VAL_MID > > board/thecus/n2350/n2350.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/board/thecus/n2350/n2350.c b/board/thecus/n2350/n2350.c > index 4cfdfba662..fd8f95f944 100644 > --- a/board/thecus/n2350/n2350.c > +++ b/board/thecus/n2350/n2350.c > @@ -24,8 +24,8 @@ 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_LOW (BIT(21) | BIT(24)) > +#define N2350_GPP_OUT_VAL_MID (BIT(0) | BIT(12) | BIT(13)) > #define N2350_GPP_POL_LOW 0x0 > #define N2350_GPP_POL_MID 0x0 > Viele Grüße, Stefan Roese -- DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr@denx.de