diff options
author | Samuel Holland <samuel@sholland.org> | 2023-10-30 23:57:40 -0500 |
---|---|---|
committer | Andre Przywara <andre.przywara@arm.com> | 2023-11-12 16:46:46 +0000 |
commit | 0070d57c339061e4725909b3081d70b83c2132d1 (patch) | |
tree | e1144bb3fac7077ae26ebbb90e4b88eb43f2dab8 | |
parent | d379bcbfafc7162c145946bb907bb4a935a0bbd9 (diff) | |
download | u-boot-0070d57c339061e4725909b3081d70b83c2132d1.zip u-boot-0070d57c339061e4725909b3081d70b83c2132d1.tar.gz u-boot-0070d57c339061e4725909b3081d70b83c2132d1.tar.bz2 |
pinctrl: sunxi: Avoid using .bss for SPL
sunxi platforms put .bss in DRAM, so .bss is not available in SPL before
DRAM controller initialization. Therefore, this buffer must be placed in
the .data section.
Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
-rw-r--r-- | drivers/pinctrl/sunxi/pinctrl-sunxi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/sunxi/pinctrl-sunxi.c b/drivers/pinctrl/sunxi/pinctrl-sunxi.c index bdf6360..37ea937 100644 --- a/drivers/pinctrl/sunxi/pinctrl-sunxi.c +++ b/drivers/pinctrl/sunxi/pinctrl-sunxi.c @@ -50,7 +50,7 @@ static const char *sunxi_pinctrl_get_pin_name(struct udevice *dev, uint pin_selector) { const struct sunxi_pinctrl_desc *desc = dev_get_priv(dev); - static char pin_name[sizeof("PN31")]; + static char pin_name[sizeof("PN31")] __section(".data"); snprintf(pin_name, sizeof(pin_name), "P%c%d", pin_selector / SUNXI_GPIOS_PER_BANK + desc->first_bank + 'A', |