It is not good practice directly accessing to registers in Linux. Linux kernel provides memory address translation using MMU of the P5040.
Use required device driver.
Freescale offers SDK 1.5 for QorIQ processors. See please the following page (http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=SDKLINUX&fsrch=1).
This page contains link for 32-bit and 64-bit images for e5500 core. These images contain the P5040 image.
Look at the .dts file for the P5040ds board. This file shows that CCSR value is 0xFFE00000 in the SDK for the P5040.
Use log of usdpaa package for mmap using. See the attached log of building of the usdpaa package.
After install SDK, create a project for P5020DS 64bit.
source ./fsl-setup-poky -m p5020ds-64b
extract USDPAA source
bitbake usdpaa -c patch -f
Get the source in build_p5020ds-64b_release/tmp/work/ppc64e5500-fsl-linux/usdpaa-git-r11/git/.
Build usdpaa package
Bitbake usdpaa -c compile -f
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------