Part Number: AM5718
Tool/software: Linux
Dear team,
I am working to implement a hsmmc controller driver with reference to omap_hsmmc.c driver on AM571x IDK platform. I have a special requirement to control MMC1 controller, with out use of MMC subsystem.
In the module probe I am doing initstream, after proper configuration of controller registers, I see there is no clock of 80 pulse, when I probed the signal at R405 on IDK.
1) I am doing following to start initstream
HSMMC_WRITE(mmc->base, CON, (HSMMC_READ(mmc->base, CON) | INIT_STREAM));
HSMMC_WRITE(mmc->base, CMD, INIT_STREAM_CMD);
waiting for command complete by reading STAT register, command is never completing.
2) I manually programmed PRCM block for enabling clock to MMC1 module.
//configure PRCM with value
__raw_writel(0x1040002, (0x4a009328 + 0xb2000000));
3) Configured CAPA & HCTL to have support for 3.3 volts, I am seeing those voltages on u-sd connector, when probed with DMM
4) Following are my registers of MMC1 @ 0x4809 C000 for virtual addr 0xfa09c100
con = 0x600
capa = 0x23e90080
sysctl = 0xe7807
hctl = 0xf00
Please let me know if I am missing any thing & why initstream is not generating clock.
Thanks in advance,
Vamshi G.