coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
pinmux.c File Reference
#include <soc/gpio.h>
#include <soc/pinmux.h>
Include dependency graph for pinmux.c:

Go to the source code of this file.

Data Structures

struct  gpio
 

Functions

static void exynos_pinmux_uart (int start, int count)
 
void exynos_pinmux_uart0 (void)
 
void exynos_pinmux_uart1 (void)
 
void exynos_pinmux_uart2 (void)
 
void exynos_pinmux_uart3 (void)
 
static void exynos_pinmux_sdmmc (struct gpio *gpios, int num_gpios)
 
void exynos_pinmux_sdmmc0 (void)
 
void exynos_pinmux_sdmmc1 (void)
 
void exynos_pinmux_sdmmc2 (void)
 
static void exynos_pinmux_spi (int start, int cfg)
 
void exynos_pinmux_spi0 (void)
 
void exynos_pinmux_spi1 (void)
 
void exynos_pinmux_spi2 (void)
 
void exynos_pinmux_spi3 (void)
 
void exynos_pinmux_spi4 (void)
 
static void exynos_pinmux_i2c (int start, int func)
 
void exynos_pinmux_i2c0 (void)
 
void exynos_pinmux_i2c1 (void)
 
void exynos_pinmux_i2c2 (void)
 
void exynos_pinmux_i2c3 (void)
 
void exynos_pinmux_i2c4 (void)
 
void exynos_pinmux_i2c5 (void)
 
void exynos_pinmux_i2c6 (void)
 
void exynos_pinmux_i2c7 (void)
 
void exynos_pinmux_i2c8 (void)
 
void exynos_pinmux_i2c9 (void)
 
void exynos_pinmux_i2c10 (void)
 
void exynos_pinmux_dphpd (void)
 

Function Documentation

◆ exynos_pinmux_dphpd()

void exynos_pinmux_dphpd ( void  )

Definition at line 221 of file pinmux.c.

References gpio_cfg_pin(), GPIO_FUNC, GPIO_PULL_NONE, gpio_set_pull(), and GPIO_X07.

Referenced by exynos_dp_bridge_setup(), and setup_graphics().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ exynos_pinmux_i2c()

static void exynos_pinmux_i2c ( int  start,
int  func 
)
static

◆ exynos_pinmux_i2c0()

void exynos_pinmux_i2c0 ( void  )

Definition at line 166 of file pinmux.c.

References exynos_pinmux_i2c(), and GPIO_B30.

Referenced by gpio_init(), and setup_power().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ exynos_pinmux_i2c1()

void exynos_pinmux_i2c1 ( void  )

Definition at line 171 of file pinmux.c.

References exynos_pinmux_i2c(), and GPIO_B32.

Referenced by gpio_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ exynos_pinmux_i2c10()

void exynos_pinmux_i2c10 ( void  )

Definition at line 216 of file pinmux.c.

References exynos_pinmux_i2c(), and GPIO_B40.

Referenced by gpio_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ exynos_pinmux_i2c2()

void exynos_pinmux_i2c2 ( void  )

Definition at line 176 of file pinmux.c.

References exynos_pinmux_i2c(), and GPIO_A06.

Referenced by gpio_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ exynos_pinmux_i2c3()

void exynos_pinmux_i2c3 ( void  )

Definition at line 181 of file pinmux.c.

References exynos_pinmux_i2c(), and GPIO_A12.

Referenced by gpio_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ exynos_pinmux_i2c4()

void exynos_pinmux_i2c4 ( void  )

Definition at line 186 of file pinmux.c.

References exynos_pinmux_i2c(), and GPIO_A20.

Referenced by gpio_init(), and setup_power().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ exynos_pinmux_i2c5()

void exynos_pinmux_i2c5 ( void  )

Definition at line 191 of file pinmux.c.

References exynos_pinmux_i2c(), and GPIO_A22.

Here is the call graph for this function:

◆ exynos_pinmux_i2c6()

void exynos_pinmux_i2c6 ( void  )

Definition at line 196 of file pinmux.c.

References exynos_pinmux_i2c(), and GPIO_B13.

Here is the call graph for this function:

◆ exynos_pinmux_i2c7()

void exynos_pinmux_i2c7 ( void  )

Definition at line 201 of file pinmux.c.

References exynos_pinmux_i2c(), and GPIO_B22.

Referenced by gpio_init(), and parade_dp_bridge_setup().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ exynos_pinmux_i2c8()

void exynos_pinmux_i2c8 ( void  )

Definition at line 206 of file pinmux.c.

References exynos_pinmux_i2c(), and GPIO_B34.

Referenced by gpio_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ exynos_pinmux_i2c9()

void exynos_pinmux_i2c9 ( void  )

Definition at line 211 of file pinmux.c.

References exynos_pinmux_i2c(), and GPIO_B36.

Referenced by gpio_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ exynos_pinmux_sdmmc()

static void exynos_pinmux_sdmmc ( struct gpio gpios,
int  num_gpios 
)
static

Definition at line 43 of file pinmux.c.

