Lines Matching +full:rng +full:- +full:gpios
1 // SPDX-License-Identifier: GPL-2.0-only
20 #include <linux/platform_data/pinctrl-single.h>
21 #include <linux/platform_data/hsmmc-omap.h>
22 #include <linux/platform_data/iommu-omap.h>
23 #include <linux/platform_data/ti-sysc.h>
25 #include <linux/platform_data/asoc-ti-mcbsp.h>
26 #include <linux/platform_data/ti-prm.h>
30 #include "common-board-devices.h"
33 #include "omap-secure.h"
68 * Configures GPIOs 126, 127 and 129 to 1.8V mode instead of 3.0V
70 * Note that if the pins are used for MMC1, pbias-regulator
131 pr_err("SBC-T3x: %s reset gpio request failed: %d\n", in omap3_sbc_t3x_usb_hub_init()
150 omap3_sbc_t3x_usb_hub_init(167, "sb-t35 usb hub"); in omap3_sbc_t3730_legacy_init()
155 omap3_sbc_t3x_usb_hub_init(167, "sb-t35 usb hub"); in omap3_sbc_t3530_legacy_init()
209 pr_err("SBC-T3517: wl12xx gpios request failed: %d\n", err); in omap3_sbc_t3517_wifi_init()
222 omap3_sbc_t3x_usb_hub_init(152, "cm-t3517 usb hub"); in omap3_sbc_t3517_legacy_init()
223 omap3_sbc_t3x_usb_hub_init(98, "sb-t35 usb hub"); in omap3_sbc_t3517_legacy_init()
242 pr_info("RX-51: Enabling ARM errata 430973 workaround\n"); in nokia_n900_legacy_init()
246 pr_warn("RX-51: Not enabling ARM errata 430973 workaround\n"); in nokia_n900_legacy_init()
265 .name = "pandora-backlight",
266 .id = -1,
323 if (hwclk && hwclk->clkdm_name) in ti_sysc_find_one_clockdomain()
324 clkdm = clkdm_lookup(hwclk->clkdm_name); in ti_sysc_find_one_clockdomain()
330 * ti_sysc_clkdm_init - find clockdomain based on clock
340 * and do not need to populate oh->_clk for dynamically
348 cookie->clkdm = ti_sysc_find_one_clockdomain(fck); in ti_sysc_clkdm_init()
349 if (cookie->clkdm) in ti_sysc_clkdm_init()
352 cookie->clkdm = ti_sysc_find_one_clockdomain(ick); in ti_sysc_clkdm_init()
353 if (cookie->clkdm) in ti_sysc_clkdm_init()
356 return -ENODEV; in ti_sysc_clkdm_init()
362 if (cookie->clkdm) in ti_sysc_clkdm_deny_idle()
363 clkdm_deny_idle(cookie->clkdm); in ti_sysc_clkdm_deny_idle()
369 if (cookie->clkdm) in ti_sysc_clkdm_allow_idle()
370 clkdm_allow_idle(cookie->clkdm); in ti_sysc_clkdm_allow_idle()
376 if (!cookie->data) in ti_sysc_enable_module()
377 return -EINVAL; in ti_sysc_enable_module()
379 return omap_hwmod_enable(cookie->data); in ti_sysc_enable_module()
385 if (!cookie->data) in ti_sysc_idle_module()
386 return -EINVAL; in ti_sysc_idle_module()
388 return omap_hwmod_idle(cookie->data); in ti_sysc_idle_module()
394 if (!cookie->data) in ti_sysc_shutdown_module()
395 return -EINVAL; in ti_sysc_shutdown_module()
397 return omap_hwmod_shutdown(cookie->data); in ti_sysc_shutdown_module()
434 * GPIOs for TWL are initialized by the I2C bus and need custom
439 if (dev->platform_data) in omap_auxdata_legacy_init()
442 if (strcmp("twl4030-gpio", dev_name(dev))) in omap_auxdata_legacy_init()
445 dev->platform_data = &twl_gpio_auxdata; in omap_auxdata_legacy_init()
466 { "nokia,n810-wimax", omap2420_n8x0_legacy_init, },
469 { "compulab,omap3-sbc-t3730", omap3_sbc_t3730_twl_init, },
478 OF_DEV_AUXDATA("ti,omap2420-mmc", 0x4809c000, "mmci-omap.0", NULL),
479 OF_DEV_AUXDATA("menelaus", 0x72, "1-0072", &n8x0_menelaus_platform_data),
480 OF_DEV_AUXDATA("tlv320aic3x", 0x18, "2-0018", &n810_aic33_data),
483 OF_DEV_AUXDATA("ti,omap2-iommu", 0x5d000000, "5d000000.mmu",
485 OF_DEV_AUXDATA("ti,omap2-iommu", 0x480bd400, "480bd400.mmu",
487 OF_DEV_AUXDATA("ti,omap3-smartreflex-core", 0x480cb000,
489 OF_DEV_AUXDATA("ti,omap3-smartreflex-mpu-iva", 0x480c9000,
491 OF_DEV_AUXDATA("ti,omap3-hsmmc", 0x4809c000, "4809c000.mmc", &mmc_pdata[0]),
492 OF_DEV_AUXDATA("ti,omap3-hsmmc", 0x480b4000, "480b4000.mmc", &mmc_pdata[1]),
495 OF_DEV_AUXDATA("ti,am3517-emac", 0x5c000000, "davinci_emac.0",
497 OF_DEV_AUXDATA("nokia,n900-rom-rng", 0, NULL, rx51_secure_rng_call),
500 OF_DEV_AUXDATA("ti,omap3-mcbsp", 0x49022000, "49022000.mcbsp", &mcbsp_pdata),
501 OF_DEV_AUXDATA("ti,omap3-mcbsp", 0x49024000, "49024000.mcbsp", &mcbsp_pdata),
505 OF_DEV_AUXDATA("ti,am3352-wkup-m3", 0x44d00000, "44d00000.wkup_m3",
509 OF_DEV_AUXDATA("ti,am4372-wkup-m3", 0x44d00000, "44d00000.wkup_m3",
513 OF_DEV_AUXDATA("ti,omap4-smartreflex-iva", 0x4a0db000,
515 OF_DEV_AUXDATA("ti,omap4-smartreflex-core", 0x4a0dd000,
517 OF_DEV_AUXDATA("ti,omap4-smartreflex-mpu", 0x4a0d9000,
521 OF_DEV_AUXDATA("ti,dra7-hsmmc", 0x4809c000, "4809c000.mmc",
523 OF_DEV_AUXDATA("ti,dra7-hsmmc", 0x480b4000, "480b4000.mmc",
525 OF_DEV_AUXDATA("ti,dra7-hsmmc", 0x480ad000, "480ad000.mmc",
527 OF_DEV_AUXDATA("ti,dra7-dsp-iommu", 0x40d01000, "40d01000.mmu",
529 OF_DEV_AUXDATA("ti,dra7-dsp-iommu", 0x41501000, "41501000.mmu",
531 OF_DEV_AUXDATA("ti,dra7-iommu", 0x58882000, "58882000.mmu",
536 OF_DEV_AUXDATA("pinctrl-single", 0, NULL, &pcs_pdata),
537 OF_DEV_AUXDATA("ti,omap-prm-inst", 0, NULL, &ti_prm_pdata),
538 OF_DEV_AUXDATA("ti,omap-sdma", 0, NULL, &dma_plat_info),
548 { "compulab,omap3-sbc-t3517", omap3_sbc_t3517_legacy_init, },
549 { "compulab,omap3-sbc-t3530", omap3_sbc_t3530_legacy_init, },
550 { "compulab,omap3-sbc-t3730", omap3_sbc_t3730_legacy_init, },
551 { "nokia,omap3-n900", nokia_n900_legacy_init, },
552 { "nokia,omap3-n9", hsmmc2_internal_input_clk, },
553 { "nokia,omap3-n950", hsmmc2_internal_input_clk, },
554 { "logicpd,dm3730-torpedo-devkit", omap3_logicpd_torpedo_init, },
555 { "ti,omap3-evm-37xx", omap3_evm_legacy_init, },
556 { "ti,am3517-evm", am3517_evm_legacy_init, },
557 { "technexion,omap3-tao3530", omap3_tao3530_legacy_init, },
558 { "openpandora,omap3-pandora-600mhz", omap3_pandora_legacy_init, },
559 { "openpandora,omap3-pandora-1ghz", omap3_pandora_legacy_init, },
562 { "ti,omap5-uevm", omap5_uevm_legacy_init, },
565 { "ti,dra7-evm", dra7x_evm_mmc_quirk, },
572 while (quirks->compatible) { in pdata_quirks_check()
573 if (of_machine_is_compatible(quirks->compatible)) { in pdata_quirks_check()
574 if (quirks->fn) in pdata_quirks_check()
575 quirks->fn(); in pdata_quirks_check()