• Home
  • Raw
  • Download

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>
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 "regs-ost.h"
30 dev->dev.platform_data = data; in pxa_register_device()
34 dev_err(&dev->dev, "unable to register device: %d\n", ret); in pxa_register_device()
37 static struct resource pxa_resource_pmu = {
44 .name = "xscale-pmu",
45 .id = -1,
46 .resource = &pxa_resource_pmu,
50 static struct resource pxamci_resources[] = {
66 .name = "pxa2xx-mci",
67 .id = 0,
73 .resource = pxamci_resources,
82 .gpio_pullup = -1,
85 static struct resource pxa2xx_udc_resources[] = {
101 .name = "pxa25x-udc",
102 .id = -1,
103 .resource = pxa2xx_udc_resources,
112 .name = "pxa27x-udc",
113 .id = -1,
114 .resource = pxa2xx_udc_resources,
122 static struct resource pxafb_resources[] = {
138 .name = "pxa2xx-fb",
139 .id = -1,
145 .resource = pxafb_resources,
154 static struct resource pxa_resource_ffuart[] = {
167 .name = "pxa2xx-uart",
168 .id = 0,
169 .resource = pxa_resource_ffuart,
178 static struct resource pxa_resource_btuart[] = {
191 .name = "pxa2xx-uart",
192 .id = 1,
193 .resource = pxa_resource_btuart,
202 static struct resource pxa_resource_stuart[] = {
215 .name = "pxa2xx-uart",
216 .id = 2,
217 .resource = pxa_resource_stuart,
226 static struct resource pxa_resource_hwuart[] = {
239 .name = "pxa2xx-uart",
240 .id = 3,
241 .resource = pxa_resource_hwuart,
250 pr_info("UART: Ignoring attempt to register HWUART on non-PXA255 hardware"); in pxa_set_hwuart_info()
253 static struct resource pxai2c_resources[] = {
266 .name = "pxa2xx-i2c",
267 .id = 0,
268 .resource = pxai2c_resources,
278 static struct resource pxa27x_resources_i2c_power[] = {
291 .name = "pxa2xx-i2c",
292 .id = 1,
293 .resource = pxa27x_resources_i2c_power,
298 static struct resource pxai2s_resources[] = {
311 .name = "pxa2xx-i2s",
312 .id = -1,
313 .resource = pxai2s_resources,
318 .name = "pxa-ssp-dai",
319 .id = 0,
323 .name = "pxa-ssp-dai",
324 .id = 1,
328 .name = "pxa-ssp-dai",
329 .id = 2,
333 .name = "pxa-ssp-dai",
334 .id = 3,
338 .name = "pxa-pcm-audio",
339 .id = -1,
342 static struct resource pxa_rtc_resources[] = {
363 .name = "pxa-rtc",
364 .id = -1,
366 .resource = pxa_rtc_resources,
370 .name = "sa1100-rtc",
371 .id = -1,
373 .resource = pxa_rtc_resources,
378 static struct resource pxa25x_resource_pwm0[] = {
387 .name = "pxa25x-pwm",
388 .id = 0,
389 .resource = pxa25x_resource_pwm0,
393 static struct resource pxa25x_resource_pwm1[] = {
402 .name = "pxa25x-pwm",
403 .id = 1,
404 .resource = pxa25x_resource_pwm1,
410 static struct resource pxa25x_resource_ssp[] = {
424 .name = "pxa25x-ssp",
425 .id = 0,
430 .resource = pxa25x_resource_ssp,
436 static struct resource pxa25x_resource_nssp[] = {
450 .name = "pxa25x-nssp",
451 .id = 1,
456 .resource = pxa25x_resource_nssp,
462 static struct resource pxa25x_resource_assp[] = {
477 .name = "pxa25x-nssp",
478 .id = 2,
483 .resource = pxa25x_resource_assp,
491 static struct resource pxa27x_resource_ohci[] = {
505 .name = "pxa27x-ohci",
506 .id = -1,
512 .resource = pxa27x_resource_ohci,
524 static struct resource pxa27x_resource_ssp1[] = {
538 .name = "pxa27x-ssp",
539 .id = 0,
544 .resource = pxa27x_resource_ssp1,
550 static struct resource pxa27x_resource_ssp2[] = {
564 .name = "pxa27x-ssp",
565 .id = 1,
570 .resource = pxa27x_resource_ssp2,
576 static struct resource pxa27x_resource_ssp3[] = {
590 .name = "pxa27x-ssp",
591 .id = 2,
596 .resource = pxa27x_resource_ssp3,
600 static struct resource pxa27x_resource_pwm0[] = {
609 .name = "pxa27x-pwm",
610 .id = 0,
611 .resource = pxa27x_resource_pwm0,
615 static struct resource pxa27x_resource_pwm1[] = {
624 .name = "pxa27x-pwm",
625 .id = 1,
626 .resource = pxa27x_resource_pwm1,
631 struct resource pxa_resource_gpio[] = {
655 .name = "pxa25x-gpio",
656 .id = -1,
658 .resource = pxa_resource_gpio,
662 .name = "pxa27x-gpio",
663 .id = -1,
665 .resource = pxa_resource_gpio,
668 /* pxa2xx-spi platform-device ID equals respective SSP platform-device ID + 1.
669 * See comment in arch/arm/mach-pxa/ssp.c::ssp_probe() */
670 void __init pxa2xx_set_spi_info(unsigned id, struct pxa2xx_spi_controller *info) in pxa2xx_set_spi_info() argument
674 pd = platform_device_alloc("pxa2xx-spi", id); in pxa2xx_set_spi_info()
676 printk(KERN_ERR "pxa2xx-spi: failed to allocate device id %d\n", in pxa2xx_set_spi_info()
677 id); in pxa2xx_set_spi_info()
681 pd->dev.platform_data = info; in pxa2xx_set_spi_info()
685 static struct resource pxa_dma_resource[] = {
701 .name = "pxa-dma",
702 .id = 0,
708 .resource = pxa_dma_resource,
718 struct resource res = DEFINE_RES_MEM(OST_PHYS, OST_LEN); in pxa_register_wdt()
721 platform_device_register_resndata(NULL, "sa1100_wdt", -1, &res, 1, in pxa_register_wdt()