map FPGA registers to the kernel space

This commit is contained in:
Stefan Lankes 2011-05-29 15:30:34 -07:00
parent 318324949e
commit 5d16090b76
2 changed files with 7 additions and 0 deletions

View file

@ -155,6 +155,9 @@
#define CRB_X5_Y3 0xf7000000
#define CRB_OWN 0xf8000000
// FPGA registers
#define FPGA_BASE 0xf9000000
// Symbol for RPC
#define RPC_BASE 0xfb000000

View file

@ -733,6 +733,10 @@ int arch_paging_init(void)
// map SCC's message passing buffers
viraddr = map_region(MPB_X0_Y0, MPB_X0_Y0, (MPB_OWN-MPB_X0_Y0+16*1024*1024) >> PAGE_SHIFT, MAP_KERNEL_SPACE|MAP_MPE);
kprintf("Map message passing buffers at 0x%x\n", viraddr);
// map the FPGA registers
viraddr = map_region(FPGA_BASE, FPGA_BASE, (16*1024*1024) >> PAGE_SHIFT, MAP_KERNEL_SPACE|MAP_NO_CACHE);
kprintf("Map FPGA regsiters at 0x%x\n", viraddr);
#endif
/* enable paging */