Access to CCSR space on T2080RDB

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Access to CCSR space on T2080RDB

514 Views
jopado
Contributor I

I have an existing kernel module that checks L2 cache for tag/data errors. This works well on a T1042 (e5500). On the e5500, the L2 registers are implemented as special purpose registers so the module simply reads/tests the required SPR's. I am now needing to do this same functionality on a T2080 (e6500). The L2 registers on the e6500 are no longer implemented as SPR's but are located in the CCSR space. How do I access the shared L2 cluster registers from my existing driver. I tried reading the SCCSRBAR and shiting left 24 bits and then adding the cluster offset. This yields:
Unable to handle kernel paging request for data at address 0x7200c20000

Questions:
(1) Is there an exiting driver already included in the QorIQ_SDK_2.0 that I could use to access these registers from user-space? This must surely be supported by the SDK for the SoC. I would prefer this method and just do my L2 checks from a user-space app.
(2) If not, what is the recommended way to access registers in the CCSR space? mmap from user-space app I presume?

Any suggestions appreciated.

0 Kudos
1 Reply

381 Views
Pavel
NXP Employee
NXP Employee

It looks like that mmap is needed for your task. See the following page:

https://community.nxp.com/thread/321352


Have a great day,
Pavel Chubakov

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos