Hello,
I try to access spi device (lcd controller) from u-boot.
From kernel it works just fine (which means that there is no hw failure),
But on trying to do same access from u-boot, I have difficulties:
1. the original driver was hand in claim_bus routine. It turned out that the driver does not use the right base register. I had to patch, to make it point to the correct base offset: 0x481a2100 .
2. But I still have no access. I noticed that the driver support only 8 bit access, I patched it to 16 bit, but still no access.
3. I've noticed that cm_alwon register has wrong value in u-boot (0x2 instead of 0x30000 ) :
TI8148_EVM#md 0x48181590
48181590: 00000002 00030000 00030000 00030000 ................
So I changed it to 0x30000, and repeated the access sequence, but now it hangs on spi_claim_bus again !!!
Is there anyone who have functional spi access from u-boot with dm8148 ?
Is it a matter of wrong pll clocks ? I've verified that sysclk10 control register is the same as in kernel (CM_SYSCLK10_CLKSEL
0x48180324 <- 0x3).
What else can make it freeze in claim_bus ?
Best Regards,
Ran