From: Alexander Shiyan <eagle.alexander923@gmail.com>
To: barebox@lists.infradead.org
Cc: Alexander Shiyan <eagle.alexander923@gmail.com>
Subject: [PATCH] ARM: at91: xload: use pin_to_mask for peripheral pin configuration
Date: Wed, 18 Jun 2025 09:35:52 +0300 [thread overview]
Message-ID: <20250618063552.23777-5-eagle.alexander923@gmail.com> (raw)
In-Reply-To: <20250618063552.23777-1-eagle.alexander923@gmail.com>
The patch replaces the use of BIT(*pin) with pin_to_mask(*pin) when
configuring peripheral pins for both SDHCI and QSPI boot modes.
Signed-off-by: Alexander Shiyan <eagle.alexander923@gmail.com>
---
arch/arm/mach-at91/xload.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-at91/xload.c b/arch/arm/mach-at91/xload.c
index fd3878269e..0f7d9738e1 100644
--- a/arch/arm/mach-at91/xload.c
+++ b/arch/arm/mach-at91/xload.c
@@ -79,7 +79,7 @@ static void __noreturn sama5d2_sdhci_start_image(u32 r4)
sama5d2_pmc_enable_periph_clock(SAMA5D2_ID_PIOA);
for (pin = instance->pins; *pin >= 0; pin++) {
at91_mux_pio4_set_periph(SAMA5D2_BASE_PIOA,
- BIT(*pin), instance->periph);
+ pin_to_mask(*pin), instance->periph);
}
sama5d2_pmc_enable_periph_clock(instance->id);
@@ -143,7 +143,7 @@ static void __noreturn sama5d2_qspi_start_image(u32 r4)
sama5d2_pmc_enable_periph_clock(SAMA5D2_ID_PIOA);
for (pin = instance->pins; *pin >= 0; pin++)
at91_mux_pio4_set_periph(SAMA5D2_BASE_PIOA,
- BIT(*pin), instance->periph);
+ pin_to_mask(*pin), instance->periph);
sama5d2_pmc_enable_periph_clock(instance->id);
--
2.39.1
next prev parent reply other threads:[~2025-06-18 6:38 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-18 6:35 [PATCH] ARM: at91: clock: remove unused SAMA5D2/SAMA5D3 support from legacy clock driver Alexander Shiyan
2025-06-18 6:35 ` [PATCH] ARM: at91: sam9x5ek: enable missing DT and clock options for devicetree boot Alexander Shiyan
2025-06-18 10:13 ` Sascha Hauer
2025-06-18 6:35 ` [PATCH] ARM: at91: setup: improve address handling for DBGU and CHIPID detection Alexander Shiyan
2025-06-18 10:13 ` Sascha Hauer
2025-06-18 6:35 ` [PATCH] ARM: at91: setup: refactor SoC subtype detection with switch statements Alexander Shiyan
2025-06-18 10:13 ` Sascha Hauer
2025-06-18 6:35 ` Alexander Shiyan [this message]
2025-06-18 10:13 ` (subset) [PATCH] ARM: at91: xload: use pin_to_mask for peripheral pin configuration Sascha Hauer
2025-06-18 10:13 ` Sascha Hauer
2025-06-18 10:13 ` (subset) [PATCH] ARM: at91: clock: remove unused SAMA5D2/SAMA5D3 support from legacy clock driver Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250618063552.23777-5-eagle.alexander923@gmail.com \
--to=eagle.alexander923@gmail.com \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox