mmap does not allocate. Just maps virtual address where application is running to physical ones so you can access from the application to the hardware in FPGA.
I am confused because you talk about the kernel as if you are running in Operating System but later you talk about uboot.
Maybe this answer is helpful to you: