Ben NanoNote

Sign in or create your account | Project List | Help

Issue 74: sd communication protocol

Reported by Camilo Diaz, May 13, 2010

I want to create a communication protocol to control any hardware 
device using the sd port as an in/out port. I've been looking 
through the code in 
s/mmc/, and i managed to see the commands that the hots (in this 
case the ben nanonote) sends to a sd card while initializing, 
writing and reading it. However, the driver I've been reading is a 
low level code, I need to find the driver that calls the one in the 
file above and tells it the commands to be sent. So, whereabouts is 
the driver I should modify in order to send the commands I desire?

Thank you in advance.

Comment 1 by Xiangfu Liu, Jun 9, 2010

Hi Camilo
in drivers/mmc/core/core.c:122:
mmc_start_request(struct mmc_host *host, struct mmc_request *mrq)
 host->ops->request(host, mrq);

here is the kernel start mmc request.
and in jz_mmc.c:667 setup the "request" function.

hope this can help.
Labels: Type:Task, -Type:Defect
Status: Started
Owner: xiangfu

Comment 2 by Xiangfu Liu, Nov 28, 2011

maybe you want modify this function: jz4740_mmc_request, under:


you can also send those question to mailing list:
Status: Fixed

Created: 10 years 1 month ago by Camilo Diaz

Updated: 8 years 7 months ago

Status: Fixed

Owner: Xiangfu Liu