References gpio_cfg_pin(), GPIO_FUNC, gpio_set_drv(), gpio_set_pull(), and pull.

Referenced by exynos_pinmux_sdmmc0(), exynos_pinmux_sdmmc1(), and exynos_pinmux_sdmmc2().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ exynos_pinmux_sdmmc0()

void exynos_pinmux_sdmmc0 ( void  )

Definition at line 54 of file pinmux.c.

References ARRAY_SIZE, exynos_pinmux_sdmmc(), GPIO_C00, GPIO_C01, GPIO_C02, GPIO_C03, GPIO_C04, GPIO_C05, GPIO_C06, GPIO_C10, GPIO_C30, GPIO_C31, GPIO_C32, GPIO_C33, GPIO_DRV_4X, GPIO_OUTPUT, GPIO_PULL_NONE, GPIO_PULL_UP, and gpio_set_value().

Referenced by setup_storage().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ exynos_pinmux_sdmmc1()

void exynos_pinmux_sdmmc1 ( void  )

Definition at line 82 of file pinmux.c.

References ARRAY_SIZE, exynos_pinmux_sdmmc(), GPIO_C10, GPIO_C11, GPIO_C12, GPIO_C13, GPIO_C14, GPIO_C15, GPIO_C16, GPIO_C20, GPIO_D14, GPIO_D15, GPIO_D16, GPIO_D17, GPIO_DRV_4X, GPIO_PULL_NONE, and GPIO_PULL_UP.

Here is the call graph for this function:

◆ exynos_pinmux_sdmmc2()

void exynos_pinmux_sdmmc2 ( void  )

Definition at line 102 of file pinmux.c.

References ARRAY_SIZE, exynos_pinmux_sdmmc(), GPIO_C20, GPIO_C21, GPIO_C22, GPIO_C23, GPIO_C24, GPIO_C25, GPIO_C26, GPIO_C30, GPIO_DRV_4X, and GPIO_PULL_NONE.

Referenced by setup_storage().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ exynos_pinmux_spi()

static void exynos_pinmux_spi ( int  start,
int  cfg 
)
static

Definition at line 117 of file pinmux.c.

References gpio_cfg_pin(), GPIO_DRV_3X, GPIO_PULL_NONE, gpio_set_drv(), and gpio_set_pull().

Referenced by exynos_pinmux_spi0(), exynos_pinmux_spi1(), exynos_pinmux_spi2(), and exynos_pinmux_spi3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ exynos_pinmux_spi0()

void exynos_pinmux_spi0 ( void  )

Definition at line 128 of file pinmux.c.

References exynos_pinmux_spi(), and GPIO_A20.

Here is the call graph for this function:

◆ exynos_pinmux_spi1()

void exynos_pinmux_spi1 ( void  )

Definition at line 133 of file pinmux.c.

References exynos_pinmux_spi(), and GPIO_A24.

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ exynos_pinmux_spi2()

void exynos_pinmux_spi2 ( void  )

Definition at line 138 of file pinmux.c.

References exynos_pinmux_spi(), and GPIO_B11.

Referenced by setup_ec().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ exynos_pinmux_spi3()

void exynos_pinmux_spi3 ( void  )

Definition at line 143 of file pinmux.c.

References exynos_pinmux_spi(), GPIO_E00, and GPIO_F10.

Here is the call graph for this function:

◆ exynos_pinmux_spi4()

void exynos_pinmux_spi4 ( void  )

Definition at line 148 of file pinmux.c.

References gpio_cfg_pin(), GPIO_E02, GPIO_E04, GPIO_F02, and GPIO_FUNC.

Here is the call graph for this function:

◆ exynos_pinmux_uart()

static void exynos_pinmux_uart ( int  start,
int  count 
)
static

Definition at line 6 of file pinmux.c.

References count, gpio_cfg_pin(), GPIO_FUNC, GPIO_PULL_NONE, and gpio_set_pull().

Referenced by exynos_pinmux_uart0(), exynos_pinmux_uart1(), exynos_pinmux_uart2(), and exynos_pinmux_uart3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ exynos_pinmux_uart0()

void exynos_pinmux_uart0 ( void  )

Definition at line 16 of file pinmux.c.

References exynos_pinmux_uart(), and GPIO_A00.

Here is the call graph for this function:

◆ exynos_pinmux_uart1()

void exynos_pinmux_uart1 ( void  )

Definition at line 21 of file pinmux.c.

References exynos_pinmux_uart(), GPIO_A04, and GPIO_D00.

Here is the call graph for this function:

◆ exynos_pinmux_uart2()

void exynos_pinmux_uart2 ( void  )

Definition at line 26 of file pinmux.c.

References exynos_pinmux_uart(), and GPIO_A10.

Here is the call graph for this function:

◆ exynos_pinmux_uart3()

void exynos_pinmux_uart3 ( void  )

Definition at line 31 of file pinmux.c.

References exynos_pinmux_uart(), and GPIO_A14.

Referenced by exynos5_init_dev(), and main().

Here is the call graph for this function:
Here is the caller graph for this function: