/openbmc/u-boot/arch/arm/include/asm/arch-tegra/ |
H A D | clock.h | 120 void reset_periph(enum periph_id periph_id, int us_delay); 128 void reset_set_enable(enum periph_id periph_id, int enable); 160 void clock_ll_set_source(enum periph_id periph_id, unsigned source); 196 enum clock_id clock_get_periph_parent(enum periph_id periph_id); 207 unsigned clock_start_periph_pll(enum periph_id periph_id, 220 unsigned long clock_get_periph_rate(enum periph_id periph_id, 236 unsigned clock_adjust_periph_pll_div(enum periph_id periph_id, 256 void clock_ll_start_uart(enum periph_id periph_id); 294 u32 *get_periph_source_reg(enum periph_id periph_id); 341 int get_periph_clock_source(enum periph_id periph_id, [all …]
|
H A D | funcmux.h | 26 int funcmux_select(enum periph_id id, int config);
|
/openbmc/u-boot/arch/arm/mach-tegra/ |
H A D | clock.c | 180 int clock_ll_set_source_bits(enum periph_id periph_id, int mux_bits, in clock_ll_set_source_bits() argument 231 void clock_ll_set_source(enum periph_id periph_id, unsigned source) in clock_ll_set_source() argument 309 unsigned long clock_get_periph_rate(enum periph_id periph_id, in clock_get_periph_rate() argument 406 static int adjust_periph_pll(enum periph_id periph_id, int source, in adjust_periph_pll() argument 425 enum clock_id clock_get_periph_parent(enum periph_id periph_id) in clock_get_periph_parent() argument 439 unsigned clock_adjust_periph_pll_div(enum periph_id periph_id, in clock_adjust_periph_pll_div() argument 473 unsigned clock_start_periph_pll(enum periph_id periph_id, in clock_start_periph_pll() argument 498 void reset_periph(enum periph_id periph_id, int us_delay) in reset_periph() argument 642 void clock_ll_start_uart(enum periph_id periph_id) in clock_ll_start_uart() argument 709 enum periph_id periph_id; in clock_init() local [all …]
|
H A D | board.c | 175 static enum periph_id id_for_uart[] = { in setup_uarts() 186 enum periph_id id = id_for_uart[i]; in setup_uarts()
|
/openbmc/u-boot/arch/arm/mach-tegra/tegra114/ |
H A D | clock.c | 478 u32 *get_periph_source_reg(enum periph_id periph_id) in get_periph_source_reg() argument 485 if (periph_id == PERIPH_ID_CSI) in get_periph_source_reg() 488 assert(periph_id >= PERIPH_ID_FIRST && periph_id < PERIPH_ID_COUNT); in get_periph_source_reg() 498 int get_periph_clock_info(enum periph_id periph_id, int *mux_bits, in get_periph_clock_info() argument 524 enum clock_id get_periph_clock_id(enum periph_id periph_id, int source) in get_periph_clock_id() argument 555 int get_periph_clock_source(enum periph_id periph_id, in get_periph_clock_source() argument 574 void clock_set_enable(enum periph_id periph_id, int enable) in clock_set_enable() argument 589 reg |= PERIPH_MASK(periph_id); in clock_set_enable() 591 reg &= ~PERIPH_MASK(periph_id); in clock_set_enable() 595 void reset_set_enable(enum periph_id periph_id, int enable) in reset_set_enable() argument [all …]
|
/openbmc/u-boot/arch/arm/mach-tegra/tegra30/ |
H A D | clock.c | 458 u32 *get_periph_source_reg(enum periph_id periph_id) in get_periph_source_reg() argument 465 if (periph_id == PERIPH_ID_CSI) in get_periph_source_reg() 468 assert(periph_id >= PERIPH_ID_FIRST && periph_id < PERIPH_ID_COUNT); in get_periph_source_reg() 478 int get_periph_clock_info(enum periph_id periph_id, int *mux_bits, in get_periph_clock_info() argument 504 enum clock_id get_periph_clock_id(enum periph_id periph_id, int source) in get_periph_clock_id() argument 535 int get_periph_clock_source(enum periph_id periph_id, in get_periph_clock_source() argument 554 void clock_set_enable(enum periph_id periph_id, int enable) in clock_set_enable() argument 569 reg |= PERIPH_MASK(periph_id); in clock_set_enable() 571 reg &= ~PERIPH_MASK(periph_id); in clock_set_enable() 575 void reset_set_enable(enum periph_id periph_id, int enable) in reset_set_enable() argument [all …]
|
/openbmc/u-boot/arch/arm/mach-tegra/tegra20/ |
H A D | clock.c | 403 u32 *get_periph_source_reg(enum periph_id periph_id) in get_periph_source_reg() argument 415 int get_periph_clock_info(enum periph_id periph_id, int *mux_bits, in get_periph_clock_info() argument 420 if (!clock_periph_id_isvalid(periph_id)) in get_periph_clock_info() 447 enum clock_id get_periph_clock_id(enum periph_id periph_id, int source) in get_periph_clock_id() argument 478 int get_periph_clock_source(enum periph_id periph_id, in get_periph_clock_source() argument 507 void clock_set_enable(enum periph_id periph_id, int enable) in clock_set_enable() argument 518 reg |= PERIPH_MASK(periph_id); in clock_set_enable() 520 reg &= ~PERIPH_MASK(periph_id); in clock_set_enable() 524 void reset_set_enable(enum periph_id periph_id, int enable) in reset_set_enable() argument 535 reg |= PERIPH_MASK(periph_id); in reset_set_enable() [all …]
|
/openbmc/u-boot/drivers/spi/ |
H A D | exynos_spi.c | 24 enum periph_id periph_id; member 34 enum periph_id periph_id; /* Peripheral ID for this device */ member 258 plat->periph_id = pinmux_decode_periph_id(blob, node); in exynos_spi_ofdata_to_platdata() 260 if (plat->periph_id == PERIPH_ID_NONE) { in exynos_spi_ofdata_to_platdata() 262 plat->periph_id); in exynos_spi_ofdata_to_platdata() 272 __func__, plat->regs, plat->periph_id, plat->frequency, in exynos_spi_ofdata_to_platdata() 284 if (plat->periph_id == PERIPH_ID_SPI1 || in exynos_spi_probe() 285 plat->periph_id == PERIPH_ID_SPI2) in exynos_spi_probe() 293 priv->periph_id = plat->periph_id; in exynos_spi_probe() 303 exynos_pinmux_config(priv->periph_id, PINMUX_FLAG_NONE); in exynos_spi_claim_bus() [all …]
|
H A D | tegra114_spi.c | 91 int periph_id; member 101 plat->periph_id = clock_decode_periph_id(bus); in tegra114_spi_ofdata_to_platdata() 103 if (plat->periph_id == PERIPH_ID_NONE) { in tegra114_spi_ofdata_to_platdata() 105 plat->periph_id); in tegra114_spi_ofdata_to_platdata() 115 __func__, plat->base, plat->periph_id, plat->frequency, in tegra114_spi_ofdata_to_platdata() 133 priv->periph_id = plat->periph_id; in tegra114_spi_probe() 139 rate = clock_start_periph_pll(priv->periph_id, CLOCK_ID_PERIPH, in tegra114_spi_probe() 142 rate = clock_start_periph_pll(priv->periph_id, CLOCK_ID_OSC, in tegra114_spi_probe()
|
H A D | tegra20_sflash.c | 71 int periph_id; member 93 plat->periph_id = clock_decode_periph_id(bus); in tegra20_sflash_ofdata_to_platdata() 95 if (plat->periph_id == PERIPH_ID_NONE) { in tegra20_sflash_ofdata_to_platdata() 97 plat->periph_id); in tegra20_sflash_ofdata_to_platdata() 107 __func__, plat->base, plat->periph_id, plat->frequency, in tegra20_sflash_ofdata_to_platdata() 122 priv->periph_id = plat->periph_id; in tegra20_sflash_probe() 125 clock_start_periph_pll(priv->periph_id, CLOCK_ID_PERIPH, in tegra20_sflash_probe() 139 clock_start_periph_pll(priv->periph_id, CLOCK_ID_PERIPH, in tegra20_sflash_claim_bus()
|
H A D | tegra210_qspi.c | 90 int periph_id; member 102 plat->periph_id = clock_decode_periph_id(bus); in tegra210_qspi_ofdata_to_platdata() 104 if (plat->periph_id == PERIPH_ID_NONE) { in tegra210_qspi_ofdata_to_platdata() 106 plat->periph_id); in tegra210_qspi_ofdata_to_platdata() 116 __func__, plat->base, plat->periph_id, plat->frequency, in tegra210_qspi_ofdata_to_platdata() 131 priv->periph_id = plat->periph_id; in tegra210_qspi_probe() 134 clock_start_periph_pll(priv->periph_id, CLOCK_ID_PERIPH, priv->freq); in tegra210_qspi_probe() 145 clock_start_periph_pll(priv->periph_id, CLOCK_ID_PERIPH, priv->freq); in tegra210_qspi_claim_bus()
|
H A D | tegra20_slink.c | 82 int periph_id; member 99 plat->periph_id = clock_decode_periph_id(bus); in tegra30_spi_ofdata_to_platdata() 101 if (plat->periph_id == PERIPH_ID_NONE) { in tegra30_spi_ofdata_to_platdata() 103 plat->periph_id); in tegra30_spi_ofdata_to_platdata() 113 __func__, plat->base, plat->periph_id, plat->frequency, in tegra30_spi_ofdata_to_platdata() 128 priv->periph_id = plat->periph_id; in tegra30_spi_probe() 131 clock_start_periph_pll(priv->periph_id, CLOCK_ID_PERIPH, in tegra30_spi_probe() 145 clock_start_periph_pll(priv->periph_id, CLOCK_ID_PERIPH, in tegra30_spi_claim_bus()
|
H A D | tegra_spi.h | 7 enum periph_id periph_id; member
|
/openbmc/u-boot/arch/arm/mach-tegra/tegra124/ |
H A D | clock.c | 620 u32 *get_periph_source_reg(enum periph_id periph_id) in get_periph_source_reg() argument 627 if (periph_id == PERIPH_ID_CSI) in get_periph_source_reg() 630 assert(periph_id >= PERIPH_ID_FIRST && periph_id < PERIPH_ID_COUNT); in get_periph_source_reg() 644 int get_periph_clock_info(enum periph_id periph_id, int *mux_bits, in get_periph_clock_info() argument 670 enum clock_id get_periph_clock_id(enum periph_id periph_id, int source) in get_periph_clock_id() argument 701 int get_periph_clock_source(enum periph_id periph_id, in get_periph_clock_source() argument 720 void clock_set_enable(enum periph_id periph_id, int enable) in clock_set_enable() argument 737 reg |= PERIPH_MASK(periph_id); in clock_set_enable() 739 reg &= ~PERIPH_MASK(periph_id); in clock_set_enable() 743 void reset_set_enable(enum periph_id periph_id, int enable) in reset_set_enable() argument [all …]
|
/openbmc/u-boot/arch/arm/mach-tegra/tegra210/ |
H A D | clock.c | 699 u32 *get_periph_source_reg(enum periph_id periph_id) in get_periph_source_reg() argument 706 if (periph_id == PERIPH_ID_CSI) in get_periph_source_reg() 709 assert(periph_id >= PERIPH_ID_FIRST && periph_id < PERIPH_ID_COUNT); in get_periph_source_reg() 734 int get_periph_clock_info(enum periph_id periph_id, int *mux_bits, in get_periph_clock_info() argument 760 enum clock_id get_periph_clock_id(enum periph_id periph_id, int source) in get_periph_clock_id() argument 791 int get_periph_clock_source(enum periph_id periph_id, in get_periph_clock_source() argument 810 void clock_set_enable(enum periph_id periph_id, int enable) in clock_set_enable() argument 830 reg |= PERIPH_MASK(periph_id); in clock_set_enable() 832 reg &= ~PERIPH_MASK(periph_id); in clock_set_enable() 836 void reset_set_enable(enum periph_id periph_id, int enable) in reset_set_enable() argument [all …]
|
H A D | funcmux.c | 14 int funcmux_select(enum periph_id id, int config) in funcmux_select()
|
/openbmc/u-boot/drivers/usb/host/ |
H A D | ehci-tegra.c | 79 enum periph_id periph_id;/* peripheral id */ member 283 reset_periph(config->periph_id, 2); in usbf_reset_controller() 317 if (config->periph_id == PERIPH_ID_USBD) { in init_phy_mux() 355 clock_enable(config->periph_id); in init_utmi_usb_controller() 449 if (config->periph_id != PERIPH_ID_USBD) { in init_utmi_usb_controller() 526 if (config->periph_id == PERIPH_ID_USBD) in init_utmi_usb_controller() 529 if (config->periph_id == PERIPH_ID_USB2) in init_utmi_usb_controller() 532 if (config->periph_id == PERIPH_ID_USB3) in init_utmi_usb_controller() 614 clock_enable(config->periph_id); in init_ulpi_usb_controller() 720 if (config->periph_id == PERIPH_ID_NONE) { in fdt_decode_usb() [all …]
|
/openbmc/u-boot/doc/driver-model/ |
H A D | spi-howto.txt | 181 enum periph_id periph_id; 193 enum periph_id periph_id; 226 if (plat->periph_id == PERIPH_ID_NONE) { 228 plat->periph_id); 250 .periph_id = ... 277 enum periph_id periph_id; /* Peripheral ID for this device */ 292 enum periph_id periph_id; /* Peripheral ID for this device */ 327 if (plat->periph_id == PERIPH_ID_SPI1 || 328 plat->periph_id == PERIPH_ID_SPI2) 336 priv->periph_id = plat->periph_id; [all …]
|
/openbmc/u-boot/arch/arm/mach-exynos/ |
H A D | clock.c | 21 enum periph_id id; 1451 static int exynos5_set_spi_clk(enum periph_id periph_id, in exynos5_set_spi_clk() argument 1465 __func__, periph_id); in exynos5_set_spi_clk() 1471 switch (periph_id) { in exynos5_set_spi_clk() 1499 periph_id); in exynos5_set_spi_clk() 1508 static int exynos5420_set_spi_clk(enum periph_id periph_id, in exynos5420_set_spi_clk() argument 1523 __func__, periph_id); in exynos5420_set_spi_clk() 1529 switch (periph_id) { in exynos5420_set_spi_clk() 1562 periph_id); in exynos5420_set_spi_clk() 1641 enum periph_id id; in get_uart_clk() [all …]
|
/openbmc/qemu/hw/dma/ |
H A D | pl330.c | 670 uint8_t periph_id; in pl330_dmaflushp() local 676 periph_id = (args[0] >> 3) & 0x1f; in pl330_dmaflushp() 677 if (periph_id >= ch->parent->num_periph_req) { in pl330_dmaflushp() 759 uint8_t periph_id; in pl330_dmaldp() local 765 periph_id = (args[0] >> 3) & 0x1f; in pl330_dmaldp() 766 if (periph_id >= ch->parent->num_periph_req) { in pl330_dmaldp() 934 uint8_t periph_id; in pl330_dmastp() local 940 periph_id = (args[0] >> 3) & 0x1f; in pl330_dmastp() 1012 uint8_t periph_id; in pl330_dmawfp() local 1018 periph_id = (args[0] >> 3) & 0x1f; in pl330_dmawfp() [all …]
|
/openbmc/u-boot/arch/arm/include/asm/arch-stv0991/ |
H A D | stv0991_defs.h | 11 extern int stv0991_pinmux_config(enum periph_id);
|
H A D | stv0991_periph.h | 16 enum periph_id { enum
|
/openbmc/u-boot/arch/arm/include/asm/arch-hi6220/ |
H A D | periph.h | 16 enum periph_id { enum
|
/openbmc/u-boot/arch/arm/mach-s5pc1xx/include/mach/ |
H A D | periph.h | 16 enum periph_id { enum
|
/openbmc/u-boot/arch/arm/include/asm/arch-aspeed/ |
H A D | pinctrl.h | 13 enum periph_id { enum
|