mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-13 12:26:01 +01:00
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. Series-to: sunxi Signed-off-by: Samuel Holland <samuel@sholland.org>
This commit is contained in:
parent
cbba1b7766
commit
10fa64ec08
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user