aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/machxo2-spi.c
diff options
context:
space:
mode:
authorGreg Ungerer <[email protected]>2018-04-05 13:55:11 +0000
committerGreg Ungerer <[email protected]>2018-05-27 23:45:27 +0000
commitbe39cbcbd6cc94ed0e6daf3637cc092641254cf3 (patch)
tree95b17fb51ea556553e6a5ae2f37952851f839191 /drivers/fpga/machxo2-spi.c
parentm68k: fix read/write multi-byte IO for PCI on ColdFire (diff)
downloadkernel-be39cbcbd6cc94ed0e6daf3637cc092641254cf3.tar.gz
kernel-be39cbcbd6cc94ed0e6daf3637cc092641254cf3.zip
m68k: fix ioremapping for internal ColdFire peripherals
The ColdFire SoC internal peripherals are mapped into virtual address space using the ACR registers of the cache control unit. This means we are using a 1:1 physical:virtual mapping for them that does not rely on page table mappings. We can quickly determine if we are accessing an internal peripheral device given the physical or vitrual address using the same range check. The implications of this mapping is that an ioremap should return the physical address as the virtual mapping __iomem cookie as well. So fix ioremap() to deal with this on ColdFire. Of course you need to take care of this in the iounmap() path as well. Reported-by: Angelo Dureghello <[email protected]> Signed-off-by: Greg Ungerer <[email protected]> Reviewed-by: Angelo Dureghello <[email protected]> Tested-by: Angelo Dureghello <[email protected]>
Diffstat (limited to 'drivers/fpga/machxo2-spi.c')
0 files changed, 0 insertions, 0 deletions