| * Copyright (C) ST-Ericsson SA 2010 |
| * Author: Rabin Vincent <rabin.vincent@stericsson.com> for ST-Ericsson |
| * License terms: GNU General Public License (GPL), version 2. |
| #include <linux/kernel.h> |
| #include <linux/dma-mapping.h> |
| #include <linux/platform_device.h> |
| #include <plat/gpio-nomadik.h> |
| #include <mach/hardware.h> |
| #include "devices-common.h" |
| static struct platform_device * |
| dbx500_add_gpio(struct device *parent, int id, resource_size_t addr, int irq, |
| struct nmk_gpio_platform_data *pdata) |
| struct resource resources[] = { |
| return platform_device_register_resndata( |
| void dbx500_add_gpios(struct device *parent, resource_size_t *base, int num, |
| int irq, struct nmk_gpio_platform_data *pdata) |
| for (i = 0; i < num; i++, first += 32, irq++) { |
| pdata->first_gpio = first; |
| pdata->first_irq = NOMADIK_GPIO_TO_IRQ(first); |
| dbx500_add_gpio(parent, i, base[i], irq, pdata); |