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

Go to the source code of this file.

Functions

int sd_send_if_cond (struct storage_media *media)
 
int sd_send_op_cond (struct storage_media *media)
 
static int sd_switch (struct sd_mmc_ctrlr *ctrlr, int mode, int group, uint8_t value, uint8_t *resp)
 
static void sd_recalculate_clock (struct storage_media *media)
 
int sd_change_freq (struct storage_media *media)
 
int sd_set_bus_width (struct storage_media *media)
 
int sd_set_partition (struct storage_media *media, unsigned int partition_number)
 
const char * sd_partition_name (struct storage_media *media, unsigned int partition_number)
 

Function Documentation

◆ sd_change_freq()

◆ sd_partition_name()

const char* sd_partition_name ( struct storage_media media,
unsigned int  partition_number 
)

Definition at line 280 of file sd.c.

Referenced by storage_partition_name().

Here is the caller graph for this function:

◆ sd_recalculate_clock()

static void sd_recalculate_clock ( struct storage_media media)
static

Definition at line 109 of file sd.c.

References storage_media::caps, CLOCK_25MHZ, CLOCK_50MHZ, storage_media::ctrlr, DRVR_CAP_HS, media, and SET_CLOCK.

Referenced by sd_change_freq().

Here is the caller graph for this function:

◆ sd_send_if_cond()

◆ sd_send_op_cond()

◆ sd_set_bus_width()

◆ sd_set_partition()

int sd_set_partition ( struct storage_media media,
unsigned int  partition_number 
)

Definition at line 268 of file sd.c.

References media, and storage_media::partition_config.

Referenced by storage_set_partition().

Here is the caller graph for this function:

◆ sd_switch()

static int sd_switch ( struct sd_mmc_ctrlr ctrlr,
int  mode,
int  group,
uint8_t  value,
uint8_t resp 
)
static