uboot-d1: add bootloader for upcoming d1 target
[openwrt/staging/mans0n.git] / package / boot / uboot-d1 / patches / 0082-pinctrl-sunxi-Hack-up-the-driver-for-the-D1.patch
1 From c33ca5c6a5be74711460756bf86c45b6c6fd0a3f Mon Sep 17 00:00:00 2001
2 From: Samuel Holland <samuel@sholland.org>
3 Date: Thu, 4 Nov 2021 17:49:15 -0500
4 Subject: [PATCH 82/90] pinctrl: sunxi: Hack up the driver for the D1
5
6 Signed-off-by: Samuel Holland <samuel@sholland.org>
7 ---
8 drivers/pinctrl/sunxi/pinctrl-sunxi.c | 3 ++-
9 1 file changed, 2 insertions(+), 1 deletion(-)
10
11 --- a/drivers/pinctrl/sunxi/pinctrl-sunxi.c
12 +++ b/drivers/pinctrl/sunxi/pinctrl-sunxi.c
13 @@ -9,6 +9,7 @@
14 #include <malloc.h>
15
16 #include <asm/gpio.h>
17 +#include "../../../arch/arm/include/asm/arch-sunxi/gpio.h"
18
19 extern U_BOOT_DRIVER(gpio_sunxi);
20
21 @@ -49,7 +50,7 @@ static const char *sunxi_pinctrl_get_pin
22 uint pin_selector)
23 {
24 const struct sunxi_pinctrl_desc *desc = dev_get_priv(dev);
25 - static char pin_name[sizeof("PN31")];
26 + static char pin_name[sizeof("PN31")] __section(".data");
27
28 snprintf(pin_name, sizeof(pin_name), "P%c%d",
29 pin_selector / SUNXI_GPIOS_PER_BANK + desc->first_bank + 'A',