Home
last modified time | relevance | path

Searched refs:sd_handle (Results 1 – 7 of 7) sorted by relevance

/trusted-firmware-a-3.7.0/include/drivers/brcm/emmc/
Demmc_csl_sd.h64 void data_xfer_setup(struct sd_handle *handle, uint8_t *data,
66 int reset_card(struct sd_handle *handle);
67 int reset_host_ctrl(struct sd_handle *handle);
68 int init_card(struct sd_handle *handle, int detection);
69 int init_mmc_card(struct sd_handle *handle);
70 int write_buffer(struct sd_handle *handle, uint32_t len, uint8_t *buffer);
71 int read_buffer(struct sd_handle *handle, uint32_t len, uint8_t *buffer);
72 int select_blk_sz(struct sd_handle *handle, uint16_t size);
73 int check_error(struct sd_handle *handle, uint32_t ints);
75 int process_data_xfer(struct sd_handle *handle, uint8_t *buffer,
[all …]
Demmc_csl_sdcmd.h135 struct sd_handle { struct
140 int sd_cmd0(struct sd_handle *handle); argument
141 int sd_cmd1(struct sd_handle *handle, uint32_t initOcr, uint32_t *ocr);
142 int sd_cmd2(struct sd_handle *handle);
143 int sd_cmd3(struct sd_handle *handle);
144 int sd_cmd7(struct sd_handle *handle, uint32_t rca);
145 int sd_cmd9(struct sd_handle *handle, struct sd_card_data *card);
146 int sd_cmd13(struct sd_handle *handle, uint32_t *status);
147 int sd_cmd16(struct sd_handle *handle, uint32_t blockLen);
148 int sd_cmd17(struct sd_handle *handle,
[all …]
Dbcm_emmc.h46 struct sd_handle sdHandle;
/trusted-firmware-a-3.7.0/drivers/brcm/emmc/
Demmc_chal_sd.c188 int32_t chal_sd_init(CHAL_HANDLE *sd_handle) in chal_sd_init() argument
197 if (sd_handle == NULL) in chal_sd_init()
200 handle = (struct sd_dev *)sd_handle; in chal_sd_init()
246 chal_sd_set_clock(sd_handle, in chal_sd_init()
298 void chal_sd_set_speed(CHAL_HANDLE *sd_handle, uint32_t speed) in chal_sd_set_speed() argument
302 if (sd_handle == NULL) in chal_sd_set_speed()
305 handle = (struct sd_dev *) sd_handle; in chal_sd_set_speed()
340 int32_t chal_sd_check_cap(CHAL_HANDLE *sd_handle, uint32_t caps) in chal_sd_check_cap() argument
344 if (sd_handle == NULL) in chal_sd_check_cap()
347 handle = (struct sd_dev *) sd_handle; in chal_sd_check_cap()
[all …]
Demmc_pboot_hal_memory_drv.c26 static struct sd_handle *sdio_gethandle(void);
27 static uint32_t sdio_idle(struct sd_handle *p_sdhandle);
29 static uint32_t sdio_read(struct sd_handle *p_sdhandle,
36 static uint32_t sdio_write(struct sd_handle *p_sdhandle,
42 static struct sd_handle *sdio_init(void);
43 static int32_t bcm_emmc_card_ready_state(struct sd_handle *p_sdhandle);
57 struct sd_handle *sd_handle = sdio_gethandle(); in emmc_partition_select() local
59 if (sd_handle->device == 0) { in emmc_partition_select()
66 rc = set_boot_config(sd_handle, in emmc_partition_select()
74 rc = set_boot_config(sd_handle, in emmc_partition_select()
[all …]
Demmc_csl_sdcard.c51 static int set_card_data_width(struct sd_handle *handle, int width);
52 static int abort_err(struct sd_handle *handle);
53 static int err_recovery(struct sd_handle *handle, uint32_t errors);
54 static int xfer_data(struct sd_handle *handle, uint32_t mode, uint32_t addr,
57 int set_boot_config(struct sd_handle *handle, uint32_t config) in set_boot_config()
62 void process_csd_mmc_speed(struct sd_handle *handle, uint32_t csd_mmc_speed) in process_csd_mmc_speed()
122 int set_card_data_width(struct sd_handle *handle, int width) in set_card_data_width()
191 static int abort_err(struct sd_handle *handle) in abort_err()
253 int process_data_xfer(struct sd_handle *handle, uint8_t *buffer, uint32_t addr, in process_data_xfer()
314 int select_blk_sz(struct sd_handle *handle, uint16_t size) in select_blk_sz()
[all …]
Demmc_csl_sdcmd.c19 int sd_cmd0(struct sd_handle *handle) in sd_cmd0()
35 int sd_cmd1(struct sd_handle *handle, uint32_t ocr, uint32_t *ocr_output) in sd_cmd1()
57 int sd_cmd2(struct sd_handle *handle) in sd_cmd2()
68 int sd_cmd3(struct sd_handle *handle) in sd_cmd3()
92 int sd_cmd7(struct sd_handle *handle, uint32_t rca) in sd_cmd7()
127 int mmc_cmd8(struct sd_handle *handle, uint8_t *extCsdReg) in mmc_cmd8()
150 int sd_cmd9(struct sd_handle *handle, struct sd_card_data *card) in sd_cmd9()
244 int sd_cmd13(struct sd_handle *handle, uint32_t *status) in sd_cmd13()
266 int sd_cmd16(struct sd_handle *handle, uint32_t length) in sd_cmd16()
312 int sd_cmd17(struct sd_handle *handle, in sd_cmd17()
[all …]