--- zzzz-none-000/linux-4.19.183/kernel/resource.c 2021-03-24 10:07:39.000000000 +0000 +++ bcm63-7530ax-756/linux-4.19.183/kernel/resource.c 2023-06-28 08:54:21.000000000 +0000 @@ -42,6 +42,22 @@ }; EXPORT_SYMBOL(iomem_resource); +struct resource gpio_resource = { + .name = "gpio", + .start = 0, +# if defined(CONFIG_MACH_PUMA6) || defined(CONFIG_X86) + .end = 133, +# elif defined(CONFIG_MIPS_FUSIV) + .end = 31, +# elif defined(CONFIG_MACH_BCM963138) + .end = 255, +# else /*--- #if defined(CONFIG_MIPS_FUSIV) ---*/ + .end = 64, +# endif /*--- #else ---*/ /*--- #if defined(CONFIG_MIPS_FUSIV) ---*/ + .flags = IORESOURCE_IO +}; +EXPORT_SYMBOL(gpio_resource); + /* constraints to be met while allocating resources */ struct resource_constraint { resource_size_t min, max, align;