1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright 2011 Freescale Semiconductor, Inc. All Rights Reserved.
4 * Copyright 2011 Linaro Limited
6 #include "devices-common.h"
9 struct platform_device *__init mxc_register_gpio(char *name, int id,
10 resource_size_t iobase, resource_size_t iosize, int irq, int irq_high)
12 struct resource res[] = {
15 .end = iobase + iosize - 1,
16 .flags = IORESOURCE_MEM,
20 .flags = IORESOURCE_IRQ,
24 .flags = IORESOURCE_IRQ,
28 return platform_device_register_resndata(&mxc_aips_bus,
29 name, id, res, ARRAY_SIZE(res), NULL, 0);