coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
sdhci_display.c File Reference
#include <commonlib/sd_mmc_ctrlr.h>
#include <commonlib/sdhci.h>
#include <commonlib/storage.h>
#include "sdhci.h"
#include "sd_mmc.h"
#include "storage.h"
Include dependency graph for sdhci_display.c:

Go to the source code of this file.

Functions

static void sdhci_display_bus_width (struct sdhci_ctrlr *sdhci_ctrlr)
 
static void sdhci_display_clock (struct sdhci_ctrlr *sdhci_ctrlr)
 
static void sdhci_display_voltage (struct sdhci_ctrlr *sdhci_ctrlr)
 
void sdhci_display_setup (struct sdhci_ctrlr *sdhci_ctrlr)
 

Function Documentation

◆ sdhci_display_bus_width()

static void sdhci_display_bus_width ( struct sdhci_ctrlr sdhci_ctrlr)
static

Definition at line 13 of file sdhci_display.c.

References CONFIG, sdhc_debug, SDHCI_CTRL_4BITBUS, SDHCI_CTRL_8BITBUS, SDHCI_CTRL_HS400, SDHCI_CTRL_UHS_DDR50, SDHCI_CTRL_UHS_MASK, SDHCI_HOST_CONTROL, SDHCI_HOST_CONTROL2, sdhci_readb(), and sdhci_readw().

Referenced by sdhci_display_setup().

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

◆ sdhci_display_clock()

static void sdhci_display_clock ( struct sdhci_ctrlr sdhci_ctrlr)
static

Definition at line 40 of file sdhci_display.c.

References sd_mmc_ctrlr::clock_base, CONFIG, sdhci_ctrlr::sd_mmc_ctrlr, sdhc_debug, SDHCI_CLOCK_CARD_EN, SDHCI_CLOCK_CONTROL, SDHCI_DIV_HI_MASK, SDHCI_DIV_MASK, SDHCI_DIV_MASK_LEN, SDHCI_DIVIDER_SHIFT, and sdhci_readw().

Referenced by sdhci_display_setup().

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

◆ sdhci_display_setup()

void sdhci_display_setup ( struct sdhci_ctrlr sdhci_ctrlr)

Definition at line 92 of file sdhci_display.c.

References sdhci_display_bus_width(), sdhci_display_clock(), and sdhci_display_voltage().

Referenced by storage_test().

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

◆ sdhci_display_voltage()

static void sdhci_display_voltage ( struct sdhci_ctrlr sdhci_ctrlr)
static

Definition at line 66 of file sdhci_display.c.

References CONFIG, sdhc_debug, SDHCI_POWER_330, SDHCI_POWER_CONTROL, SDHCI_POWER_ON, sdhci_readb(), and voltage.

Referenced by sdhci_display_setup().

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