From mboxrd@z Thu Jan 1 00:00:00 1970 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 4C3D4C61DA4 for ; Tue, 7 Feb 2023 01:00:41 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8F9ED85CBA; Tue, 7 Feb 2023 02:00:38 +0100 (CET) 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="Kg7m25HM"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A2E8985C2F; Tue, 7 Feb 2023 02:00:36 +0100 (CET) Received: from mail-ot1-x32e.google.com (mail-ot1-x32e.google.com [IPv6:2607:f8b0:4864:20::32e]) (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 5C11A85CBA for ; Tue, 7 Feb 2023 02:00:33 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=mibodhi@gmail.com Received: by mail-ot1-x32e.google.com with SMTP id j6-20020a9d7686000000b0068d4ba9d141so3753952otl.6 for ; Mon, 06 Feb 2023 17:00:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=EtEdgAI1JEJIATd6+nvEFMx+xO/mtpL1fercNPLrOzg=; b=Kg7m25HMkQDz3IdJd+cLm2tNR9zigGMfk2XSYQILtO07h0bYpL3PjsW2rQfewcweF2 /VSoXYPLGa57lrTZCHB4VYwEs9KRer3GltZ6YaRoJWn6qx0isPfmeBOJaF+5MM1m1qk8 tfoL8mJxGA7UUkKTdDPa/mUUx5PtXDUy7MvRQr+kSF4KXepFrkv212EGqC/GPZikxwzK UfbOIT3FG0Cl0TKy8qao928j0L1btf5NKqW2j9xt0rN9/FSt8wWGkhrL7NGMnaOIUUKd WHdx6zfQBUfP0xowIvwnyKyWOjAPbicqH9NcnfEHdo/fpxmNanbdNd9nV46nlaEKzr6w tnhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=EtEdgAI1JEJIATd6+nvEFMx+xO/mtpL1fercNPLrOzg=; b=1rtyT0WueMH7VUqTPTcATWI+uOrAyItilmsk+7nLJf02f4e9I95FEst45/mIhmgb6H CYB87JYeVUWny53eTWe//z6okUgqz0U45UtCMxUzFzzZL/oXWEONW+6IvGxmfCd8RBi5 0+HJ7lBZPQaAIfsGZeQjsHdASmLg+5S17aTtDuNmSgH9eAL5Af0PZYSzhsW65qvBmDMF TpeVpRxPIlH//FPJGjuwGE2t3RQXEYkkOUdPZDz/NV0fKlYrq8fTjadLmbbNSboiQeaC dq9wwIYECN/nZ0NLQ9NJ+QJHcRORHF806XstnL3kXoKYIESKf3qoGO2JgpfhWUWD7HcI BxXw== X-Gm-Message-State: AO0yUKWIVS1ZgSaIn/vHbj8H65val2FNiDHxe2CKwR0pQFWMVajSYS2y pEcmRXu1BknwtHt2uJArIA9gIW1iYG0= X-Google-Smtp-Source: AK7set9QEsJ19wziAL0WvSNaUzQm2TilInPrpFSSTpFLoz2ioIhygGzCeekkltW4JgvFkGZn3YPe/w== X-Received: by 2002:a05:6830:2f7:b0:68d:623b:74be with SMTP id r23-20020a05683002f700b0068d623b74bemr887297ote.31.1675731631619; Mon, 06 Feb 2023 17:00:31 -0800 (PST) Received: from localhost.localdomain (76-229-100-169.lightspeed.irvnca.sbcglobal.net. [76.229.100.169]) by smtp.gmail.com with ESMTPSA id t26-20020a9d7f9a000000b00686a19ffef1sm5731591otp.80.2023.02.06.17.00.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Feb 2023 17:00:31 -0800 (PST) From: Tony Dinh To: U-Boot Mailing List , Stefan Roese Cc: Tom Rini , =?UTF-8?q?Pali=20Roh=E1r?= , Tony Dinh Subject: [RESEND PATCH v2] arm: mvebu: Power up 2nd SATA port for Thecus N2350 Date: Mon, 6 Feb 2023 17:00:11 -0800 Message-Id: <20230207010012.1759-1-mibodhi@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 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 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 --- 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 -- 2.30.2