Lines Matching +full:resource +full:- +full:id
1 // SPDX-License-Identifier: GPL-2.0
21 #include <linux/dma-mapping.h>
26 #include <linux/platform_data/s3c-hsotg.h>
35 #include "gpio-samsung.h"
36 #include "gpio-cfg.h"
41 #include <linux/platform_data/i2c-s3c2410.h>
43 #include "pwm-core.h"
45 #include "usb-phy.h"
46 #include <linux/platform_data/asoc-s3c.h>
47 #include <linux/platform_data/spi-s3c64xx.h>
54 static struct resource s3c_fb_resource[] = {
62 .name = "s3c-fb",
63 .id = -1,
65 .resource = s3c_fb_resource,
82 static struct resource s3c_hsmmc_resource[] = {
94 .name = "s3c-sdhci",
95 .id = 0,
97 .resource = s3c_hsmmc_resource,
112 static struct resource s3c_hsmmc1_resource[] = {
124 .name = "s3c-sdhci",
125 .id = 1,
127 .resource = s3c_hsmmc1_resource,
144 static struct resource s3c_hsmmc2_resource[] = {
156 .name = "s3c-sdhci",
157 .id = 2,
159 .resource = s3c_hsmmc2_resource,
174 static struct resource s3c_hsmmc3_resource[] = {
186 .name = "s3c-sdhci",
187 .id = 3,
189 .resource = s3c_hsmmc3_resource,
205 static struct resource s3c_i2c0_resource[] = {
211 .name = "s3c2410-i2c",
212 .id = 0,
214 .resource = s3c_i2c0_resource,
230 pd->bus_num = 0; in s3c_i2c0_set_platdata()
235 if (!npd->cfg_gpio) in s3c_i2c0_set_platdata()
236 npd->cfg_gpio = s3c_i2c0_cfg_gpio; in s3c_i2c0_set_platdata()
240 static struct resource s3c_i2c1_resource[] = {
246 .name = "s3c2410-i2c",
247 .id = 1,
249 .resource = s3c_i2c1_resource,
258 pd->bus_num = 1; in s3c_i2c1_set_platdata()
263 if (!npd->cfg_gpio) in s3c_i2c1_set_platdata()
264 npd->cfg_gpio = s3c_i2c1_cfg_gpio; in s3c_i2c1_set_platdata()
271 static struct resource samsung_keypad_resources[] = {
277 .name = "samsung-keypad",
278 .id = -1,
280 .resource = samsung_keypad_resources,
289 if (!npd->cfg_gpio) in samsung_keypad_set_platdata()
290 npd->cfg_gpio = samsung_keypad_cfg_gpio; in samsung_keypad_set_platdata()
297 static struct resource samsung_pwm_resource[] = {
302 .name = "samsung-pwm",
303 .id = -1,
305 .resource = samsung_pwm_resource,
317 static struct resource s3c_usb_resource[] = {
323 .name = "s3c2410-ohci",
324 .id = -1,
326 .resource = s3c_usb_resource,
337 static struct resource s3c_usb_hsotg_resources[] = {
343 .name = "s3c-hsotg",
344 .id = -1,
346 .resource = s3c_usb_hsotg_resources,
359 if (!npd->phy_init) in dwc2_hsotg_set_platdata()
360 npd->phy_init = s3c_usb_phy_init; in dwc2_hsotg_set_platdata()
361 if (!npd->phy_exit) in dwc2_hsotg_set_platdata()
362 npd->phy_exit = s3c_usb_phy_exit; in dwc2_hsotg_set_platdata()
367 static struct resource s3c64xx_spi0_resource[] = {
373 .name = "s3c6410-spi",
374 .id = 0,
376 .resource = s3c64xx_spi0_resource,