Lines Matching +full:resource +full:- +full:id
1 // SPDX-License-Identifier: GPL-2.0
21 #include <linux/dma-mapping.h>
27 #include <linux/platform_data/s3c-hsotg.h>
36 #include "gpio-samsung.h"
37 #include "gpio-cfg.h"
42 #include <linux/platform_data/i2c-s3c2410.h>
44 #include "pwm-core.h"
46 #include "usb-phy.h"
47 #include <linux/platform_data/asoc-s3c.h>
48 #include <linux/platform_data/spi-s3c64xx.h>
55 static struct resource s3c_fb_resource[] = {
63 .name = "s3c-fb",
64 .id = -1,
66 .resource = s3c_fb_resource,
83 static struct resource s3c_hsmmc_resource[] = {
95 .name = "s3c-sdhci",
96 .id = 0,
98 .resource = s3c_hsmmc_resource,
113 static struct resource s3c_hsmmc1_resource[] = {
125 .name = "s3c-sdhci",
126 .id = 1,
128 .resource = s3c_hsmmc1_resource,
145 static struct resource s3c_hsmmc2_resource[] = {
157 .name = "s3c-sdhci",
158 .id = 2,
160 .resource = s3c_hsmmc2_resource,
175 static struct resource s3c_hsmmc3_resource[] = {
187 .name = "s3c-sdhci",
188 .id = 3,
190 .resource = s3c_hsmmc3_resource,
206 static struct resource s3c_i2c0_resource[] = {
212 .name = "s3c2410-i2c",
213 .id = 0,
215 .resource = s3c_i2c0_resource,
231 pd->bus_num = 0; in s3c_i2c0_set_platdata()
236 if (!npd->cfg_gpio) in s3c_i2c0_set_platdata()
237 npd->cfg_gpio = s3c_i2c0_cfg_gpio; in s3c_i2c0_set_platdata()
241 static struct resource s3c_i2c1_resource[] = {
247 .name = "s3c2410-i2c",
248 .id = 1,
250 .resource = s3c_i2c1_resource,
259 pd->bus_num = 1; in s3c_i2c1_set_platdata()
264 if (!npd->cfg_gpio) in s3c_i2c1_set_platdata()
265 npd->cfg_gpio = s3c_i2c1_cfg_gpio; in s3c_i2c1_set_platdata()
272 static struct resource samsung_keypad_resources[] = {
278 .name = "samsung-keypad",
279 .id = -1,
281 .resource = samsung_keypad_resources,
290 if (!npd->cfg_gpio) in samsung_keypad_set_platdata()
291 npd->cfg_gpio = samsung_keypad_cfg_gpio; in samsung_keypad_set_platdata()
298 static struct resource samsung_pwm_resource[] = {
303 .name = "samsung-pwm",
304 .id = -1,
306 .resource = samsung_pwm_resource,
318 static struct resource s3c_usb_resource[] = {
324 .name = "s3c2410-ohci",
325 .id = -1,
327 .resource = s3c_usb_resource,
338 static struct resource s3c_usb_hsotg_resources[] = {
344 .name = "s3c-hsotg",
345 .id = -1,
347 .resource = s3c_usb_hsotg_resources,
360 if (!npd->phy_init) in dwc2_hsotg_set_platdata()
361 npd->phy_init = s3c_usb_phy_init; in dwc2_hsotg_set_platdata()
362 if (!npd->phy_exit) in dwc2_hsotg_set_platdata()
363 npd->phy_exit = s3c_usb_phy_exit; in dwc2_hsotg_set_platdata()
368 static struct resource s3c64xx_spi0_resource[] = {
374 .name = "s3c6410-spi",
375 .id = 0,
377 .resource = s3c64xx_spi0_resource,