Lines Matching +full:resource +full:- +full:id
1 // SPDX-License-Identifier: GPL-2.0
7 #include <linux/dma-mapping.h>
10 #include <linux/platform_data/i2c-pxa.h>
13 #include <linux/platform_data/usb-pxa3xx-ulpi.h>
14 #include <linux/platform_data/video-pxafb.h>
15 #include <linux/platform_data/mmc-pxamci.h>
16 #include <linux/platform_data/irda-pxaficp.h>
18 #include <linux/platform_data/usb-ohci-pxa27x.h>
19 #include <linux/platform_data/keypad-pxa27x.h>
20 #include <linux/platform_data/media/camera-pxa.h>
24 #include <linux/platform_data/mtd-nand-pxa3xx.h>
33 dev->dev.platform_data = data; in pxa_register_device()
37 dev_err(&dev->dev, "unable to register device: %d\n", ret); in pxa_register_device()
40 static struct resource pxa_resource_pmu = {
47 .name = "xscale-pmu",
48 .id = -1,
49 .resource = &pxa_resource_pmu,
53 static struct resource pxamci_resources[] = {
69 .name = "pxa2xx-mci",
70 .id = 0,
76 .resource = pxamci_resources,
86 .gpio_pullup = -1,
94 static struct resource pxa2xx_udc_resources[] = {
110 .name = "pxa25x-udc",
111 .id = -1,
112 .resource = pxa2xx_udc_resources,
121 .name = "pxa27x-udc",
122 .id = -1,
123 .resource = pxa2xx_udc_resources,
132 static struct resource pxa3xx_u2d_resources[] = {
146 .name = "pxa3xx-u2d",
147 .id = -1,
148 .resource = pxa3xx_u2d_resources,
158 static struct resource pxafb_resources[] = {
174 .name = "pxa2xx-fb",
175 .id = -1,
181 .resource = pxafb_resources,
190 static struct resource pxa_resource_ffuart[] = {
203 .name = "pxa2xx-uart",
204 .id = 0,
205 .resource = pxa_resource_ffuart,
214 static struct resource pxa_resource_btuart[] = {
227 .name = "pxa2xx-uart",
228 .id = 1,
229 .resource = pxa_resource_btuart,
238 static struct resource pxa_resource_stuart[] = {
251 .name = "pxa2xx-uart",
252 .id = 2,
253 .resource = pxa_resource_stuart,
262 static struct resource pxa_resource_hwuart[] = {
275 .name = "pxa2xx-uart",
276 .id = 3,
277 .resource = pxa_resource_hwuart,
286 pr_info("UART: Ignoring attempt to register HWUART on non-PXA255 hardware"); in pxa_set_hwuart_info()
289 static struct resource pxai2c_resources[] = {
302 .name = "pxa2xx-i2c",
303 .id = 0,
304 .resource = pxai2c_resources,
314 static struct resource pxa27x_resources_i2c_power[] = {
327 .name = "pxa2xx-i2c",
328 .id = 1,
329 .resource = pxa27x_resources_i2c_power,
334 static struct resource pxai2s_resources[] = {
347 .name = "pxa2xx-i2s",
348 .id = -1,
349 .resource = pxai2s_resources,
354 .name = "pxa-ssp-dai",
355 .id = 0,
359 .name = "pxa-ssp-dai",
360 .id = 1,
364 .name = "pxa-ssp-dai",
365 .id = 2,
369 .name = "pxa-ssp-dai",
370 .id = 3,
374 .name = "pxa-pcm-audio",
375 .id = -1,
380 static struct resource pxa_ir_resources[] = {
404 .name = "pxa2xx-ir",
405 .id = -1,
407 .resource = pxa_ir_resources,
419 static struct resource pxa_rtc_resources[] = {
440 .name = "pxa-rtc",
441 .id = -1,
443 .resource = pxa_rtc_resources,
447 .name = "sa1100-rtc",
448 .id = -1,
450 .resource = pxa_rtc_resources,
453 static struct resource pxa_ac97_resources[] = {
469 .name = "pxa2xx-ac97",
470 .id = -1,
476 .resource = pxa_ac97_resources,
483 ret = clk_add_alias("ac97_clk", "pxa2xx-ac97:0", "AC97CLK", in pxa_set_ac97_info()
488 ret = clk_add_alias("ac97_clk", "pxa2xx-ac97:1", "AC97CLK", in pxa_set_ac97_info()
498 static struct resource pxa25x_resource_pwm0[] = {
507 .name = "pxa25x-pwm",
508 .id = 0,
509 .resource = pxa25x_resource_pwm0,
513 static struct resource pxa25x_resource_pwm1[] = {
522 .name = "pxa25x-pwm",
523 .id = 1,
524 .resource = pxa25x_resource_pwm1,
530 static struct resource pxa25x_resource_ssp[] = {
544 .name = "pxa25x-ssp",
545 .id = 0,
550 .resource = pxa25x_resource_ssp,
556 static struct resource pxa25x_resource_nssp[] = {
570 .name = "pxa25x-nssp",
571 .id = 1,
576 .resource = pxa25x_resource_nssp,
582 static struct resource pxa25x_resource_assp[] = {
597 .name = "pxa25x-nssp",
598 .id = 2,
603 .resource = pxa25x_resource_assp,
609 static struct resource pxa27x_resource_camera[] = {
625 .name = "pxa27x-camera",
626 .id = 0, /* This is used to put cameras on this interface */
632 .resource = pxa27x_resource_camera,
642 static struct resource pxa27x_resource_ohci[] = {
656 .name = "pxa27x-ohci",
657 .id = -1,
663 .resource = pxa27x_resource_ohci,
673 static struct resource pxa27x_resource_keypad[] = {
687 .name = "pxa27x-keypad",
688 .id = -1,
689 .resource = pxa27x_resource_keypad,
700 static struct resource pxa27x_resource_ssp1[] = {
714 .name = "pxa27x-ssp",
715 .id = 0,
720 .resource = pxa27x_resource_ssp1,
726 static struct resource pxa27x_resource_ssp2[] = {
740 .name = "pxa27x-ssp",
741 .id = 1,
746 .resource = pxa27x_resource_ssp2,
752 static struct resource pxa27x_resource_ssp3[] = {
766 .name = "pxa27x-ssp",
767 .id = 2,
772 .resource = pxa27x_resource_ssp3,
776 static struct resource pxa27x_resource_pwm0[] = {
785 .name = "pxa27x-pwm",
786 .id = 0,
787 .resource = pxa27x_resource_pwm0,
791 static struct resource pxa27x_resource_pwm1[] = {
800 .name = "pxa27x-pwm",
801 .id = 1,
802 .resource = pxa27x_resource_pwm1,
808 static struct resource pxa3xx_resources_mci2[] = {
822 .name = "pxa2xx-mci",
823 .id = 1,
829 .resource = pxa3xx_resources_mci2,
837 static struct resource pxa3xx_resources_mci3[] = {
851 .name = "pxa2xx-mci",
852 .id = 2,
858 .resource = pxa3xx_resources_mci3,
866 static struct resource pxa3xx_resources_gcu[] = {
882 .name = "pxa3xx-gcu",
883 .id = -1,
885 .resource = pxa3xx_resources_gcu,
895 static struct resource pxa3xx_resources_i2c_power[] = {
908 .name = "pxa3xx-pwri2c",
909 .id = 1,
910 .resource = pxa3xx_resources_i2c_power,
914 static struct resource pxa3xx_resources_nand[] = {
930 .name = "pxa3xx-nand",
931 .id = -1,
937 .resource = pxa3xx_resources_nand,
947 static struct resource pxa3xx_resource_ssp4[] = {
967 .name = "pxa3xx-ssp",
968 .id = 0,
973 .resource = pxa27x_resource_ssp1,
978 .name = "pxa3xx-ssp",
979 .id = 1,
984 .resource = pxa27x_resource_ssp2,
989 .name = "pxa3xx-ssp",
990 .id = 2,
995 .resource = pxa27x_resource_ssp3,
1000 .name = "pxa3xx-ssp",
1001 .id = 3,
1006 .resource = pxa3xx_resource_ssp4,
1011 struct resource pxa_resource_gpio[] = {
1036 .name = "pxa26x-gpio",
1038 .name = "pxa25x-gpio",
1040 .id = -1,
1042 .resource = pxa_resource_gpio,
1046 .name = "pxa27x-gpio",
1047 .id = -1,
1049 .resource = pxa_resource_gpio,
1053 .name = "pxa3xx-gpio",
1054 .id = -1,
1056 .resource = pxa_resource_gpio,
1060 .name = "pxa93x-gpio",
1061 .id = -1,
1063 .resource = pxa_resource_gpio,
1066 /* pxa2xx-spi platform-device ID equals respective SSP platform-device ID + 1.
1067 * See comment in arch/arm/mach-pxa/ssp.c::ssp_probe() */
1068 void __init pxa2xx_set_spi_info(unsigned id, struct pxa2xx_spi_controller *info) in pxa2xx_set_spi_info() argument
1072 pd = platform_device_alloc("pxa2xx-spi", id); in pxa2xx_set_spi_info()
1074 printk(KERN_ERR "pxa2xx-spi: failed to allocate device id %d\n", in pxa2xx_set_spi_info()
1075 id); in pxa2xx_set_spi_info()
1079 pd->dev.platform_data = info; in pxa2xx_set_spi_info()
1083 static struct resource pxa_dma_resource[] = {
1099 .name = "pxa-dma",
1100 .id = 0,
1106 .resource = pxa_dma_resource,