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 32F84C05027 for ; Mon, 6 Feb 2023 22:33:24 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C202F85C24; Mon, 6 Feb 2023 23:33:21 +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="Vq56HKIE"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2771F85C13; Mon, 6 Feb 2023 23:33:20 +0100 (CET) Received: from mail-qt1-x832.google.com (mail-qt1-x832.google.com [IPv6:2607:f8b0:4864:20::832]) (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 1B40185C24 for ; Mon, 6 Feb 2023 23:33:17 +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-qt1-x832.google.com with SMTP id h24so14840774qtr.0 for ; Mon, 06 Feb 2023 14:33:17 -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=g8AknWKxNjatkJIQPVOWHtmcODC6CGwnPOpY/St3aw0=; b=Vq56HKIEO6nq70Mf+AHPyg6KNQAZ+lMbr1gbwHZKchiRiKsU+SNLiv1zMhKisAEV4g pwSIFdj0+8sSRoILcQa5XA1oNX/KDQlg/vvgLHhoO666HXIPtU+mFcOgd+CcfreQVbza Qcprkx1SWCaVPAq7/Or8B/2LlAP9nEhlPBAEC5JTKu6UFODd6wOpPgyUghC6sIeY/642 oZq3NbuYYdWJK+6p8o21GrX4yn3Oak0MmyiRf10HMj4JpYr0Kvk2kKySMKAul5u8knWh 1+t1va4LLGMxv/3C1uUv0g6ttW5mxOQ4yME+Ug5CPmIgeKZIZormEfoH3ItcVtyWaG7p n4HA== 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=g8AknWKxNjatkJIQPVOWHtmcODC6CGwnPOpY/St3aw0=; b=S2Emq2tmjbrmr2g565kNLqEQ8ZeeiBD9UDEnvkkLfVNB/8f+4tOo3ntW6k7U3mi6cd I8X5qjeNfDNdiz7DsRcUPMP/uenCt3D6YDln2E7E8pBYZEkziyKRvAcypJeCLO7AlU7k D+YcR4/HqcWI+/Aovxhn9FzzCBIEZkzG2DYehaSjeNAEvSROqVqy+f96oAXKosrIbKgP x1VaCXLKcMHobZlKgNz2ctZ5IUm6PY6S1xZkZc1aSh3U4K+IhyBXcyJ8Cbj2Rammaxvy Ge7Mg6KuhiVb3YxwKhwnsEhZMlK05tD/qAKqHl8LoJXmbDmVpEldtbqd9hVTaPjmMWRw Gozw== X-Gm-Message-State: AO0yUKU1R1yu2tpUi7pydxYAClAJQAhVE6PhJ9tKXJxaZ+pnk7SGezmY BxEZJs4K96zHVC/owUSjbKig1nh5Ugo= X-Google-Smtp-Source: AK7set81C8GRDfa67aN6Vdcc5txw8Vd3kBR20TYsG1Yyd0jJ1cYFkidcMENOTQDJmzJeGBdZnUdFug== X-Received: by 2002:ac8:5f48:0:b0:3b8:62f2:1dcd with SMTP id y8-20020ac85f48000000b003b862f21dcdmr1804719qta.21.1675722795690; Mon, 06 Feb 2023 14:33:15 -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 u31-20020a05622a199f00b003b0b903720esm8183183qtc.13.2023.02.06.14.33.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Feb 2023 14:33:15 -0800 (PST) From: Tony Dinh To: U-Boot Mailing List , Stefan Roese Cc: =?UTF-8?q?Pali=20Roh=E1r?= , Tom Rini , Tony Dinh Subject: [PATCH v2] arm: mvebu: Power up 2nd SATA port for Thecus N2350 Date: Mon, 6 Feb 2023 14:32:48 -0800 Message-Id: <20230206223249.13984-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. 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..190b7034ef 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(12) | BIT(13)) #define N2350_GPP_POL_LOW 0x0 #define N2350_GPP_POL_MID 0x0 -- 2.30.2