2 * Copyright 2011 Freescale Semiconductor, Inc. All Rights Reserved.
3 * Copyright 2011 Linaro Limited
5 * This program is free software; you can redistribute it and/or modify it under
6 * the terms of the GNU General Public License version 2 as published by the
7 * Free Software Foundation.
9 #include "devices-common.h"
10 #include "../common.h"
12 struct platform_device *__init mxc_register_gpio(char *name, int id,
13 resource_size_t iobase, resource_size_t iosize, int irq, int irq_high)
15 struct resource res[] = {
18 .end = iobase + iosize - 1,
19 .flags = IORESOURCE_MEM,
23 .flags = IORESOURCE_IRQ,
27 .flags = IORESOURCE_IRQ,
31 return platform_device_register_resndata(&mxc_aips_bus,
32 name, id, res, ARRAY_SIZE(res), NULL, 0);