Lines Matching +full:clock +full:- +full:presc

1 // SPDX-License-Identifier: GPL-2.0
21 #include <linux/dma-mapping.h>
30 #include <linux/platform_data/s3c-hsudc.h>
31 #include <linux/platform_data/s3c-hsotg.h>
32 #include <linux/platform_data/dma-s3c24xx.h>
43 #include "gpio-samsung.h"
44 #include "gpio-cfg.h"
47 #include "regs-s3c2443-clock.h"
52 #include <linux/soc/samsung/s3c-adc.h>
53 #include <linux/platform_data/ata-samsung_cf.h>
55 #include <linux/platform_data/fb-s3c2410.h>
56 #include <linux/platform_data/hwmon-s3c.h>
57 #include <linux/platform_data/i2c-s3c2410.h>
59 #include <linux/platform_data/mmc-s3cmci.h>
60 #include <linux/platform_data/mtd-nand-s3c2410.h>
61 #include "pwm-core.h"
63 #include <linux/platform_data/touchscreen-s3c2410.h>
64 #include <linux/platform_data/usb-s3c2410_udc.h>
65 #include <linux/platform_data/usb-ohci-s3c2410.h>
66 #include "usb-phy.h"
67 #include <linux/platform_data/asoc-s3c.h>
68 #include <linux/platform_data/spi-s3c64xx.h>
80 .name = "samsung-ac97",
81 .id = -1,
101 .name = "s3c24xx-adc",
102 .id = -1,
116 .name = "exynos-adc",
117 .id = -1,
133 .name = "s3c2440-camif",
134 .id = -1,
155 .name = "s3c-fb",
156 .id = -1,
176 .name = "s3c-hwmon",
177 .id = -1,
203 .name = "s3c-sdhci",
233 .name = "s3c-sdhci",
265 .name = "s3c-sdhci",
295 .name = "s3c-sdhci",
320 .name = "s3c2410-i2c",
339 pd->bus_num = 0; in s3c_i2c0_set_platdata()
344 if (!npd->cfg_gpio) in s3c_i2c0_set_platdata()
345 npd->cfg_gpio = s3c_i2c0_cfg_gpio; in s3c_i2c0_set_platdata()
355 .name = "s3c2410-i2c",
367 pd->bus_num = 1; in s3c_i2c1_set_platdata()
372 if (!npd->cfg_gpio) in s3c_i2c1_set_platdata()
373 npd->cfg_gpio = s3c_i2c1_cfg_gpio; in s3c_i2c1_set_platdata()
384 .name = "s3c2410-i2c",
396 pd->bus_num = 2; in s3c_i2c2_set_platdata()
401 if (!npd->cfg_gpio) in s3c_i2c2_set_platdata()
402 npd->cfg_gpio = s3c_i2c2_cfg_gpio; in s3c_i2c2_set_platdata()
413 .name = "s3c2440-i2c",
425 pd->bus_num = 3; in s3c_i2c3_set_platdata()
430 if (!npd->cfg_gpio) in s3c_i2c3_set_platdata()
431 npd->cfg_gpio = s3c_i2c3_cfg_gpio; in s3c_i2c3_set_platdata()
442 .name = "s3c2440-i2c",
454 pd->bus_num = 4; in s3c_i2c4_set_platdata()
459 if (!npd->cfg_gpio) in s3c_i2c4_set_platdata()
460 npd->cfg_gpio = s3c_i2c4_cfg_gpio; in s3c_i2c4_set_platdata()
471 .name = "s3c2440-i2c",
483 pd->bus_num = 5; in s3c_i2c5_set_platdata()
488 if (!npd->cfg_gpio) in s3c_i2c5_set_platdata()
489 npd->cfg_gpio = s3c_i2c5_cfg_gpio; in s3c_i2c5_set_platdata()
500 .name = "s3c2440-i2c",
512 pd->bus_num = 6; in s3c_i2c6_set_platdata()
517 if (!npd->cfg_gpio) in s3c_i2c6_set_platdata()
518 npd->cfg_gpio = s3c_i2c6_cfg_gpio; in s3c_i2c6_set_platdata()
529 .name = "s3c2440-i2c",
541 pd->bus_num = 7; in s3c_i2c7_set_platdata()
546 if (!npd->cfg_gpio) in s3c_i2c7_set_platdata()
547 npd->cfg_gpio = s3c_i2c7_cfg_gpio; in s3c_i2c7_set_platdata()
559 .name = "s3c24xx-iis",
560 .id = -1,
600 .name = "samsung-keypad",
601 .id = -1,
612 if (!npd->cfg_gpio) in samsung_keypad_set_platdata()
613 npd->cfg_gpio = samsung_keypad_cfg_gpio; in samsung_keypad_set_platdata()
626 .name = "s3c2410-lcd",
627 .id = -1,
642 npd->displays = kmemdup(pd->displays, in s3c24xx_fb_set_platdata()
643 sizeof(struct s3c2410fb_display) * npd->num_displays, in s3c24xx_fb_set_platdata()
645 if (!npd->displays) in s3c24xx_fb_set_platdata()
661 .name = "s3c2410-nand",
662 .id = -1,
668 * s3c_nand_copy_set() - copy nand set data
683 size = sizeof(struct mtd_partition) * set->nr_partitions; in s3c_nand_copy_set()
685 ptr = kmemdup(set->partitions, size, GFP_KERNEL); in s3c_nand_copy_set()
686 set->partitions = ptr; in s3c_nand_copy_set()
689 return -ENOMEM; in s3c_nand_copy_set()
692 if (set->nr_map && set->nr_chips) { in s3c_nand_copy_set()
693 size = sizeof(int) * set->nr_chips; in s3c_nand_copy_set()
694 ptr = kmemdup(set->nr_map, size, GFP_KERNEL); in s3c_nand_copy_set()
695 set->nr_map = ptr; in s3c_nand_copy_set()
698 return -ENOMEM; in s3c_nand_copy_set()
721 size = sizeof(struct s3c2410_nand_set) * npd->nr_sets; in s3c_nand_set_platdata()
723 struct s3c2410_nand_set *from = npd->sets; in s3c_nand_set_platdata()
728 npd->sets = to; /* set, even if we failed */ in s3c_nand_set_platdata()
735 for (i = 0; i < npd->nr_sets; i++) { in s3c_nand_set_platdata()
758 .name = "samsung-onenand",
773 .name = "samsung-onenand",
794 .name = "samsung-pwm",
795 .id = -1,
816 .name = "s3c2410-rtc",
817 .id = -1,
831 .name = "s3c64xx-rtc",
832 .id = -1,
864 /* This is currently here to avoid a number of if (host->pdata)
872 .name = "s3c2410-sdi",
873 .id = -1,
895 .name = "s3c2410-spi",
911 .name = "s3c2410-spi",
931 .name = "s3c2410-ts",
932 .id = -1,
948 .presc = 49,
971 .name = "s3c2410-ohci",
972 .id = -1,
982 * s3c_ohci_set_platdata - initialise OHCI device platform data
1006 .name = "s3c2410-usbgadget",
1007 .id = -1,
1027 .name = "s3c-hsotg",
1028 .id = -1,
1043 if (!npd->phy_init) in dwc2_hsotg_set_platdata()
1044 npd->phy_init = s3c_usb_phy_init; in dwc2_hsotg_set_platdata()
1045 if (!npd->phy_exit) in dwc2_hsotg_set_platdata()
1046 npd->phy_exit = s3c_usb_phy_exit; in dwc2_hsotg_set_platdata()
1059 .name = "s3c-hsudc",
1060 .id = -1,
1072 pd->phy_init = s3c_hsudc_init_phy; in s3c24xx_hsudc_set_platdata()
1073 pd->phy_uninit = s3c_hsudc_uninit_phy; in s3c24xx_hsudc_set_platdata()
1086 .name = "s3c2410-wdt",
1087 .id = -1,
1100 .name = "s3c6410-spi",
1136 .name = "s3c6410-spi",
1172 .name = "s3c6410-spi",