Lines Matching +full:resource +full:- +full:id

1 // SPDX-License-Identifier: GPL-2.0
7 #include <linux/clk-provider.h>
8 #include <linux/dma-mapping.h>
10 #include <linux/gpio-pxa.h>
11 #include <linux/platform_data/i2c-pxa.h>
15 #include <linux/platform_data/video-pxafb.h>
16 #include <linux/platform_data/mmc-pxamci.h>
18 #include <linux/platform_data/usb-ohci-pxa27x.h>
21 #include "mfp-pxa2xx.h"
22 #include "regs-ost.h"
31 dev->dev.platform_data = data; in pxa_register_device()
35 dev_err(&dev->dev, "unable to register device: %d\n", ret); in pxa_register_device()
38 static struct resource pxa_resource_pmu = {
45 .name = "xscale-pmu",
46 .id = -1,
47 .resource = &pxa_resource_pmu,
51 static const struct resource pxamci_resources[] = {
68 .name = "pxa2xx-mci", in pxa_set_mci_info()
69 .id = 0, in pxa_set_mci_info()
87 .gpio_pullup = -1,
90 static struct resource pxa2xx_udc_resources[] = {
106 .name = "pxa25x-udc",
107 .id = -1,
108 .resource = pxa2xx_udc_resources,
117 .name = "pxa27x-udc",
118 .id = -1,
119 .resource = pxa2xx_udc_resources,
127 static struct resource pxafb_resources[] = {
143 .name = "pxa2xx-fb",
144 .id = -1,
150 .resource = pxafb_resources,
159 static struct resource pxa_resource_ffuart[] = {
172 .name = "pxa2xx-uart",
173 .id = 0,
174 .resource = pxa_resource_ffuart,
183 static struct resource pxa_resource_btuart[] = {
196 .name = "pxa2xx-uart",
197 .id = 1,
198 .resource = pxa_resource_btuart,
207 static struct resource pxa_resource_stuart[] = {
220 .name = "pxa2xx-uart",
221 .id = 2,
222 .resource = pxa_resource_stuart,
231 static struct resource pxa_resource_hwuart[] = {
244 .name = "pxa2xx-uart",
245 .id = 3,
246 .resource = pxa_resource_hwuart,
255 pr_info("UART: Ignoring attempt to register HWUART on non-PXA255 hardware"); in pxa_set_hwuart_info()
258 static struct resource pxai2c_resources[] = {
271 .name = "pxa2xx-i2c",
272 .id = 0,
273 .resource = pxai2c_resources,
283 static struct resource pxa27x_resources_i2c_power[] = {
296 .name = "pxa2xx-i2c",
297 .id = 1,
298 .resource = pxa27x_resources_i2c_power,
303 static struct resource pxai2s_resources[] = {
316 .name = "pxa2xx-i2s",
317 .id = -1,
318 .resource = pxai2s_resources,
323 .name = "pxa-ssp-dai",
324 .id = 0,
328 .name = "pxa-ssp-dai",
329 .id = 1,
333 .name = "pxa-ssp-dai",
334 .id = 2,
338 .name = "pxa-ssp-dai",
339 .id = 3,
343 .name = "pxa-pcm-audio",
344 .id = -1,
347 static struct resource pxa_rtc_resources[] = {
368 .name = "pxa-rtc",
369 .id = -1,
371 .resource = pxa_rtc_resources,
375 .name = "sa1100-rtc",
376 .id = -1,
378 .resource = pxa_rtc_resources,
383 static struct resource pxa25x_resource_pwm0[] = {
392 .name = "pxa25x-pwm",
393 .id = 0,
394 .resource = pxa25x_resource_pwm0,
398 static struct resource pxa25x_resource_pwm1[] = {
407 .name = "pxa25x-pwm",
408 .id = 1,
409 .resource = pxa25x_resource_pwm1,
415 static struct resource pxa25x_resource_ssp[] = {
429 .name = "pxa25x-ssp",
430 .id = 0,
435 .resource = pxa25x_resource_ssp,
441 static struct resource pxa25x_resource_nssp[] = {
455 .name = "pxa25x-nssp",
456 .id = 1,
461 .resource = pxa25x_resource_nssp,
467 static struct resource pxa25x_resource_assp[] = {
482 .name = "pxa25x-nssp",
483 .id = 2,
488 .resource = pxa25x_resource_assp,
496 static struct resource pxa27x_resource_ohci[] = {
510 .name = "pxa27x-ohci",
511 .id = -1,
517 .resource = pxa27x_resource_ohci,
529 static struct resource pxa27x_resource_ssp1[] = {
543 .name = "pxa27x-ssp",
544 .id = 0,
549 .resource = pxa27x_resource_ssp1,
555 static struct resource pxa27x_resource_ssp2[] = {
569 .name = "pxa27x-ssp",
570 .id = 1,
575 .resource = pxa27x_resource_ssp2,
581 static struct resource pxa27x_resource_ssp3[] = {
595 .name = "pxa27x-ssp",
596 .id = 2,
601 .resource = pxa27x_resource_ssp3,
605 static struct resource pxa27x_resource_pwm0[] = {
614 .name = "pxa27x-pwm",
615 .id = 0,
616 .resource = pxa27x_resource_pwm0,
620 static struct resource pxa27x_resource_pwm1[] = {
629 .name = "pxa27x-pwm",
630 .id = 1,
631 .resource = pxa27x_resource_pwm1,
638 .name = "gpio-pxa",
641 struct resource pxa_resource_gpio[] = {
670 .name = "pxa25x-gpio",
671 .id = -1,
673 .resource = pxa_resource_gpio,
680 .name = "pxa27x-gpio",
681 .id = -1,
683 .resource = pxa_resource_gpio,
690 static struct resource pxa_dma_resource[] = {
706 .name = "pxa-dma",
707 .id = 0,
713 .resource = pxa_dma_resource,
723 struct resource res = DEFINE_RES_MEM(OST_PHYS, OST_LEN); in pxa_register_wdt()
726 platform_device_register_resndata(NULL, "sa1100_wdt", -1, &res, 1, in pxa_register_wdt()