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

Go to the source code of this file.

Functions

static void set_gpi_from_mipi (void)
 
static void gpio_set_duty (enum external_power ext_power)
 
void gpio_init (enum external_power ext_power)
 

Function Documentation

◆ gpio_init()

void gpio_init ( enum external_power  ext_power)

Definition at line 53 of file gpio_init.c.

References gpio_set_duty(), and set_gpi_from_mipi().

Here is the call graph for this function:

◆ gpio_set_duty()

static void gpio_set_duty ( enum external_power  ext_power)
static

Definition at line 34 of file gpio_init.c.

References gpio_regs::exmd_ctrl, GPIO_EINT_1P8V, GPIO_EINT_3P3V, gpio_regs::msdc2_ctrl5, mtk_gpio, val_regs::rst, val_regs::set, and write16().

Referenced by gpio_init().

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

◆ set_gpi_from_mipi()

static void set_gpi_from_mipi ( void  )
static

Definition at line 13 of file gpio_init.c.

References mipi_rx_regs::mipi_rx_ana4c, mipi_rx_regs::mipi_rx_ana50, mt8173_mipi, and setbits32.

Referenced by gpio_init().

Here is the caller graph for this function: