Hi,
I'm having a problem setting GPMC parameters correctly and after debugging for a whole day I find some inconsistency between the clock speeds reported by the linux kernel and reality. I'm running PSP_04.02.00.07 (based on 2.6.37) and find the following clocks to be set at:
[ 0.000000] Clocking rate (Crystal/Core/MPU): 26.0/166/500 MHz
[ 0.000000] dpll3_m2_ck: 166000000
[ 0.000000] core_ck: 166000000
[ 0.000000] l3_ick: 83000000
[ 0.000000] core_l3_ick: 83000000
[ 0.000000] gpmc_fck: 83000000
Notably, the gpmc fclk is set to 83MHz. Also, with a debugger I verified the the PRCM.CM_CLKSEL_CORE[1:0] divider to be 2. However, when I use a clock divider of 1 in the GPMC CS register settings, the applied GPMC CLK is at 166MHz (measured), while it should be at 83 MHz.
What am I not understanding? The problem is, that the linux gpmc api will not calculate the gpmc parameters as to the speed constraints I'm having since the used fclk does not reflect reality :(
Any help is appreciated! Regards,
Andi