Lines Matching +full:resource +full:- +full:id
1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2010 Texas Instruments Incorporated - https://www.ti.com/
11 #include <linux/platform_data/gpio-omap.h>
12 #include <linux/soc/ti/omap1-io.h>
28 static struct resource omap16xx_mpu_gpio_resources[] = {
31 .end = OMAP1_MPUIO_VBASE + SZ_2K - 1,
60 .id = 0,
65 .resource = omap16xx_mpu_gpio_resources,
69 static struct resource omap16xx_gpio1_resources[] = {
72 .end = OMAP1610_GPIO1_BASE + SZ_2K - 1,
104 .id = 1,
109 .resource = omap16xx_gpio1_resources,
113 static struct resource omap16xx_gpio2_resources[] = {
116 .end = OMAP1610_GPIO2_BASE + SZ_2K - 1,
132 .id = 2,
137 .resource = omap16xx_gpio2_resources,
141 static struct resource omap16xx_gpio3_resources[] = {
144 .end = OMAP1610_GPIO3_BASE + SZ_2K - 1,
160 .id = 3,
165 .resource = omap16xx_gpio3_resources,
169 static struct resource omap16xx_gpio4_resources[] = {
172 .end = OMAP1610_GPIO4_BASE + SZ_2K - 1,
188 .id = 4,
193 .resource = omap16xx_gpio4_resources,
213 struct resource *res; in omap16xx_gpio_init()
218 return -EINVAL; in omap16xx_gpio_init()
229 pdata = pdev->dev.platform_data; in omap16xx_gpio_init()
233 dev_err(&pdev->dev, "Invalid mem resource.\n"); in omap16xx_gpio_init()
234 return -ENODEV; in omap16xx_gpio_init()
237 base = ioremap(res->start, resource_size(res)); in omap16xx_gpio_init()
239 dev_err(&pdev->dev, "ioremap failed.\n"); in omap16xx_gpio_init()
240 return -ENOMEM; in omap16xx_gpio_init()