mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
![Linus Walleij](/assets/img/avatar_default.png)
This alters the IOP platforms to pass a physical base for their GPIO blocks and alters the driver to remap it when probing instead of relying on the virtual addresses to be used. Cc: Lennert Buytenhek <kernel@wantstofly.org> Cc: Dan Williams <dan.j.williams@intel.com> Cc: Mikael Pettersson <mikpe@it.uu.se> Tested-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
10 lines
267 B
C
10 lines
267 B
C
static struct resource iop32x_gpio_res[] = {
|
|
DEFINE_RES_MEM((IOP3XX_PERIPHERAL_PHYS_BASE + 0x07c4), 0x10),
|
|
};
|
|
|
|
static inline void register_iop32x_gpio(void)
|
|
{
|
|
platform_device_register_simple("gpio-iop", 0,
|
|
iop32x_gpio_res,
|
|
ARRAY_SIZE(iop32x_gpio_res));
|
|
}
|