Ported PRU related patches from 3.12 branch to 3.13

Ported PRU related patches from 3.12 branch to 3.13

Tested on BBB