Below is the u-boot log :
U-Boot 2014.07QorIQ-SDK-V1.7+g659b6a2 (Dec 13 2014 - 18:00:52)
CPU0: T1040E, Version: 1.1, (0x85280011)
Core: e5500, Version: 2.1, (0x80241021)
Clock Configuration:
CPU0:1400 MHz, CPU1:1400 MHz, CPU2:1400 MHz, CPU3:1400 MHz,
CCB:600 MHz,
DDR:800 MHz (1600 MT/s data rate) (Asynchronous), IFC:150 MHz
QE:300 MHz
FMAN1: 600 MHz
QMAN: 300 MHz
PME: 300 MHz
L1: D-cache 32 KiB enabled
I-cache 32 KiB enabled
Reset Configuration Word (RCW):
00000000: 0c18000e 0e000000 00000000 00000000
00000010: 66000002 80000002 ec027000 01000000
00000020: 00000000 00000000 00000000 00032810
00000030: 00000000 0342500f 00000000 00000000
Board: T1040RDB
Board rev: 0x01 CPLD ver: 0x09, vBank: 0
Here i can see the u-boot code is able to read the cpld version register.
I want to do the same thing from kernel space.
i added some code to in fsl_ifc.c : attached herewith.
i believe there is something with memory mapping the external device. need few pointers to start with.
I have attached a log.txt file herewith :
which details out the register values of IFC,u-boot log and kernel log.
Please do provide suggestion and valuable comments to proceed further.
Original Attachment has been moved to: log.txt.zip
Original Attachment has been moved to: fsl_ifc.c.zip